	//Global variables
		rootDir = '';
	//Global variables 
	 
	 //The following variables are used in the preload function	
	 	var suffix = new Array('a','i','o','d','1','2'); //Starts new array to preload images; 1st variable is the over state, 2nd variable is the off state, 3rd variable is the on state (if needed)
		var loaded = false; //Sets the loaded var to false so rollovers do not function until loaded
	 	//var uExt = 'gif'; //The file extension of the rollover graphics for the Uroll function
		//var uPath = 'img';//This is the path where the rollover graphics live
	
	//This function preloads rollover images for the Uroll function
	function uPreload(uPath,uExt,uImgList){
  		if(document.images){
    	uArgArray = uImgList.split(',');
    	for(var i = 0; i < uArgArray.length; i++){
      		var uArg = uArgArray[i];
     		var uSufLen = suffix.length;
      		for(j = 0; j < uSufLen; j++){
        var uSuf = suffix[j];
        uNew = uArg + uSuf + ' = new Image();';  eval(uNew);
        uSrc = uArg + uSuf + '.src = \'' + 'asset/' + uPath + '/' + uArg + uSuf + '.' + uExt + '\';';  eval(uSrc);
	        		}
	        	}   
				loaded = true;
			}
		}
	
	//This function is for rollover images and blank window status; uName is name of graphic, uState is on, off or over state, uWstat is window status message
	function uRoll(){
		uName = arguments[0];
		uState =  arguments[1];
		uDiv = '';
		if (arguments.length > 2){
			uDiv = arguments[2];
		}
		if (uDiv == 'nodiv') {
			uDiv = '';
		} else {
			if (uDiv == '') {
				uDiv = 'pageContent';
			}
		}
		
	  	if(document.images && loaded){
	  		isNS4 = (document.layers) ? true : false;
	  		if (uDiv != '') {
	  			if (isNS4) {
	  				var uNavlayer = eval('document.layers.'+uDiv);
	  				uNavlayer.document.images[uName].src = self[uName + uState].src;
	  			} else {	    		
	  				document.images[uName].src = self[uName + uState].src;	  		
	  			}
	  		} else {
	  			document.images[uName].src = self[uName + uState].src;
	  		}
			//window.status = uWstat;	  		
			window.status = '';	  		
		}
	}
		
		
	function NS4FrameFix(){
	  	isNS4 = (document.layers) ? true : false;
	  	if (isNS4) {
	  		document.write('<img src="'+rootDir+'asset/global/spacer.gif" width="100%" height="1500" alt="" border="0">');
	  	} 
	}

	// This function pops open a unique sized window; uUrl is the URL, uWidth is the window width, uHeight is the window height, uWinname is the window name
	function uPop2(uUrl,uWidth,uHeight,uWinname){
		var aWin = window.open(uUrl,uWinname,'width='+uWidth+',height='+uHeight+',status=no,resizable=no,location=no,left=0,top=0,screenX=0,screenY=0,scrollbars=yes,menubar=no');
		aWin.focus();
		}
	
	// This function pops open a unique sized window; uUrl is the URL, uWidth is the window width, uHeight is the window height, uWinname is the window name
	function uPop(uUrl,uWidth,uHeight,uWinname){
		var aWin = window.open(uUrl,uWinname,'width='+uWidth+',height='+uHeight+',status=no,resizable=no,location=no,left=0,top=0,screenX=0,screenY=0,scrollbars=no,menubar=no');
		aWin.focus();
		}
	
	function stars(){
		uPop("constellation/default.html","550","440","guide");
	}
	
	function stars2(){
		//window.location = rootDir + "american/default.html";
		uPop(rootDir + "american/constellation/default.html","550","440","guide");
	}
	
	function knots(){
		uPop("knots/default.html","600","350","knots");
	}
	
	function knots2(){
		//window.location = rootDir + "american/default.html";
		uPop(rootDir + "american/knots/default.html","600","350","knots");
	}
		
	function rapids(){
		uPop("raftingguide/default.html","600","490","rapids");
	}
	
	function rapids2(){
		//window.location = rootDir + "american/default.html";
		uPop(rootDir + "american/raftingguide/default.html","600","490","rapids");
	}	

	function homePop(){
		javascript:uPop2('team/local/localevents.html','400','350','localevents');
	}
	
	//This function is for two rollover images and showing/hiding a div layer
	//sDivstate is the state (visible) of the div layer
	//sDiv is the name of the div layer to be shown
	//hDivstate is the state (hidden) of the hDiv layers
	//hDiv01 is the name of the div layer to be hidden
	//hDiv02 is the name of the div layer to be hidden
	//hDiv03 is the name of the div layer to be hidden
	//hDiv04 is the name of the div layer to be hidden
	function slider(sDivstate,sDiv,hDivstate,hDiv01,hDiv02,hDiv03,hDiv04) {
		isNS4 = (document.layers) ? true : false;
		isIE4 = (document.all && !document.getElementById) ? true : false;
		isIE5 = (document.all && document.getElementById) ? true : false;
		isNS6 = (!document.all && document.getElementById) ? true : false;
		if (isIE4) { 
			var sNavlayer = eval('document.all.'+sDiv);
			sNavlayer.style.visibility = sDivstate;
			var hNavlayer01 = eval('document.all.'+hDiv01);
			hNavlayer01.style.visibility = hDivstate;
			var hNavlayer02 = eval('document.all.'+hDiv02);
			hNavlayer02.style.visibility = hDivstate;
			var hNavlayer03 = eval('document.all.'+hDiv03);
			hNavlayer03.style.visibility = hDivstate;
			var hNavlayer04 = eval('document.all.'+hDiv04);
			hNavlayer04.style.visibility = hDivstate;	
		}else if (isNS4) { 
			var sNavlayer = eval('document.layers.'+sDiv);
			sNavlayer.visibility = sDivstate;
			var hNavlayer01 = eval('document.layers.'+hDiv01);
			hNavlayer01.visibility = hDivstate;
			var hNavlayer02 = eval('document.layers.'+hDiv02);
			hNavlayer02.visibility = hDivstate;
			var hNavlayer03 = eval('document.layers.'+hDiv03);
			hNavlayer03.visibility = hDivstate;
			var hNavlayer04 = eval('document.layers.'+hDiv04);
			hNavlayer04.visibility = hDivstate;
		}else if (isNS6 || isIE5) { 
			var sNavlayer = eval('document.getElementById'+'("'+sDiv+'")');
			sNavlayer.style.visibility = sDivstate;
			var hNavlayer01 = eval('document.getElementById'+'("'+hDiv01+'")');
			hNavlayer01.style.visibility = hDivstate;
			var hNavlayer02 = eval('document.getElementById'+'("'+hDiv02+'")');
			hNavlayer02.style.visibility = hDivstate;
			var hNavlayer03 = eval('document.getElementById'+'("'+hDiv03+'")');
			hNavlayer03.style.visibility = hDivstate;
			var hNavlayer04 = eval('document.getElementById'+'("'+hDiv04+'")');
			hNavlayer04.style.visibility = hDivstate;
	  		}
	  	}
	  	
