// Marquee text in status bar : Kiran Anthony 07-06-07

var data = " Best Viewed in Microsoft Internet Explorer 6.0 and above... !!!  ";    // Message to be display 
var limit="                        ";    // define bounce limit 
var message1=limit+'*'+data+'*'+limit; 
var direction = "left"; 
var speed = 200; 

function bounce() 
{ 
if (direction == "left") 
  { 
    message2=message1.substring(2,message1.length)+"  ";//alert()
    window.status=message2; 
    setTimeout("bounce();",speed); 
    message1=message2; 
    if (message1.substring(0,1) == "*") 
     direction="right"; 
  } 
else 
  { 
    message2="  "+message1.substring(0,message1.length-2); 
    window.status=message2; 
    setTimeout("bounce();",speed); 
    message1=message2; 
    if (message1.substring(message1.length-1,message1.length) == "*") 
     direction="left"; 
  } 
} 
bounce() 



//////////////


function openWindowLink(objUrl)
{
	
window.open(objUrl,'mywindow','width=' + screen.width + ', height=' + screen.height + ',left=0, top=0,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes');
}
// JavaScript Document

function ItemChange()

            {

                        var brandUrl= document.getElementById("models")

                        if(brandUrl.value!="")

                        {

                                    if(brandUrl.value==2)

                                    {

                                                document.location  = brandUrl.value;

                                    }

                                    else

                                    {

                                                document.location  = brandUrl.value;

                                    }

 

                        }
                       

            }


function dealerLocator(){
	if(modelName=="2B")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/dealer_locator/dealerlocator.html?deriv_cd=2?modelCd=2B";
	else if(modelName=="2C")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/dealer_locator/dealerlocator.html?deriv_cd=2?modelCd=2C";
	else if(modelName=="8")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/dealer_locator/dealerlocator.html?deriv_cd=8?modelCd=8";
	else if(modelName=="2D")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/dealer_locator/dealerlocator.html?deriv_cd=2?modelCd=2D";
	else if(modelName=="2F")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/dealer_locator/dealerlocator.html?deriv_cd=2?modelCd=2F";
	else if(modelName=="2A")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/dealer_locator/dealerlocator.html?deriv_cd=2?modelCd=2A";
	else if(modelName=="2O")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/dealer_locator/dealerlocator.html?deriv_cd=2?modelCd=2O";
	else if(modelName=="2L")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/dealer_locator/dealerlocator.html?deriv_cd=2?modelCd=2L";
	else if(modelName=="2K")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/dealer_locator/dealerlocator.html?deriv_cd=2?modelCd=2K";
		else if(modelName=="2P")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/dealer_locator/dealerlocator.html?deriv_cd=2?modelCd=2P";
	else
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/dealer_locator/dealerlocator.html?deriv_cd=2?modelCd=2";
}

function financeCalculator(){
	
	openFixedWindow('https://www.wesbank.co.za/WesBankCoZa/calculators/loanamount/index.jspx?siteID=gmsa')
}

function openFixedWindow(objUrl)
{
	alert('Disclaimer:  The finance calculators are not the property of GMSA and therefore not controlled by GMSA.');
window.open(objUrl,'popup','top=75, left=25, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizeable=no,width=490,height=360');
}

