/*
Milonic DHTML Menu - JavaScript Website Navigation System.
Copyright 2004 (c) Milonic Solutions Limited. All Rights Reserved.
Version 5+ Data File structure is the property of Milonic Solutions Ltd and must only be used in Milonic DHTML Products
This is a commercial software product, please visit http://www.milonic.com/ for more information.
See http://www.milonic.com/license.php for Commercial License Agreement
All Copyright statements must always remain in place in all files at all times
*******  PLEASE NOTE: THIS IS NOT FREE SOFTWARE, IT MUST BE LICENSED FOR ALL USE  ******* 
*/

_menuCloseDelay=200			// The time delay for menus to remain visible on mouse out
_menuOpenDelay=100           // The time delay before menus open on mouse over
_subOffsetTop=0              // Sub menu top offset
_subOffsetLeft=-2            // Sub menu left offset

//**************************************************************
//breadcrumbs
var mm_separator = "  ~  ";
var mm_selectionSequence = "";
function mm_openUrl(url)
{
  url+="?"+_itemRef;
  window.location.href = url;
}

function mm_getSelectionSequence()
{
  var selectedItem = location.search.slice(1);
  var i = selectedItem;
  do {
    if (mm_selectionSequence == "")
      mm_selectionSequence = _mi[i][1];
    else
      mm_selectionSequence = _mi[i][1] + mm_separator + mm_selectionSequence;
    i = getParentItemByItem(i);
  } while (!isNaN(i));
}
//**************************************************************

with(menuStyle1=new mm_style()){
swap3d= 'false';
onbold=1;
onbgcolor="#FFCC00";
oncolor="#000000";
offbgcolor="#000000";
offcolor="#FFCC00";
bordercolor="#000000;"
borderstyle="solid";
borderwidth=1;
separatorcolor="#484848";
separatorsize="1";
padding=6;
fontsize="16px";
fontstyle="normal";
fontfamily="Arial Narrow";
pagecolor="#000000";
pagebgcolor="#FFCC00";
headercolor="#000000";
headerbgcolor="#ffffff";
}

with(menuStyle2=new mm_style()){
onbold=1;
onbgcolor="#FFCC00";
oncolor="#000000";
offbgcolor="#484848";
offcolor="#CCCCCC";
bordercolor="#484848;"
borderstyle="solid";
borderwidth=1;
separatorcolor="#000000";
separatorsize="1";
padding=4;
fontsize="14px";
fontstyle="normal";
fontfamily="Arial Narrow";
pagecolor="black";
headercolor="#000000";
headerbgcolor="#ffffff";
}
with(menuStyle3=new mm_style()){
onbold=1;
onbgcolor="#FFFFFF";
oncolor="#000000";
offbgcolor="#FFCC00";
offcolor="#000000";
bordercolor="#000000;"
borderstyle="solid";
borderwidth=1;
separatorcolor="#000000";
separatorsize="1";
padding=4;
fontsize="14px";
fontstyle="normal";
fontfamily="Arial Narrow";
pagecolor="black";
headercolor="#000000";
headerbgcolor="#ffffff";
}

