
//====== BELOW IS THE JAVASCRIPT CODE FROM PREVIOUS VERSION ==========


<!-- Begin CalCargo's News Scroller code
// make sure string below correctly identifies where the blank.gif image is stored
var blank = "images/spacer.gif";

topedge = 287;  // location of news box from top of page
leftedge = 637;  // location of news box from left edge
boxheight = 190;  // height of news box
boxwidth = 133;  // width of news box
scrollheight = 665; // total height of all data to be scrolled

function scrollnews(cliptop) {
if (document.layers) {
newsDiv = document.news;
newsDiv.clip.top = cliptop;
newsDiv.clip.bottom = cliptop + boxheight;
newsDiv.clip.left = 0;
newsDiv.clip.right = boxwidth + leftedge;
newsDiv.left = leftedge;
newsDiv.top = topedge - cliptop;
}
else {
newsDiv = news.style;
newsDiv.clip = "rect(" + cliptop + "px " + (boxwidth + leftedge) + "px " + (cliptop + boxheight) + "px 0px)";
newsDiv.pixelLeft = leftedge;
newsDiv.pixelTop = topedge - cliptop;
}
cliptop = (cliptop + 1) % (scrollheight + boxheight);
newsDiv.visibility='visible';
setTimeout("scrollnews(" + cliptop + ")", 8);
}
// End of News Scroller code-->



<!-- Begin 'jumpto' function for automated pulldown menu
function JumpTo(theObj)
{
	(navigator.appName.indexOf("Netscape") != -1) ? ns=true : ns=false;
	(ns) ? theLoc=(theObj.options[theObj.selectedIndex].value) : theLoc = theObj.value;
	if (theLoc != "") window.location=theLoc;
}
// End jumpto function-->


<!-- begin scripts for pop-up menus -->
<!-- Begin Help popup
function helpme(l, t, w, h) {
  var windowprops = "location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes" +
  ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
  var URL = "help/help.htm";
  popup = window.open(URL,"MenuPopup",windowprops);
}
//  End Help popup-->
<!-- Begin Contacts popup
function contacts(l, t, w, h) {
  var windowprops = "location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes" +
  ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
  var URL = "contacts.htm";
  popup = window.open(URL,"contacts",windowprops);
}
//  End Contacts popup-->
<!-- Begin Passport popup
function passport(l, t, w, h) {
  var windowprops = "location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes" +
  ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
  var URL = "passport/passport.htm";
  popup = window.open(URL,"passport",windowprops);
}
//  End Passport popup-->
<!-- Begin Maps popup
function maps(l, t, w, h) {
  var windowprops = "location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes" +
  ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
  var URL = "help/maps.htm";
  popup = window.open(URL,"maps",windowprops);
}
//  End Maps popup-->
<!-- Begin Site_Map popup
function site_map(l, t, w, h) {
  var windowprops = "location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes" +
  ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
  var URL = "site_map.htm";
  popup = window.open(URL,"site_map",windowprops);
}
//  End Site_Map popup-->
<!-- Begin Register popup
function register(l, t, w, h) {
   var windowprops = "location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes" +
   ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
   var URL = "register.htm";
   popup = window.open(URL,"register",windowprops);
}
//  End Register popup-->
<!-- Begin Navigation image popup
function navigation(l, t, w, h) {
  var windowprops = "location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes" +
  ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
  var URL = "../help/navigation.htm";
  popup = window.open(URL,"navigation",windowprops);
}
//  End Navigation image popup-->
<!-- Begin Navigation image popup
function navigation(l, t, w, h) {
  var windowprops = "location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes" +
  ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
  var URL = "help/navigation.htm";
  popup = window.open(URL,"navigation",windowprops);
}
//  End Navigation image popup-->
<!-- Begin Comments popup
function comments(l, t, w, h) {
   var windowprops = "location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes" +
   ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
   var URL = "../help/comments.htm";
   popup = window.open(URL,"comments",windowprops);
}
//  End Comments popup-->
<!-- end scripts for pop-up menus -->


<!--Begin script for the floating menu box-->
self.onError=null;
currentX = currentY = 0;  
whichIt = null;           
lastScrollX = 0; lastScrollY = 0;
        
IE = (document.all) ? 1: 0;
NS = (document.layers) ? 1 : 0;
        