function onlineBooking(){
	if(modelName=="2B")
		location.href="/GBPServiceMgr2.dyn?CntryCd=ZA&LangCd=en&WebSiteID=GBPZA&ReqsType=Pull&ServiceName=GlobalComponent&func=TestDrive&NampltCdTD=2B";
	else if(modelName=="2C")
		location.href="/GBPServiceMgr2.dyn?CntryCd=ZA&LangCd=en&WebSiteID=GBPZA&ReqsType=Pull&ServiceName=GlobalComponent&func=TestDrive&NampltCdTD=2C";
	else if(modelName=="2D")
		location.href="/GBPServiceMgr2.dyn?CntryCd=ZA&LangCd=en&WebSiteID=GBPZA&ReqsType=Pull&ServiceName=GlobalComponent&func=TestDrive&NampltCdTD=2D";
	else if(modelName=="2F")
		location.href="/GBPServiceMgr2.dyn?CntryCd=ZA&LangCd=en&WebSiteID=GBPZA&ReqsType=Pull&ServiceName=GlobalComponent&func=TestDrive&NampltCdTD=2F";
	else if(modelName=="8")
		location.href="/GBPServiceMgr2.dyn?CntryCd=ZA&LangCd=en&WebSiteID=GBPZA&ReqsType=Pull&ServiceName=GlobalComponent&func=TestDrive&NampltCdTD=8";
	else if(modelName=="2A")
		location.href="/GBPServiceMgr2.dyn?CntryCd=ZA&LangCd=en&WebSiteID=GBPZA&ReqsType=Pull&ServiceName=GlobalComponent&func=TestDrive&NampltCdTD=2A";
	else if(modelName=="2O")
		location.href="/GBPServiceMgr2.dyn?CntryCd=ZA&LangCd=en&WebSiteID=GBPZA&ReqsType=Pull&ServiceName=GlobalComponent&func=TestDrive&NampltCdTD=2O";
	else if(modelName=="2L")
		location.href="/GBPServiceMgr2.dyn?CntryCd=ZA&LangCd=en&WebSiteID=GBPZA&ReqsType=Pull&ServiceName=GlobalComponent&func=TestDrive&NampltCdTD=2L";
	else if(modelName=="2K")
		location.href="/GBPServiceMgr2.dyn?CntryCd=ZA&LangCd=en&WebSiteID=GBPZA&ReqsType=Pull&ServiceName=GlobalComponent&func=TestDrive&NampltCdTD=2K";
	else if(modelName=="2P")
		location.href="/GBPServiceMgr2.dyn?CntryCd=ZA&LangCd=en&WebSiteID=GBPZA&ReqsType=Pull&ServiceName=GlobalComponent&func=TestDrive&NampltCdTD=2P";
	else
		location.href="/GBPServiceMgr2.dyn?CntryCd=ZA&LangCd=en&WebSiteID=GBPZA&ReqsType=Pull&ServiceName=GlobalComponent&func=TestDrive&NampltCdTD=2";

}
function contactUs(){
	if(modelName=="2B")
		location.href="/GBPServiceMgr2.dyn?CntryCd=ZA&LangCd=en&WebSiteID=GBPZA&ReqsType=Pull&ServiceName=GlobalComponent&func=ContactUs&NampltCdCU=2B";
	else if(modelName=="2C")
		location.href="/GBPServiceMgr2.dyn?CntryCd=ZA&LangCd=en&WebSiteID=GBPZA&ReqsType=Pull&ServiceName=GlobalComponent&func=ContactUs&NampltCdCU=2C";
	else if(modelName=="2D")
		location.href="/GBPServiceMgr2.dyn?CntryCd=ZA&LangCd=en&WebSiteID=GBPZA&ReqsType=Pull&ServiceName=GlobalComponent&func=ContactUs&NampltCdCU=2D";
		else if(modelName=="2F")
		location.href="/GBPServiceMgr2.dyn?CntryCd=ZA&LangCd=en&WebSiteID=GBPZA&ReqsType=Pull&ServiceName=GlobalComponent&func=ContactUs&NampltCdCU=2F";
	else if(modelName=="8")
		location.href="/GBPServiceMgr2.dyn?CntryCd=ZA&LangCd=en&WebSiteID=GBPZA&ReqsType=Pull&ServiceName=GlobalComponent&func=ContactUs&NampltCdCU=8";
	else if(modelName=="2A")
		location.href="/GBPServiceMgr2.dyn?CntryCd=ZA&LangCd=en&WebSiteID=GBPZA&ReqsType=Pull&ServiceName=GlobalComponent&func=ContactUs&NampltCdCU=2A";
		  else if(modelName=="2O")
		location.href="/GBPServiceMgr2.dyn?CntryCd=ZA&LangCd=en&WebSiteID=GBPZA&ReqsType=Pull&ServiceName=GlobalComponent&func=ContactUs&NampltCdCU=2O";
		
			else if(modelName=="2L")
		location.href="/GBPServiceMgr2.dyn?CntryCd=ZA&LangCd=en&WebSiteID=GBPZA&ReqsType=Pull&ServiceName=GlobalComponent&func=ContactUs&NampltCdCU=2L";
			else if(modelName=="2K")
		location.href="/GBPServiceMgr2.dyn?CntryCd=ZA&LangCd=en&WebSiteID=GBPZA&ReqsType=Pull&ServiceName=GlobalComponent&func=ContactUs&NampltCdCU=2K";
			else if(modelName=="2P")
		location.href="/GBPServiceMgr2.dyn?CntryCd=ZA&LangCd=en&WebSiteID=GBPZA&ReqsType=Pull&ServiceName=GlobalComponent&func=ContactUs&NampltCdCU=2P";
	else
		location.href="/GBPServiceMgr2.dyn?CntryCd=ZA&LangCd=en&WebSiteID=GBPZA&ReqsType=Pull&ServiceName=GlobalComponent&func=ContactUs&NampltCdCU=2";
}


