//(c) Ger Versluis 2000 version 4.15, 9 July 2002
// Notation of PopMenu1 is different from PopMenu2. The result is the same. PopMenu1 is more understandable. PopMenu2 loads faster.

function popBookAJob(strBookJobType)
	{
		var WindowOptions	= "height="+(screen.height-50)+", width="+(screen.width-20)+", left=0, top=0";
		var BookingWindow	= window.open("https://secure.courieraustralia.com.au/ijb/","BookingWindow",WindowOptions);
	}

function ViewDocument(DocumentURL)
	{
		var WindowOptions	= "directories=no, alwaysRaised=yes, height=600, width=800, location=no, menubar=no, personalbar=no, resizeable=1, scrollbars=1, status=no, toolbar=no, titlebar=no";
		var DocWindow		= window.open(DocumentURL,"DocWindow",WindowOptions);
	}

function WaitingForDocument(DocumentName)
	{
		var MessageToDisplay =	"Document:" + DocumentName						+
								"\n\n"											+
								"This document is currently unavailable ..."	+
								"\n\n"											+
								"Please check back soon ...";
		
		alert(MessageToDisplay);
	}

function StatementPODS()
	{
		var WindowOptions	= "height="+(screen.height-50)+", width="+(screen.width-20)+", left=0, top=0, scrollbars=1, resizable=1";
		var PODSWindow		= window.open("http://pods.courieraustralia.com.au/","PODSWindow",WindowOptions);
	}

	// Globals
	var PopNoOffMenus=1;
	var PopWebMasterCheck=1;
	var BaseHref="";

	function P_BeforeStart(){return}
	function P_AfterBuild(){return}
	function P_BeforeFirstOpen(){return}
	function P_AfterCloseAll(){return}

