
function popUp(URL) {
videopage = window.open(URL,'videopage','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=310');
}

function popUp2(URL) {
videopage = window.open(URL,'videopage','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=290,height=380');
}


var DOM = (document.getElementById) ? true : false;
var NS4 = (document.layers) ? true : false;
var BrowserString = NS4 ? "NS4" : DOM ? "DOM" : "DOM";

var homex=0;
var homey=0;
var servicex=0;
var servicey=0;
var ccx=0;
var ccy=0;
var careerx=0;
var careery=0;

function getImgWidth(imgID) {
	return eval(imgID).width;
    }

function getImgHeight(imgID) {
	return eval(imgID).height;
    }
	
function getImgXfromLeft(imgID) {
    if (BrowserString == "NS4") return eval(imgID).x
    else return getRealLeft(imgID);
    }

function getImgYfromTop(imgID) {
	if (BrowserString == "NS4") return eval(imgID).y
    else return getRealTop(imgID);
    }	
	
function getRealLeft(imgElem) {
	xPos = eval(imgElem).offsetLeft;
    tempEl = eval(imgElem).offsetParent;
    while (tempEl != null) {
    	xPos += tempEl.offsetLeft;
        tempEl = tempEl.offsetParent;
        }
    return xPos;
    }

function getRealTop(imgElem) {
	yPos = eval(imgElem).offsetTop;
	tempEl = eval(imgElem).offsetParent;
    while (tempEl != null) {
    	yPos += tempEl.offsetTop;
        tempEl = tempEl.offsetParent;
        }
	return yPos;
    }

function fwLoadMenus() {
  if (window.fw_menu_0) return;

  window.fw_menu_0 =  new Menu("root",130,19,"Arial, Helvetica, sans-serif",12,"#ffffff","#ffffff","#0e2861","#D4C79F");
  fw_menu_0.addMenuItem("Return to Home Page","location='/index.php'");
  fw_menu_0.addMenuItem("Company Profile","location='/profile.html'");
  fw_menu_0.addMenuItem("Mission Statement","location='/mission.html'");
  fw_menu_0.addMenuItem("Management Team","location='/management.html'");
  fw_menu_0.hideOnMouseOut=true;
  
   window.fw_menu_1 = new Menu("root",130,19,"Arial, Helvetica, sans-serif",12,"#ffffff","#ffffff","#0e2861","#D4C79F");
   fw_menu_1.addMenuItem("LTL","location='/LTL.html'");
   fw_menu_1.addMenuItem("Hotshot/Truckload","location='/hotshot.html'");
   fw_menu_1.addMenuItem("Lanes","location='/lanes.html'");
   fw_menu_1.addMenuItem("Services Schedule","location='/schedule.html'");
   fw_menu_1.addMenuItem("Terminal Locations","location='/terminals.html'");
   fw_menu_1.addMenuItem("Freight Brokerage","location='http://www.simonbrokerage.com'");
   fw_menu_1.hideOnMouseOut=true;  

   window.fw_menu_2 = new Menu("root",130,19,"Arial, Helvetica, sans-serif",12,"#ffffff","#ffffff","#0e2861","#D4C79F");
   fw_menu_2.addMenuItem("News","location='/news.php'");
   fw_menu_2.addMenuItem("Dispatch 24/7","location='/dispatch.html'");
   fw_menu_2.addMenuItem("Lanes","location='/lanes.html'");
   fw_menu_2.addMenuItem("Services Schedule","location='/schedule.html'");
   fw_menu_2.addMenuItem("Terminal Locations","location='/terminals.html'");
   fw_menu_2.addMenuItem("Forms/Documents","location='/forms.html'");
   fw_menu_2.hideOnMouseOut=true;
   
   window.fw_menu_3 = new Menu("root",130,19,"Arial, Helvetica, sans-serif",12,"#ffffff","#ffffff","#0e2861","#D4C79F");
   fw_menu_3.addMenuItem("Overview","location='/careers_general.html'");
   fw_menu_3.addMenuItem("Drivers","location='/careers_drivers.html'");
   fw_menu_3.addMenuItem("Dispatch","location='/careers_dispatch.html'");
   fw_menu_3.addMenuItem("Accounting","location='/careers_acct.html'");
   fw_menu_3.addMenuItem("Owner Operator","location='/careers_owner.html'");
   fw_menu_3.addMenuItem("Driver Application","location='/images/Driver_App_form.pdf'");
   fw_menu_3.addMenuItem("Office Application","location='/images/office_emp_form.pdf'");
   fw_menu_3.hideOnMouseOut=true;

 fw_menu_3.writeMenus();
} 

var testnum = 13;  
  