function gvtOrder(){
	if(modelName=="2B")
		location.href="http://www.gmsafleetsales.co.za";
	else if(modelName=="2C")
		location.href="http://www.gmsafleetsales.co.za";
	else if(modelName=="2D")
		location.href="http://www.gmsafleetsales.co.za";
	else if(modelName=="2F")
		location.href="http://www.gmsafleetsales.co.za";
	else if(modelName=="8")
		location.href="http://www.gmsafleetsales.co.za";
	else if(modelName=="2A")
		location.href="http://www.gmsafleetsales.co.za";
	else if(modelName=="2O")
		location.href="http://www.gmsafleetsales.co.za";
	else if(modelName=="2L")
		location.href="http://www.gmsafleetsales.co.za";
	else if(modelName=="2K")
		location.href="http://www.gmsafleetsales.co.za";
	else if(modelName=="2P")
		location.href="http://www.gmsafleetsales.co.za";
	//openWindowLink("/content_data/LAAM/ZA/en/GBPZA/gbl/govt_order.html?modelCd=2");
	else
		location.href="http://www.gmsafleetsales.co.za";
}


function track_trace(){
	if(modelName=="2B")
		location.href="/content_data/LAAM/ZA/en/GBPZA/gbl/TrackAndTrace.html?modelCd=2B";
	else if(modelName=="2C")
		location.href="/content_data/LAAM/ZA/en/GBPZA/gbl/TrackAndTrace.html?modelCd=2C";
	else if(modelName=="2D")
		location.href="/content_data/LAAM/ZA/en/GBPZA/gbl/TrackAndTrace.html?modelCd=2D";
	else if(modelName=="2F")
		location.href="/content_data/LAAM/ZA/en/GBPZA/gbl/TrackAndTrace.html?modelCd=2F";
	else if(modelName=="8")
		location.href="/content_data/LAAM/ZA/en/GBPZA/gbl/TrackAndTrace.html?modelCd=8";
	else if(modelName=="2A")
		location.href="/content_data/LAAM/ZA/en/GBPZA/gbl/TrackAndTrace.html?modelCd=2A";
	else if(modelName=="2O")
		location.href="/content_data/LAAM/ZA/en/GBPZA/gbl/TrackAndTrace.html?modelCd=2O";
	else if(modelName=="2L")
		location.href="/content_data/LAAM/ZA/en/GBPZA/gbl/TrackAndTrace.html?modelCd=2L";
	else if(modelName=="2K")
		location.href="/content_data/LAAM/ZA/en/GBPZA/gbl/TrackAndTrace.html?modelCd=2K";
	else if(modelName=="2P")
		location.href="/content_data/LAAM/ZA/en/GBPZA/gbl/TrackAndTrace.html?modelCd=2P";
		//openWindowLink("/content_data/LAAM/ZA/en/GBPZA/gbl/TrackAndTrace.html?modelCd=2");
	else
		location.href="/content_data/LAAM/ZA/en/GBPZA/gbl/TrackAndTrace.html?modelCd=2";
}