<!-- Begin menu float code -->
function floatingMenu() {
	if (IE) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; }
	if (NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
	if (diffY != lastScrollY) {
		percent = .1 * (diffY - lastScrollY);
		if (percent > 0) percent = Math.ceil(percent);
		else percent = Math.floor(percent);
		if (IE) document.all.floater.style.pixelTop += percent;
		if (NS) document.floater.top += percent; 
		lastScrollY = lastScrollY + percent;
	}
	if (diffX != lastScrollX) {
		percent = .1 * (diffX - lastScrollX);
		if (percent > 0) percent = Math.ceil(percent);
		else percent = Math.floor(percent);
		if (IE) document.all.floater.style.pixelLeft += percent;
		if (NS) document.floater.left += percent;
		lastScrollX = lastScrollX + percent;
	}       
}
function go() {   
	if (NS || IE) action = window.setInterval("floatingMenu()",1);    
}
//End script for floating menu box-->
<!--Begin 3-state button floating button bar code-->
<!--
	var oLastBtn=0;
	function RaiseButton(){
		window.event.cancelBubble=true;
		oBtn = window.event.srcElement;
		var bChosen = false;
		if(oLastBtn && oLastBtn != oBtn){
			HideButton();
		}
		if(oBtn.buttonType){
			oBtn.className = oBtn.buttonType + "Up";
			oLastBtn=oBtn;
			}
		else {
		oLastBtn = 0;
		}
	}
	function DepressButton(){
		window.event.cancelBubble=true;
		oBtn = window.event.srcElement;
		if(oBtn.buttonType){
			oBtn.className = oBtn.buttonType + "Down";
		}
	}
	function HideButton(){
		if ((oLastBtn.buttonType == "LeftNavChosen") || (oLastBtn.buttonType == "LeftNavSubChosen") || (oLastBtn.buttonType == "appNavChosen") || (oLastBtn.buttonType == "appNavSubChosen")) {
			oLastBtn.className = oLastBtn.buttonType;
		}
		else {
		oLastBtn.className = oLastBtn.buttonType + "Off";
		}
	}
//-->
<!--
        var strTDColor = '#0E5158';
        g_RolledTD = new Object;

        function textRoll(strTextColor)
  {
                window.event.srcElement.style.color = strTextColor;
                window.event.cancelBubble = true;
        }
        function TDUnRoll()
        {
                g_RolledTD.bgColor = strTDColor;
        }
        function TDRoll(strTDColor)
        {
                window.event.srcElement.bgColor = strTDColor;
                g_RolledTD = window.event.srcElement;
                window.event.cancelBubble = true;
        }

        document.onClick = TDUnRoll;
        document.onmouseover = TDUnRoll;
//-->






<!--BEGINNING OF NEW RANDOM IMAGE CYCLER SCRIPT -- implement this later -->
<!--AKAMAI USES SAME FUNCTION ON ITS SITE-->
<!-- THIS SECTION ALSO HAS THE DATE WRITE AND STATUS BAR TEXT STRING FUNCTIONS -->
<!-- 
/* Random image script */
var pics = new Array();
pics[0] =
'http://www.pcnw.com/images/random_banner1.gif';
pics[1] = 'http://www.pcnw.com/images/random_banner2.gif';
pics[2] = 'http://www.pcnw.com/images/random_banner3.gif';
pics[3] = 'http://www.pcnw.com/images/random_banner4.gif';
pics[4] = 'http://www.pcnw.com/images/random_banner5.gif';

function rand(){
	if(document.images){
		var n = Math.round((Math.random())*1000)%5;
		document.replace.src = pics[n];
	}
}

/* Date write functions */
today = new Date();
day = today.getDate();
monthint = today.getMonth();
y = today.getYear();
y += (y < 1900) ? 1900 : 0;
allmonths = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
datestring = allmonths[monthint]+" "+day+", "+y;

/* window status */
window.defaultStatus="CalCargo is the total solutions provider for all your logistics needs.";

if (document.images) {
		nav_on = new Image();
		nav_on.src = "images/nav_on.gif";
		nav_off = new Image();
		nav_off.src = "images/nav_off.gif";
}
function flip() {
	if (document.images) {
		var num_arg = arguments.length;
		if (num_arg == 0 || (num_arg % 2) != 0) return;
		for (var i=0; i<num_arg; i) {
			var j = i+1;
			var imgname = arguments[i];
			var imgsrc = arguments[j];
			document.images[imgname].src = eval(imgsrc+'.src');
			i+=2;
		}
	}
}

// -->
<!--END OF IMAGE CYCLER, DATE WRITE AND STATUS BAR TEXT STRING FUNCTIONS-->
