
/** Rollover images **/

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
    
    // Beginning of image inserts
    
    //Top Nav
		Left1_Nav_01_over = newImage("files/images/Left1_Nav_01-over.gif");
		Left1_Nav1_02_over = newImage("files/images/Left1_Nav1_02-over.gif");
		Left1_Nav1_03_over = newImage("files/images/Left1_Nav1_03-over.gif");
		Left1_Nav1_04_over = newImage("files/images/Left1_Nav1_04-over.gif");
		Left1_Nav1_05_over = newImage("files/images/Left1_Nav1_05-over.gif");
		
    //Side Nav
		
     // End of image inserts
     
		preloadFlag = true;
	}
}


/** Drop down menus - Transmenus **/

		function init() {
			if (TransMenu.isSupported()) {
				TransMenu.initialize();
                
//Menu 1
				//menu1.onactivate = function() { document.getElementById("AfricanTravel").className = "other"; };
				//menu1.ondeactivate = function() { document.getElementById("AfricanTravel").className = "other"; };

//Menu 2
				//menu2.onactivate = function() { document.getElementById("About_Us-over").className = "other"; };
				//menu2.ondeactivate = function() { document.getElementById("About_Us-over").className = "other"; };

//Menu 3
				menu2.onactivate = function() { document.getElementById("AboutHRSA").className = "nav"; };
				menu2.ondeactivate = function() { document.getElementById("AboutHRSA").className = "nav"; };
				
			
		menu1.onactivate = function() { document.getElementById("AboutHarness").className = "nav"; };
		menu1.ondeactivate = function() { document.getElementById("AboutHarness").className = "nav"; };
				
				
				
				menu1.onactivate = function() { document.getElementById("SwedishRacing").className = "nav"; };
				menu1.ondeactivate = function() { document.getElementById("SwedishRacing").className = "nav"; };

//Menu 4
				//menu4.onactivate = function() { document.getElementById("IndianOceanIslands").className = "other"; };
				//menu4.ondeactivate = function() { document.getElementById("IndianOceanIslands").className = "other"; };


//Menu 5
				//menu5.onactivate = function() { document.getElementById("Honeymoons").className = "other"; };
				//menu5.ondeactivate = function() { document.getElementById("Honeymoons").className = "other"; };

//Menu 6
				//menu6.onactivate = function() { document.getElementById("WorldTravel").className = "other"; };
				//menu6.ondeactivate = function() { document.getElementById("WorldTravel").className = "other"; };
		}
}





/** Pop up Window **/

	var detailsWindow1a;
    var detailsWindow1b;
    var detailsWindow2;
    var timerID1a;
    var timerID1b;
    var timerID2;
    
    function openPortrait(theURL)
	{
    
        clearTimeout(timerID1a);

        detailsWindow1a=window.open (theURL,"PortWindow1a","width=510,height=771");
        detailsWindow1a.focus();

        timerID1a = setTimeout("detailsWindow1a.close()",30000);

       
       
	}
        function openPortrait2(theURL)
	{
		clearTimeout(timerID1b);
         
        detailsWindow1b=window.open (theURL,"PortWindow1b","width=480,height=640");
        detailsWindow1b.focus();

        timerID1b = setTimeout("detailsWindow1b.close()",30000);
        
	}
	
	        function openPortrait3(theURL)
	{
		clearTimeout(timerID1b);
         
        detailsWindow1b=window.open (theURL,"PortWindow1b","width=440,height=440");
        detailsWindow1b.focus();

        timerID1b = setTimeout("detailsWindow1b.close()",30000);
        
	}
	
	
	
	
    function openLandscape(theURL)
	{
		clearTimeout(timerID2);

        detailsWindow2=window.open (theURL,"LandWindow2","width=660,height=295");
        detailsWindow2.focus();

        timerID2 = setTimeout("detailsWindow2.close()",30000);
        
	}
	
	    function openLandscape2(theURL)
	{
		clearTimeout(timerID2);

        detailsWindow2=window.open (theURL,"LandWindow2","width=771,height=510");
        detailsWindow2.focus();

        timerID2 = setTimeout("detailsWindow2.close()",30000);
        
	}

//-->