function sitemap()
{
	//alert(modelName);
	if(modelName=="2B")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/corsa/sitemap.html";
	else if(modelName=="2C")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/corsaclassic/sitemap.html";
	else if(modelName=="2D")
	{
	//alert("hi");
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/corsautility/sitemap.html";
	}
	else if(modelName=="2F")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/opelastra/sitemap.html";
	else if(modelName=="8")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/commercial/sitemap.html";
	else if(modelName=="2O")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/opelgtc/sitemap.html";
	else if(modelName=="2L")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/opelzafira/sitemap.html";
	else if(modelName=="2K")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/meriva/sitemap.html";
	else if(modelName=="2P")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/astratwintop/sitemap.html";

	else if(modelName=="2A")
	{
	//	alert("hi");
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/corsalite/sitemap.html";
	}
	else
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/sitemap.html";
}



function home()
{
	if(modelName=="2B")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/corsa/index.html";
	else if(modelName=="2C")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/corsaclassic/index.html";
	else if(modelName=="2D")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/corsautility/index.html";
	else if(modelName=="2F")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/opelastra/index.html";
	else if(modelName=="8")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/commercial/combo/specifications.html";
	else if(modelName=="2A")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/corsalite/index.html";
	else if(modelName=="2O")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/opelgtc/index.html";
	else if(modelName=="2L")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/opelzafira/index.html";
	else if(modelName=="2K")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/meriva/index.html";
	else if(modelName=="2P")
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/astratwintop/index.html";
	else
		location.href="/content_data/LAAM/ZA/en/GBPZA/019/index.html";
}

