/* JST FREIGHT & LOGISTICS javascript file */

//This function detects the resolution of the user and send them to the appropriate page for their resolution
function detectres(){
   document.enter.src="images/enter3.gif";
   var hi=screen.height;
   var wi=screen.width;
   
   if(wi==640){
	   newWindow640();
   }
   else if(wi==800){
	   newWindow800();
   }
   else if(wi==1024){
	   newWindow1024();
   }
   else if(wi==1152){
	   newWindow1152();
   }
   else{
	   newWindow1280();
   }
}



//series of windows that open at the size of the users resolution
function newWindow640(){
    var option = "height=480," + "width=640, " + "resizable=yes,"+ "menubar=yes," +"toolbar=yes," + "location=yes";
    var mywin1=window.open("640x480/frames.html","test",option);
	mywin1.moveTo(0,0);
	mywin1.focus();	
}
function newWindow800(){
    var option = "height=600," + "width=800, " + "resizable=yes,"+ "menubar=yes," +"toolbar=yes," + "location=yes";
    var mywin2=window.open("800x600/frames.html","test",option);
	mywin2.moveTo(0,0);
	mywin2.focus();
}
function newWindow1024(){
    var option = "height=768," + "width=1024, " + "resizable=yes,"+ "menubar=yes," +"toolbar=yes," + "location=yes";
    var mywin3=window.open("1024x768/frames.html","test",option);
	mywin3.moveTo(0,0);
	mywin3.focus();
}
function newWindow1152(){
    var option = "height=864," + "width=1152, " + "resizable=yes,"+ "menubar=yes," +"toolbar=yes," + "location=yes";
    var mywin4=window.open("1152x864/frames.html","test",option);
	mywin4.moveTo(0,0);
	mywin4.focus();
}
function newWindow1280(){
    var option = "height=1024," + "width=1280, " + "resizable=yes,"+ "menubar=yes," +"toolbar=yes," + "location=yes";
    var mywin5=window.open("1280x1024/frames.html","test",option);
	mywin5.moveTo(0,0);
    mywin5.focus();
}



//image swaps
//missionstatement
function m1(){
   document.mission.src="images/mission2.gif";   
}
function m2(){
   document.mission.src="images/mission.gif";   
}
function m3(){
   document.mission.src="images/mission3.gif";   
}
//enter sign
function Renter(){
	document.enter.src="images/enter2.gif";
}
function Renter2(){
	document.enter.src="images/enter.gif";
}
//profile
function po1(){
    document.profile.src="images/profile2.gif";
}
function po2(){
    document.profile.src="images/profile.gif";
}
function po3(){
    document.profile.src="images/profile3.gif";
}
//equipment
function eq1(){
	document.equip.src="images/equipment2.gif";
}
function eq2(){
	document.equip.src="images/equipment.gif";
}
function eq3(){
	document.equip.src="images/equipment3.gif";
}
//freight services
function fr1(){
	document.freight.src="images/freight2.gif";
}
function fr2(){
	document.freight.src="images/freight.gif";
}
function fr3(){
	document.freight.src="images/freight3.gif";
}
//corporate logistics management
function clm1(){
	document.clm.src="images/clm2.gif";
}
function clm2(){
	document.clm.src="images/clm.gif";
}
function clm3(){
	document.clm.src="images/clm3.gif";
}
//conact us
function con1(){
	document.contact.src="images/contact2.gif";
}
function con2(){
	document.contact.src="images/contact.gif";
}
function con3(){
	document.contact.src="images/contact3.gif";
}
//get a quote
function qo1(){
	document.quote.src="images/quote2.gif";
}
function qo2(){
	document.quote.src="images/quote.gif";
}
function qo3(){
	document.quote.src="images/quote3.gif";
}
//freight tracker
function t1(){
	document.track.src="images/track2.gif";
}
function t2(){
	document.track.src="images/track.gif";
}
function t3(){
	document.track.src="images/track3.gif";
}
