
function OnMSG(strID, strMSGCode, strLabel)
{
 var form = document.frmMSGList;
 form.hidMSGID.value = strID;
 form.hidMSGCode.value = strMSGCode;
 form.hidMSGName.value = strLabel;
 form.hidActionDetail.value = "viewproductlist";
 form.hidAction.value = "Lookup";
 form.action = "DispatcherServlet";
 form.submit();
}
function OnViewAllProducts()
{
 var form = document.frmMSGList;
 form.hidActionDetail.value = "view_all_products";
 form.hidAction.value = "Lookup";
 form.action = "DispatcherServlet";
 form.submit();
}

function rebateWin(){
newWindow = window.open("/motorcycles/popup/rebate.html", "rebateWindow", "width=560,height=450,scrollbars=yes,resize=no,status=no,toolbar=no,menubar=no");
}

//modelId = new Array("ADVENTURE","CRUISERS","CC125","OFFROAD","SCOOTERS","SPORTSTOURERS","SUPERSPORTS","TOURING","TRADITIONAL");

<!-- Hide script from old browsers
function libinit()
{
 page=new lib_doc_size();
 containerObj = new lib_obj('containerDiv');
 bikeImageObj = new lib_obj('bikeImageDiv');
 promoObj = new lib_obj('promoDiv');
}

var loaded = false;
function init()
{
 libinit();
 rotate();
 loaded = true;
}

/*promoImages = new Array(
"/common/images/homepage/bikes/offer_rideout.jpg",
"/common/images/homepage/bikes/offer_newModels2009.jpg",
"/common/images/homepage/bikes/offer_readyAndWaiting.jpg",
"/common/images/homepage/bikes/offer_hondaHealthy.jpg",
"/common/images/homepage/bikes/hondav4concept.jpg",
"/common/images/homepage/bikes/2009cbf125.jpg",
"/common/images/homepage/bikes/bravetheelements.jpg"
);

promoURL = new Array(
"/rideout/",
"/motorcycles/2009/",
"/readyandwaiting/",
"/hondahealthy/",
"http://www.honda-v4.eu/",
"/motorcycles/2009/?model=CBF125",
"/bravetheelements"
);*/

//"/common/images/homepage/bikes/hondav4concept.jpg",
//"http://www.honda-v4.eu/",
//AV 1/10/2009 - all but one promo has expired so hiding them. Some may be extended so I'm leaving references to the landing pages in here for now!
promoImages = new Array(


"/common/images/homepage/bikes/bikenews.jpg",
"/common/images/homepage/bikes/bravetheelements.jpg",
 "/common/images/homepage/bikes/streetsahead.jpg",
 "/common/images/homepage/bikes/zero-apr.gif",
 "/common/images/homepage/bikes/get_on_lifes_better.jpg");
 /*,"/common/images/homepage/bikes/50years.jpg",
 "/common/images/homepage/bikes/free_topbox.jpg",

 "/common/images/homepage/bikes/freedomofchoice.jpg",
 "/common/images/homepage/bikes/nakeddesire.jpg"
 );*/

 promoURL = new Array(

 "/news/motorcycles/",
 "/bravetheelements",
 "/streetsahead",
 "/financeoffers", 
 "http://www.geton.co.uk/");
 /*,"/50years",
 "/freetopbox",

 "/freedomofchoice",
 "/nakeddesire"
 );*/


thisPromo=-1;
imgCt = promoImages.length;

function rotate()
{
 if (document.images)
 {
 ad = document.promoAd?document.promoAd:document.promoDiv.document.promoAd;

 document.getElementById("promoDiv").style.visibility="visible";


 if (ad.complete)
 {
 thisPromo++
 if (thisPromo == imgCt)
 {
 thisPromo = 0
 }
 ad.src=promoImages[thisPromo]
 }
 setTimeout("rotate()", 6 * 1000)
 }
}

function newLocation()
{
 document.location.href = promoURL[thisPromo]
}

function select(modelId)
{
 if (loaded)
 {

 bikeImageObj.images['bikeImage'].src='en/picture/msg/home/prd_home_' + modelId + '.jpg?rnd=' + Math.random();
 }
}

onload=init;
// End hiding script from old browsers -->





 


 