function populateHeader()
{
document.write("<TABLE height=40 cellSpacing=0 cellPadding=0 width=776 border=0>"+
"  <TBODY>"+
 "   <TR>"+ 
 "     <TD vAlign=top rowSpan=2><A href='http://www.gmsa.com'>"+
"	  <IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/GM_logo.jpg' border=0></A></TD>"+
"      <TD vAlign=top colSpan=2> <TABLE height=20 width='100%' align=right bgColor=#003399 border=0>"+
"          <TBODY>"+
"            <TR>"+ 
"              <TD align=right><A class=headerTopmenu href='javaScript:dealerLocator();'>&nbsp;Your Nearest Dealer&nbsp; </A></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/whitedot.gif'></TD>"+
"              <TD align=right><A href='#'  onclick=openWindowLink('/content_data/LAAM/ZA/en/GBPZA/999/header/finance/National_Credit_Act.html?deriv_cd=1?modelCd=Opel')   class=headerTopmenu >&nbsp;Finance&nbsp;</A></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/whitedot.gif'></TD>"+
"              <TD align=right><A class=headerTopmenu href='javaScript:onlineBooking();'>&nbsp;On-Line Booking&nbsp; </A></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/whitedot.gif'></TD>"+
"              <TD align=right><A href='#'  onclick=openWindowLink('http://www.gmsa.com/content_data/LAAM/ZA/en/GBPZA/999/header/Services/our_goal.html')   class=headerTopmenu>&nbsp;Service&nbsp;</A></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/whitedot.gif'></TD>"+
"              <TD align=right><A href='#'  onclick=openWindowLink('http://www.gmsa.com/content_data/LAAM/ZA/en/GBPZA/999/news.html')   class=headerTopmenu>&nbsp;News&nbsp;</A></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/whitedot.gif'></TD>"+
"              <TD align=right><A href='javaScript:track_trace();' class=headerTopmenu>&nbsp;Track & Trace&nbsp;</A></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/whitedot.gif'></TD>"+
//"              <TD align=right><A href='#'  onclick=openWindowLink('/content_data/LAAM/ZA/en/GBPZA/999/header/media_merchandise/wallpaper.html')   class=headerTopmenu>Media&amp;Merchandise</A></TD>"+
"              <TD align=right><A href='#'  onclick=openWindowLink('http://www.gmsa.com/content_data/LAAM/ZA/en/GBPZA/999/header/media_merchandise/wallpaper.html')   class=headerTopmenu>&nbsp;Media&nbsp;</A></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/whitedot.gif'></TD>"+
"              <TD align=right><A class=headerTopmenu href='JavaScript:gvtOrder()'>&nbsp;Fleet&nbsp;</A></TD>"+

"                <TD align=right><SELECT style='FONT-SIZE: 9px; FONT-FAMILY: arial' onchange=ItemChange()  id='models'>"+

"                    <option selected>GM Brand Web sites</option>"+

"                    <option value='http://www.chevrolet.co.za'>Chevrolet</option>"+
"                    <option value='http://www.opel.co.za'>Opel</option>"+
"                    <option value='http://www.isuzu.co.za'>Isuzu</option>"+
//"                    <option value='http://www.isuzutrucks.co.za'>Isuzu Trucks</option>"+
	"                    <option value='http://www.g2cars.com'>G2 Used Cars</option>"+

//"                    <option value='http://www.isuzuusedtrucks.co.za'>Used Trucks</option>"+
//"                    <option value='http://www.grandvitara.co.za'>Suzuki</option>"+

"                    <option value='http://www.hummer.co.za '>HUMMER</option>"+
"                    <option value='http://www.saab.com/main/ZA/en/index_flash.shtml'>SAAB</option>"+
"                    <option value='http://www.cadillac.co.za'>Cadillac</option>"+
"                  </SELECT> </TD>"+
"            </TR>"+
"          </TBODY>"+
"        </TABLE></TD>"+
"    </TR>"+
"    <TR>"+ 
//"      <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/GMSA.jpg' border=0> </TD>"+
"       <td><a href='http://www.gmtotalconfidence.co.za' target='_blank'><img border='0' src='/content_data/LAAM/ZA/en/GBPZA/999/images/total_confidence.jpg'></a></td>"+
"      <TD style='FONT-SIZE: 0px' vAlign=center align=right>"+ 

/*"<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='212' height='20'>"+
"            <param name='movie' value='/content_data/LAAM/ZA/en/GBPZA/999/images/flash/autoafrica_banner.swf'>"+
"            <param name='quality' value='high'>"+
"            <embed src='/content_data/LAAM/ZA/en/GBPZA/999/images/flash/autoafrica_banner.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='212' height='20'></embed>"+
"        </object> &nbsp;&nbsp;"+*/
	"  <IMG src='/content_data/LAAM/ZA/en/GBPZA/001/images/spacer.gif' border=0 width='30' height='2'></A>"+  
	"  <A href='/content_data/LAAM/ZA/en/GBPZA/019/brandsite/special_offer.html?modelCd=2'><IMG src='/content_data/LAAM/ZA/en/GBPZA/001/images/specialprices.gif' border=0></A>"+  
	"  <A href='http://www.g2cars.com'><IMG src='/content_data/LAAM/ZA/en/GBPZA/999/images/G2-logo.jpg' border=0></A>"+  
"      <A href='http://www.opel.co.za/'>  <IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/opel_logo_sm.jpg' width='196' height='12' border=0></A>"+ 
	
"        &nbsp;&nbsp;&nbsp;</TD>"+
"    </TR>"+
"  </TBODY>"+
"</TABLE>")
}


