function spotlight(page){
	var axel = Math.random()+"";
	var a = axel * 10000000000000;
	if(page == "buick"){
	    clickTrack({pageName:'BUICK OPEN | ABOUT | BUICK.COM', prop20:'BUICK OPEN | ABOUT | BUICK.COM'});
	    document.write('<IMG SRC="http://ad.doubleclick.net/activity;src=1139716;type=pstar017;cat=buick874;ord='+ a + '?" WIDTH=1 HEIGHT=1 BORDER=0>');
		window.location.href = BASE + "/en/pages/open/sitelet/buickopen/about.jsp";
		open("http://www.buick.com/?evar25=BuickOpen","");


	}else{
		if(page == "ticketmaster"){
		    document.write('<IMG SRC="http://ad.doubleclick.net/activity;src=1139716;type=pstar017;cat=buick188;ord='+ a + '?" WIDTH=1 HEIGHT=1 BORDER=0>');
			window.location.href = BASE + "/en/pages/open/sitelet/buickopen/tickets.jsp";
			open("http://www.ticketmaster.com/artist/807291","");
		}
	}
}

function mhInitializeValues(){
 // mhLoad_EventHandler();
}

function changeRotaing(){
  if (window.location.href.indexOf("buickopen") > 0)
	   document.getElementById("routingImg").id = "routingImg";
  if(window.location.href.indexOf("buickopen/tickets/index.jsp") > 0)
     document.getElementById("routingImg").id = "routingImgTickets";
  if(window.location.href.indexOf("buickopen/info/index.jsp") > 0)
     document.getElementById("routingImg").id = "routingImgTourn";
    if(window.location.href.indexOf("buickopen/sponsor/index.jsp") > 0)
     document.getElementById("routingImg").id = "routingImgSponsor";
	if(window.location.href.indexOf("buickopen/media/index.jsp") > 0)
     document.getElementById("routingImg").id = "routingImgMedia";
	if(window.location.href.indexOf("buickopen/volunteer/index.jsp") > 0)
     document.getElementById("routingImg").id = "routingImgVolunteer";
	if(window.location.href.indexOf("buickopen/about/index.jsp") > 0)
     document.getElementById("routingImg").id = "routingImgAbout";
	if(window.location.href.indexOf("buickopen/charity/index.jsp") > 0)
     document.getElementById("routingImg").id = "routingImgCharity";

}

var nav4 = window.Event ? true : false;
function only_numbers(evt)
{
var key = nav4 ? evt.which : evt.keyCode;
return (key <= 13 || (key >= 48 && key != 47 && key <= 57));
}

function mhLoad_EventHandler() {
	var lenloadimg;
  if (document.getElementById) {
	tabArray = cssQuery("div#navigation ul#ulTabNav li a img");
	for(i=0;i<tabArray.length;i++){
	   //alert(tabArray[i].id);
	    if(tabArray[i].src.indexOf("_on") < 0)
		   AttachEvent(tabArray[i], "mouseover", tab_onmouseover);
		else
		    if(tabArray[i].id.indexOf("_on") > 0)
			 AttachEvent(tabArray[i], "mouseout", tab_onmouseout);
	}
  }
}
var src_off;
var out=1;
function tab_onmouseover(eventArgs){
  var thisTab = getObjID(eventArgs);
  if(out==1)
  {
	  id_off = document.getElementById(thisTab).id;
	  document.getElementById(thisTab).style.display = "none";
	  document.getElementById(id_off+"_on").style.display = "block";
	  out=0;
  }
   else
   {
	    document.getElementById(id_off).style.display = "block";
        document.getElementById(id_off+"_on").style.display = "none";
		out=1;
   }
//  document.getElementById(thisTab).className = thisTab+"_on";
}
function tab_onmouseout(eventArgs){
  document.getElementById(id_off).style.display = "block";
  document.getElementById(id_off+"_on").style.display = "none";
  out=1;
  //document.getElementById(thisTab).className = thisTab;
}
function confirmation(){
	var message = 'You are now leaving Buick.com \n\n ATTENTION: \n\n You are about to be directed to a site independent of Buick.com and the General Motors Corporation. Any site operating independent of Buick.com is responsible for the collection and maintenance of its own data. GM, Buick and affiliated agencies claim no responsibility for the content of any independent sites. If you wish to stay on Buick.com, please exit this window.\n\n If you wish to continue to an independent site and understand the terms of leaving Buick.com, please click "Continue".';
   	if (confirm(message)){
   		spotlight("ticketmaster");
   		return false;
   	}else{
     	return false;
    }
}

//AttachEvent(window, "load", mhInitializeValues);