PopMenu1=new Array(42);
	PopMenu1[0]=5;			// number of main items
	PopMenu1[1]=0;			// Left position
	PopMenu1[2]=0;			// Top position
	PopMenu1[3]="";		// Normal font color
	PopMenu1[4]="";		// Normal back color
	PopMenu1[5]="";		// High font color
	PopMenu1[6]="";		// High back color
	PopMenu1[7]="";		// Border color
	PopMenu1[8]="verdana, tahoma, arial";	// Fontfamily
	PopMenu1[9]=1;			// Bold
	PopMenu1[10]=0;			// Italic
	PopMenu1[11]=7;			// Font size
	PopMenu1[12]=1;			// First line horizontal
	PopMenu1[13]=1;			// First line permanent visible
	PopMenu1[14]=1;			// Border width
	PopMenu1[15]="left";		// Text align "left", "center" or "right"
	PopMenu1[16]=0;		// Horizontal overlap
	PopMenu1[17]=0;		// Vertical overlap
	PopMenu1[18]=1000;		// Delay
	PopMenu1[19]=0;			// Right to left unfold
	PopMenu1[20]="PopMenu";		// Target div
	PopMenu1[21]=0;			// Border between elements
	PopMenu1[22]="left";		// Menu horizontal centered "left", "center" or "right"
	PopMenu1[23]="top";		// Menu vertical centered "top", "center" or "bottom"
	PopMenu1[24]="#ffffff";		// Normal fontcolor sub items
	PopMenu1[25]="#265e2f";		// Normal back color sub items
	PopMenu1[26]="#ffffff";		// High font color sub items
	PopMenu1[27]="#033301";		// High back color sub items
	PopMenu1[28]="#033301";		// Border color sub items
	PopMenu1[29]=BaseHref+"tri.gif";	// Arrow right
	PopMenu1[30]=5;			// Arrow Width
	PopMenu1[31]=10;			// Arrow Height
	PopMenu1[32]=BaseHref+"tridown.gif";// Arrow down
	PopMenu1[33]=10;			// Arrow Width
	PopMenu1[34]=5;			// Arrow Height
	PopMenu1[35]=BaseHref+"trileft.gif";	// Arrow left
	PopMenu1[36]=5;			// Arrow Width
	PopMenu1[37]=10;			// Arrow Height
	PopMenu1[38]=1;			// Keep selected path highlighted
	PopMenu1[39]=5;			// Top padding
	PopMenu1[40]=3;			// Left padding
	PopMenu1[41]=0;			// Unfold On Click

	PopMenu1_1=new Array("rollover?"+BaseHref+"images/menu/m2_bookajob.gif?"+BaseHref+"images/menu/m2_bookajob_over.gif","content/bookajob/whichservice.htm","",4,23,79);
		PopMenu1_1_1=new Array("More information ...","content/bookajob/moreinfo.htm","",0,20,180);
		PopMenu1_1_2=new Array("Using the System","content/bookajob/usingthesystem.htm","",0,20,180);
		PopMenu1_1_3=new Array("Using the Booking System (PDF)","javascript:ViewDocument('content/bookajob/ijb.pdf');","",0,20,180);
		PopMenu1_1_4=new Array("Register an Account","content/bookajob/register.aspx?Action=IJB","",0,20,180);
		//PopMenu1_1_5=new Array("Credit Application (PDF)","javascript:ViewDocument('docs/CreditApplication.pdf');","",0,20,180);
	
	PopMenu1_2=new Array("rollover?"+BaseHref+"images/menu/m2_prepaidjob.gif?"+BaseHref+"images/menu/m2_prepaidjob_over.gif","content/prepaid/moreinfo.htm","",4,23,131);
		PopMenu1_2_1=new Array("Prepaid Labels Information","content/prepaid/moreinfo.htm","",0,20,160);
		PopMenu1_2_2=new Array("Order Prepaid Labels","content/prepaid/frmOrderLabels.aspx","",0,20,160);
		PopMenu1_2_3=new Array("Prepaid on Account (PDF)","javascript:ViewDocument('docs/PrepaidOnAccount.pdf');","",0,20,160);
		PopMenu1_2_4=new Array("<font color=#a0a0a0>Prepaid Credit Card","javascript:WaitingForDocument('Prepaid Credit Card');","",0,20,160);


	PopMenu1_3=new Array("rollover?"+BaseHref+"images/menu/m2_checkpods.gif?"+BaseHref+"images/menu/m2_checkpods_over.gif","javascript:StatementPODS();","",5,23,140);
		PopMenu1_3_1=new Array("Search Statements & PODS ...","javascript:StatementPODS();","",0,20,170);
		PopMenu1_3_2=new Array("More Information ...","content/statementpaods/moreinfo.htm","",0,20,170);
		PopMenu1_3_3=new Array("Using the POD's System","content/statementpaods/usingthesystem.htm","",0,20,170);
		PopMenu1_3_4=new Array("Using the POD's System (PDF)","javascript:ViewDocument('content/statementpaods/pods.pdf');","",0,20,170);
		PopMenu1_3_5=new Array("Register an Account","content/bookajob/register.aspx?Action=POD","",0,20,170);

	PopMenu1_4=new Array("rollover?"+BaseHref+"images/menu/m2_otherservices.gif?"+BaseHref+"images/menu/m2_otherservices_over.gif","javascript:void(0);","",2,23,101);
		PopMenu1_4_1=new Array("Contract Services / Fixed Runs","content/otherservices/csandfr.htm","",0,20,170);
		PopMenu1_4_2=new Array("Logistics Division","content/otherservices/logistics.htm","",0,20,170);

	PopMenu1_5=new Array("rollover?"+BaseHref+"images/menu/m2_compayinfo.gif?"+BaseHref+"images/menu/m2_compayinfo_over.gif","javascript:void(0);","",4,23,160);
		PopMenu1_5_1=new Array("Company Profile","content/company/profile.htm","",0,20,160);
		PopMenu1_5_2=new Array("Contact Details","content/company/contact.htm","",0,20,160);
		PopMenu1_5_3=new Array("Policies","content/company/policy.htm","",0,20,160);
		PopMenu1_5_4=new Array("Employment Opportunities","content/company/employment.htm","",0,20,160);