function populateHeaderTT()
{
document.write("<TABLE height=40 cellSpacing=0 cellPadding=0 width=776 border=0>"+
"  <TBODY>"+
 "   <TR>"+ 
 "     <TD vAlign=top rowSpan=2><A href='http://www.gmsa.com'>"+
"	  <IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/GM_logo.jpg' border=0></A></TD>"+
"      <TD vAlign=top colSpan=2> <TABLE height=20 width='100%' align=right bgColor=#003399 border=0>"+
"          <TBODY>"+
"            <TR>"+ 
"              <TD align=right><A class=headerTopmenu href='javaScript:dealerLocator();'>&nbsp;Your Nearest Dealer &nbsp;</A></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/whitedot.gif'></TD>"+
"              <TD align=right><A href='#'  onclick=openWindowLink('/content_data/LAAM/ZA/en/GBPZA/999/header/finance/National_Credit_Act.html?deriv_cd=1?modelCd=Opel')   class=headerTopmenu >&nbsp;Finance&nbsp;</A></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/whitedot.gif'></TD>"+
"              <TD align=right><A class=headerTopmenu href='javaScript:onlineBooking();'>&nbsp;On-Line Booking&nbsp; </A></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/whitedot.gif'></TD>"+
"              <TD align=right><A href='#'  onclick=openWindowLink('http://www.gmsa.com/content_data/LAAM/ZA/en/GBPZA/999/header/Services/our_goal.html')   class=headerTopmenu>&nbsp;Service&nbsp;</A></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/whitedot.gif'></TD>"+
"              <TD align=right><A href='#'  onclick=openWindowLink('http://www.gmsa.com/content_data/LAAM/ZA/en/GBPZA/999/news.html')   class=headerTopmenu>&nbsp;News&nbsp;</A></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/whitedot.gif'></TD>"+
"              <TD align=right><A href='javaScript:track_trace();' class=headerTopmenu>&nbsp;Track & Trace&nbsp;</A></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/whitedot.gif'></TD>"+
//"              <TD align=right><A href='#'  onclick=openWindowLink('/content_data/LAAM/ZA/en/GBPZA/999/header/media_merchandise/wallpaper.html')   class=headerTopmenu>Media&amp;Merchandise</A></TD>"+
"              <TD align=right><A href='#'  onclick=openWindowLink('http://www.gmsa.com/content_data/LAAM/ZA/en/GBPZA/999/header/media_merchandise/wallpaper.html')   class=headerTopmenu>&nbsp;Media&nbsp;</A></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/whitedot.gif'></TD>"+
"              <TD align=right><A class=headerTopmenu href='JavaScript:gvtOrder()'>&nbsp;Fleet&nbsp;</A></TD>"+

"                <TD align=right><SELECT style='FONT-SIZE: 9px; FONT-FAMILY: arial' onchange=ItemChange()  id='models'>"+

"                    <option selected>GM Brand Web sites</option>"+

"                    <option value='http://www.chevrolet.co.za'>Chevrolet</option>"+
"                    <option value='http://www.opel.co.za'>Opel</option>"+
"                    <option value='http://www.isuzu.co.za'>Isuzu</option>"+
//"                    <option value='http://www.isuzutrucks.co.za'>Isuzu Trucks</option>"+
	"                    <option value='http://www.g2cars.com'>G2 Used Cars</option>"+

//"                    <option value='http://www.isuzuusedtrucks.co.za'>Used Trucks</option>"+
//"                    <option value='http://www.grandvitara.co.za'>Suzuki</option>"+

"                    <option value='http://www.hummer.co.za '>HUMMER</option>"+
"                    <option value='http://www.saab.com/main/ZA/en/index_flash.shtml'>SAAB</option>"+
"                    <option value='http://www.cadillac.co.za'>Cadillac</option>"+
"                  </SELECT> </TD>"+
"            </TR>"+
"          </TBODY>"+
"        </TABLE></TD>"+
"    </TR>"+

"    <TR>"+ 
"      <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/GMSA.jpg' border=0> </TD>"+
"      <TD style='FONT-SIZE: 0px' vAlign=center align=right>"+ 

/*"<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='212' height='20'>"+
"            <param name='movie' value='/content_data/LAAM/ZA/en/GBPZA/999/images/flash/autoafrica_banner.swf'>"+
"            <param name='quality' value='high'>"+
"            <embed src='/content_data/LAAM/ZA/en/GBPZA/999/images/flash/autoafrica_banner.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='212' height='20'></embed>"+
"        </object> &nbsp;&nbsp;"+*/
	"  <IMG src='/content_data/LAAM/ZA/en/GBPZA/001/images/spacer.gif' border=0 width='30' height='2'></A>"+  
	"  <A href='/content_data/LAAM/ZA/en/GBPZA/019/brandsite/special_offer.html?modelCd=2'><IMG src='/content_data/LAAM/ZA/en/GBPZA/001/images/specialprices.gif' border=0></A>"+  
	"  <A href='http://www.g2cars.com'><IMG src='/content_data/LAAM/ZA/en/GBPZA/999/images/G2-logo.jpg' border=0></A>"+  
"      <A href='http://www.opel.co.za/'>  <IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/opel_logo_sm.jpg' width='196' height='12' border=0></A>"+ 
	
"        &nbsp;&nbsp;&nbsp;</TD>"+
"    </TR>"+

"  </TBODY>"+
"</TABLE>")
}