with(milonic=new menuname("About")){
style=menuStyle2;
overflow="scroll";
aI("text=VISION, VALUES, and MISSION;url=http://www.kramer.ca/About.php#Vision;");
aI("text=History;url=http://www.kramer.ca/About.php#History;");
aI("text=6 Sigma;url=http://www.kramer.ca/About.php#6Sigma;");
aI("text=Did You Know?;url=http://www.kramer.ca/About.php#DidYouKnow;");
aI("text=About this Website;url=http://www.kramer.ca/About.php#thisweb;");
aI("text=;url=;");
}
with(milonic=new menuname("Ag")){
style=menuStyle1;
overflow="scroll";
aI("text=Contact;url=http://www.kramer.ca/Ag.php#contact;");
aI("text=Financing (Credit);url=http://www.kramer.ca/Credit.php;");
aI("text=Products By Branch;url=http://www.kramer.ca/Ag.php#products;");
aI("text=Used Agriculture Equipment;url=http://www.kramer.ca/Ag.php#used");
}
with(milonic=new menuname("ContactUs")){
style=menuStyle2;
overflow="scroll";
aI("text=By Branch;url=;");
aI("text=By Industry;url=;");
aI("text=By R.M.;url=;");
aI("text=Maps;url=;");
aI("text=PSSRS;url=;");
}
with(milonic=new menuname("Credit")){
style=menuStyle2;
overflow="scroll";
aI("text=Credit Applications;url=http://www.kramer.ca/Credit.php#credapps;");
aI("text=Finance Options;url=http://www.kramer.ca/Credit.php#finoptions;");
}
with(milonic=new menuname("Downloads")){
style=menuStyle2;
overflow="scroll";
aI("text=Screen Savers&raquo\;;url=http://www.kramer.ca/Downloads.php#ss;showmenu=DownloadScreenS;");
aI("text=Simulators&raquo\;;url=http://www.kramer.ca/Downloads.php#s;showmenu=DownloadSims;");
}
with(milonic=new menuname("DownloadScreenS")){
style=menuStyle2;
overflow="scroll";
/*aI("text=ACERT Engine Screen Saver;url=http://www.kramer.ca/Downloads.php#sscat;");*/
aI("text=Caterpillar Screen Saver;url=http://www.kramer.ca/Downloads.php#sscat;");
aI("text=Cat Chopper Screen Saver;url=http://www.kramer.ca/Downloads.php#sschop;");
aI("text=Cat General Construction Screen Saver;url=http://www.kramer.ca/Downloads.php#ssgen;");
aI("text=Cat Global Mining Screen Saver 1;url=http://www.kramer.ca/Downloads.php#ssgmine1;");
aI("text=Cat Global Mining Screen Saver 2;url=http://www.kramer.ca/Downloads.php#ssgmine1;");
aI("text=Cat Energy Screen Saver;url=http://www.kramer.ca/Downloads.php#ssenerg;");
}
with(milonic=new menuname("DownloadSims")){
style=menuStyle2;
overflow="scroll";
aI("text=Backhoe Simulator;url=http://www.kramer.ca/Downloads.php#sbh;");
aI("text=Skid Steer Simulator;url=http://www.kramer.ca/Downloads.php#sss;");
}
with(milonic=new menuname("Employment")){
style=menuStyle2;
overflow="scroll";
aI("text=Job Opportunities;url=http://www.kramer.ca/Employment.php#jobops;");
aI("text=Submit your Resume;url=http://www.kramer.ca/Employment.php#subres;");
}
with(milonic=new menuname("Energy")){
style=menuStyle1;
overflow="scroll";
aI("text=Contact;url=http://www.kramer.ca/Energy.php#contact;");
aI("text=Custom Fabrication;url=http://www.kramer.ca/Energy.php#custom;");
aI("text=Financing (Credit);url=http://www.kramer.ca/Credit.php;");
aI("text=Product Info at Cat;url=http://www.kramer.ca/Energy.php#infocat;");
aI("text=Rental Power;url=http://www.kramer.ca/Energy.php#rental;");
}
with(milonic=new menuname("ExParts")){
style=menuStyle2;
overflow="scroll";
aI("text=New Arrivals;url=http://www.kramer.ca/ExParts.php#newarrive;");
}
with(milonic=new menuname("Financial")){
style=menuStyle2;
overflow="scroll";
aI("text=Contact;url=;");
aI("text=Conditional Sales Contract;url=;");
aI("text=Download document;url=;");
aI("text=Finance (Capital) Lease;url=;");
aI("text=Flexible Payment Plans;url=;");
aI("text=Operating Lease;url=;");
aI("text=Strength Means Power;url=;");
}
with(milonic=new menuname("Heavy")){
style=menuStyle1;
overflow="scroll";
aI("text=Contact;url=http://www.kramer.ca/Heavy.php#contact;");
aI("text=Financing (Credit);url=http://www.kramer.ca/Credit.php;");
aI("text=Links;url=http://www.kramer.ca/Heavy.php#links;");
aI("text=Mining;url=http://www.kramer.ca/Heavy.php#mining;");
}
with(milonic=new menuname("Lift")){
style=menuStyle1;
overflow="scroll";
aI("text=Contact;url=http://www.kramer.ca/Lift.php#contact;");
aI("text=Financing (Credit);url=http://www.kramer.ca/Credit.php;");
aI("text=Links;url=http://www.kramer.ca/Lift.php#links;");
aI("text=Parts & Service;url=http://www.kramer.ca/Lift.php#partsservice;");
aI("text=Products;url=http://www.kramer.ca/Lift.php#product;");
aI("text=Rentals;url=http://www.kramer.ca/Lift.php#rental;");
}
with(milonic=new menuname("Links")){
style=menuStyle2;
overflow="scroll";
aI("text=Caterpillar Links;url=http://www.kramer.ca/Links.php#cat;");
aI("text=Community Links;url=http://www.kramer.ca/Links.php#comm;");
aI("text=Industry Association Links;url=http://www.kramer.ca/Links.php#ind;");
}
with(milonic=new menuname("News")){
style=menuStyle2;
overflow="scroll";
aI("text=Kramer News Magazine;url=http://www.kramer.ca/kramernewsmagazine.php;");
aI("text=News Online;url=http://www.kramer.ca/news.php;");
}
with(milonic=new menuname("PartsService")){
style=menuStyle1;
overflow="scroll";
aI("text=BUY PARTS ONLINE at PartStore;url=http://www.kramer.ca/dsf/?pageID=P;");
aI("text=Certified Rebuilds;url=http://www.kramer.ca/PartsService.php#certreb;");
aI("text=Contamination Control;url=http://www.kramer.ca/PartsService.php#contcon;");
aI("text=Experienced Parts;url=http://www.kramer.ca/ExParts.php;");
aI("text=Filter Cleaning;url=http://www.kramer.ca/PartsService.php#filter;");
aI("text=Financing (Credit);url=http://www.kramer.ca/Credit.php;");
aI("text=Hydraulics;url=http://www.kramer.ca/PartsService.php#hydra;");
aI("text=Machine Shop;url=http://www.kramer.ca/PartsService.php#mach;");
aI("text=Online Services - Dealer Store Front;url=http://www.kramer.ca/dsf.php;");
aI("text=Product Support;url=http://www.kramer.ca/ProdSupport.php;");
aI("text=Rad Shop;url=http://www.kramer.ca/PartsService.php#rad;");
aI("text=S•O•S Services - Fluid Analysis;url=http://www.kramer.ca/SOS.php;");
//aI("text=Training;url=http://www.kramer.ca/Training.php;");
}
with(milonic=new menuname("ProdSupport")){
style=menuStyle2;
overflow="scroll";
aI("text=Contact a PSC;url=http://www.kramer.ca/ProdSupport.php#pssr;");
aI("text=Customer Support Agreements;url=http://www.kramer.ca/ProdSupport.php#agreements;");
}
/*with(milonic=new menuname("Truck")){
style=menuStyle1;
overflow="scroll";
aI("text=Contact;url=http://www.kramer.ca/Truck.php#contact;");
aI("text=Financing (Credit);url=http://www.kramer.ca/Credit.php;");
aI("text=Links;url=http://www.kramer.ca/Truck.php#links;");
aI("text=Mechron Power Systems;url=http://www.kramer.ca/Truck.php#mechron;");
aI("text=TEPS Dealers;url=http://www.kramer.ca/Truck.php#teps;");
}*/
with(milonic=new menuname("Used")){
style=menuStyle1;
overflow="scroll";
aI("text=Contact;url=http://www.kramer.ca/Used.php#contact;");
aI("text=Financing (Credit);url=http://www.kramer.ca/Credit.php;");
/*aI("text=Provincial;url=Used.php#prov;");
aI("text=National;url=Used.php#nat;");
aI("text=International;url=Used.php#inter;");*/
aI("text=Used Equipment Online;url=http://www.kramer.ca/dsf/?pageID=U;");

}
//**************************************************************
drawMenus();
//**************************************************************
//mm_getSelectionSequence();


function Set_Cookie( name, value, expires, path, domain, secure ) 
{
// set time, it's in milliseconds
var today = new Date();
today.setTime( today.getTime() );

/*
if the expires variable is set, make the correct 
expires time, the current script below will set 
it for x number of days, to make it for hours, 
delete * 24, for minutes, delete * 60 * 24
*/
if ( expires )
{
expires = expires * 1000 * 60 * 60 * 24;
}
var expires_date = new Date( today.getTime() + (expires) );

document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + 
( ( path ) ? ";path=" + path : "" ) + 
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
}