/***********************************
Frontiers USA
Misc Javascript Functions
**********************************/

<!--//--><![CDATA[//><!--

// CSS menu system controller
sfHover = function() {
	var sfEls = document.getElementById("navigation").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);



// Add your own photos pop-up controller
function uploadWin(pageid){
	//alert("In development.\nPlease do not use yet.");
	
	url="http://www.frontierstravel.com/public/uploadPhoto.php?P=" + pageid
	attributes="width=640,height=740,scrollbars=1"
	window.open(url,'Photo_Upload',attributes) 
}



// Window opening script for page item photos
function launch(newURL, newName, newFeatures, orgName) {
     var photo = open(newURL, newName, newFeatures);
     if (photo.opener == null)
     photo.opener = window;
     photo.opener.name = orgName;
     return photo;
     }

function launchPhoto(photoNumber,windowHeight,windowWidth) {
     myPhoto = launch("http://www.frontierstravel.com/public/displayPhoto.php?id=" + photoNumber,"ContentsPhoto","height=" + windowHeight + ",width=" + windowWidth + ",dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizeable=1,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0","myWindow");
	 }

function launchPhotoFR(photoNumber,windowHeight,windowWidth) {
     myPhoto = launch("http://www.frontierstravel.com/public/displayPhoto.php?t=fr&frid=" + photoNumber,"ContentsPhoto","height=" + windowHeight + ",width=" + windowWidth + ",dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizeable=1,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0","myWindow");
	 }
	
function launchNewsPhoto(photoNumber,windowHeight,windowWidth) {
	myPhoto = launch("http://www.frontierstravel.com/public/displayNewsPhoto.php?id=" + photoNumber,"NewsPhots","height=" + windowHeight + ",width=" + windowWidth + ",dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizeable=1,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0","myWindow");
}


//--><!]]>