function populateFooter()
{
document.write("<TABLE cellSpacing=0 cellPadding=0 width=776 border=0>"+
"  <TBODY>"+
"    <TR bgColor=silver>"+ 
"      <TD></TD>"+
"    </TR>"+
"    <TR>"+ 
"      <TD style='FONT-SIZE: 0px'><IMG height=2 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=0px> </TD>"+
"    </TR>"+
"    <TR bgColor=silver>"+ 
"      <TD></TD>"+
"    </TR>"+
"    <TR>"+ 
"      <TD style='FONT-SIZE: 0px'><IMG height=2 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=0px> </TD>"+
"    </TR>"+
"    <TR>"+ 
"      <TD align=middle bgColor=silver> <TABLE cellSpacing=0 cellPadding=0 border=0>"+
"          <TBODY>"+
"            <TR>"+ 
"              <TD align=middle><A href='#'  onclick=openWindowLink('http://www.gmsa.com/content_data/LAAM/ZA/en/GBPZA/999/footer/our_contact_details.html')   class=footerFont>Our Contact Details</A></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=15 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/black_dot.gif'></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD align=middle><A href='#'  onclick=openWindowLink('http://www.gmsa.com/content_data/LAAM/ZA/en/GBPZA/999/footer/legal_and_privacy_policy.html')    class=footerFont>Legal &amp; Privacy </A></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=15 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/black_dot.gif'></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD align=middle><A href='#'  onclick=openWindowLink('http://www.gmsa.com/content_data/LAAM/ZA/en/GBPZA/999/footer/disclaimer.html')   class=footerFont>Disclaimer</A></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/black_dot.gif'></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD align=middle><A href='#'  onclick=openWindowLink('http://www.gmsa.com/content_data/LAAM/ZA/en/GBPZA/999/footer/information_act.html')   class=footerFont>Information Act </A></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/black_dot.gif'></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD align=middle><A class=footerFont href='javascript:contactUs();'>Contact Us</A></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/black_dot.gif'></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD align=middle><A href='javascript:sitemap();' class=footerFont >Site Map </A></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/black_dot.gif'></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD align=middle><A class=footerFont href='javascript:home();'>Home</A></TD>"+
"            </TR>"+
"          </TBODY>"+
"        </TABLE></TD>"+
"    </TR>"+
"  </TBODY>"+
"</TABLE>")
}


