
function Change(PicName,GraphicFile,InOut,HeaderType){
	if (HeaderType!=0){
	GraphicFile2	= "../images/Nav/"+GraphicFile
	}
	else{
	GraphicFile2	= "images/Nav/"+GraphicFile
	}
	document[PicName].src=GraphicFile2
	
	//show or hide div
	if (InOut==1){
		if (PicName=="Trips"){
			document.all.TripsDiv.style.visibility='visible'
			document.all.LecturesDiv.style.visibility='hidden'
		}
		if (PicName=="Lectures"){
			document.all.LecturesDiv.style.visibility='visible'
			document.all.TripsDiv.style.visibility='hidden'
		}
		if (PicName=="Pics"){
			document.all.LecturesDiv.style.visibility='hidden'
			document.all.TripsDiv.style.visibility='hidden'
		}
		if (PicName=="Moto"){
			document.all.LecturesDiv.style.visibility='hidden'
			document.all.TripsDiv.style.visibility='hidden'
		}
	}
}

function openWindow(x,y,z){
	var width	= x
	var height	= y
	var winToOpen = z
	window.open(winToOpen, "window", "width= "+x+",height="+y+",left=10")
}

function makeWindow(URL,Width,Height){
var Data	= "width="+Width+",height="+Height+",toolbar=no,scrollbars=1,top=100,left=120"
var sURL	= URL
window.open(sURL,"ιτο",Data)
}

function CloseWin(){
	var time

	clearTimeout(time)
	time=setTimeout('CloseWin2()',5000)
}

function CloseWin2(){
	this.close()
}