function getStyleObject(objectId) {
    // cross-browser function to get an object's style object given its id
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
} // getStyleObject

function changeObjectVisibility(objectId, newVisibility) {
    // get a reference to the cross-browser style object and make sure the object exists
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
	styleObject.visibility = newVisibility;
	return true;
    } else {
	// we couldn't find the object, so we can't change its visibility
	return false;
    }
} 
// changeObjectVisibility

function showPopup (targetObjectId) {
	// hide any currently-visible popups
	hideCurrentPopup();
	// make it visible
	changeObjectVisibility(targetObjectId, 'visible')
	    // if we successfully showed the popup
	    // store its Id on a globally-accessible object
	    window.currentlyVisiblePopup = targetObjectId;
	    return true;
} 
// showPopup


function hideCurrentPopup() {
    // note: we've stored the currently-visible popup on the global object window.currentlyVisiblePopup
    if(window.currentlyVisiblePopup) {
	changeObjectVisibility(window.currentlyVisiblePopup, 'hidden');
	window.currentlyVisiblePopup = false;
    }
} 
// hideCurrentPopup

	//This function is for two rollover images and showing/hiding a div layer
	//dnDivstate is the state (hidden or visible) of the div layer mentioned on the next line
	//dnDiv is the div layer to be hidden or shown
	//dnName is name of 1st graphic
	//dndName is name of 2nd graphic
	//dnState is the rollover state of both graphics - active (a), inactive(i) or on(o)
	//dnWstat is the browser window status message
	//This symbol | (vertical bar) can be used in place of an ' (apostrophe) in the window status message
	function dropNav(dnDivstate,dnDiv,dnName,dndName,dnState,dnWstat) {
		isNS4 = (document.layers) ? true : false;
		isIE4 = (document.all && !document.getElementById) ? true : false;
		isIE5 = (document.all && document.getElementById) ? true : false;
		isNS6 = (!document.all && document.getElementById) ? true : false;
		if (isIE4) {
			var dnNavlayer = eval('document.all.'+dnDiv);
			if(document.images && loaded) {
				document.images[dnName].src = self[dnName + dnState].src;
	    		dnNavlayer.style.visibility = dnDivstate;
	   			if(dndName!='x') {
	   				document.images[dndName].src = self[dndName + dnState].src;
	  				}
	  			dnWstat = dnWstat.replace('|',"'");
	  			window.status = dnWstat;
	  		}	
		}else if (isNS4) { 
			var dnNavlayer = eval('document.layers.'+dnDiv);
			if(document.images && loaded) {
				document.images[dnName].src = self[dnName + dnState].src;
	    		dnNavlayer.visibility = dnDivstate;
	   			if(dndName!='x') {
	   				dnNavlayer.document.images[dndName].src = self[dndName + dnState].src;
	  				}
	  			dnWstat = dnWstat.replace('|',"'");
	  			window.status = dnWstat;
	  		}
		}else if (isNS6 || isIE5) { 
			var dnNavlayer = eval('document.getElementById'+'("'+dnDiv+'")');
			if(document.images && loaded) {
				document.images[dnName].src = self[dnName + dnState].src;
	    		dnNavlayer.style.visibility = dnDivstate;
	   			if(dndName!='x') {
	   				document.images[dndName].src = self[dndName + dnState].src;
	  				}
	  			dnWstat = dnWstat.replace('|',"'");
	  			window.status = dnWstat;
				}
	  		}
	  	}
	  	
function footLink(lPage) {
		var goLink = rootDir+lPage+'.html';
		document.location = goLink;
	}
	
function footgraphic() {
		fgraphic = ''
		fgraphic = '<a href="../../../../../../../../../www.pmintl.com/tobacco_issues/index.html"><img src="'+rootDir+'asset/local/ftrhealth.gif" width="156" height="30" alt="" border="0"></a>';
		document.write(fgraphic);
	}
	
//This function Redirects User To Requested Format of Movie
	function whichVid(theForm){
		with(theForm.format){
			var optval=options[selectedIndex].value
			window.location = optval
		}
	}
//This function opens the Wallpaper Download instructions in the main window from the popups
	function wallinstr(){
			parent.window.opener.location="../wallinstruct.html";
			parent.window.opener.focus();	
		}