function populateFooter1()
{
document.write("<TABLE cellSpacing=0 cellPadding=0 width=100% border=0>"+
"  <TBODY>"+
"    <TR bgColor=silver>"+ 
"      <TD></TD>"+
"    </TR>"+
"    <TR>"+ 
"      <TD style='FONT-SIZE: 0px'><IMG height=2 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=0px> </TD>"+
"    </TR>"+
"    <TR bgColor=silver>"+ 
"      <TD></TD>"+
"    </TR>"+
"    <TR>"+ 
"      <TD style='FONT-SIZE: 0px'><IMG height=2 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=0px> </TD>"+
"    </TR>"+
"    <TR>"+ 
"      <TD align=middle bgColor=silver> <TABLE cellSpacing=0 cellPadding=0 border=0>"+
"          <TBODY>"+
"            <TR>"+ 
"              <TD align=middle><A href='#'  onclick=openWindowLink('http://www.gmsa.com/content_data/LAAM/ZA/en/GBPZA/999/footer/our_contact_details.html')   class=footerFont>Our Contact Details</A></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=15 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/black_dot.gif'></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD align=middle><A href='#'  onclick=openWindowLink('http://www.gmsa.com/content_data/LAAM/ZA/en/GBPZA/999/footer/legal_and_privacy_policy.html')    class=footerFont>Legal &amp; Privacy </A></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=15 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/black_dot.gif'></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD align=middle><A href='#'  onclick=openWindowLink('http://www.gmsa.com/content_data/LAAM/ZA/en/GBPZA/999/footer/disclaimer.html')   class=footerFont>Disclaimer</A></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/black_dot.gif'></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD align=middle><A href='#'  onclick=openWindowLink('http://www.gmsa.com/content_data/LAAM/ZA/en/GBPZA/999/footer/information_act.html')   class=footerFont>Information Act </A></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/black_dot.gif'></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD align=middle><A class=footerFont href='javascript:contactUs();'>Contact Us</A></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/019/images/black_dot.gif'></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/019/images/spacer.gif' width=8 border=0></TD>"+


"              <TD align=middle><A class=footerFont href='javascript:home();'>Home</A></TD>"+
"            </TR>"+
"          </TBODY>"+
"        </TABLE></TD>"+
"    </TR>"+
"  </TBODY>"+
"</TABLE>")
}

//Omniture tracking for Red Tag Event
//added Kiran Anthony
function omni(pagename) {
//alert(pagename);

s.pageName=pagename;
//alert(s.pageName);
s.server=""
s.channel=""
s.pageType=""
s.prop1=""
s.prop2=""
s.prop3=""
s.prop4=""
s.prop5=""
/* E-commerce Variables */
s.campaign=""
s.state=""
s.zip=""
s.events=""
s.products=""
s.purchaseID=""
s.eVar1=""
s.eVar2=""
s.eVar3=""
s.eVar4=""
s.eVar5=""

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code)//-->

if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
//--><!--/DO NOT REMOVE/-->
}


//Advert Stats


function call_advertOmni(){

var pgname="";

	
	if(modelName=="2D")
		pgname="Corsa Utility Adverts";
	else if(modelName=="2F")
		pgname="Opel Astra Adverts";
	else if(modelName=="2A")
		pgname="Corsalite Adverts";
	else if(modelName=="2O")
		pgname="Opel Gtc Adverts";
	else if(modelName=="2L")
		pgname="Opel Zafira Adverts";
	else if(modelName=="2K")
		pgname="Opel Meriva Adverts";
		else if(modelName=="2P")
		pgname="Astra TwinTop Adverts";
	else
		pgname="Opel Adverts";


//omni(pgname);//alert(modelName)
location.href="/content_data/LAAM/ZA/en/GBPZA/gbl/adverts.html?avdCd="+modelName+"&sOpt=T";

}


//end Anthony