
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');
}

function ItemChange()

            {

                        var brandUrl= document.getElementById("models")

                        if(brandUrl.value!="")

                        {

                                    if(brandUrl.value==2)

                                    {

                                                document.location  = brandUrl.value;

                                    }

                                    else

                                    {

                                                document.location  = brandUrl.value;

                                    }

 

                        }

                        

            }

//-----------------------------------------------------------------------------------         


function contactUs(){
	if(modelName=="2D")
		location.href="/content_data/LAAM/ZA/en/GBPZA/ke/999/contactus.html?cd=019";
	else
		location.href="/content_data/LAAM/ZA/en/GBPZA/ke/999/contactus.html?cd=019";
}


function sitemap()
{
	//alert(modelName);
	if(modelName=="019")
		location.href="/content_data/LAAM/ZA/en/GBPZA/ke/019/corsautility/sitemap.html";
	else
		location.href="/content_data/LAAM/ZA/en/GBPZA/ke/019/corsautility/sitemap.html";
}


function home()
{
	if(modelName=="019")
		location.href="/content_data/LAAM/ZA/en/GBPZA/ke/019/corsautility/index.html";
	else
		location.href="/content_data/LAAM/ZA/en/GBPZA/ke/019/corsautility/index.html";
}


function finance(){
	if(modelName=="019")
		location.href="/content_data/LAAM/ZA/en/GBPZA/ke/999/finance.html?cd=019";
	else
		location.href="/content_data/LAAM/ZA/en/GBPZA/ke/999/finance.html?cd=019";
}


function aftersales(){
	if(modelName=="019")
		location.href="/content_data/LAAM/ZA/en/GBPZA/ke/999/aftersales.html?cd=019";
	else
		location.href="/content_data/LAAM/ZA/en/GBPZA/ke/999/aftersales.html?cd=019";
}


function news(){
	if(modelName=="019")
		location.href="/content_data/LAAM/ZA/en/GBPZA/ke/999/news.html?cd=019";
	else
		location.href="/content_data/LAAM/ZA/en/GBPZA/ke/999/news.html?cd=019";
}


function contactDetails(){
	if(modelName=="019")
		location.href="/content_data/LAAM/ZA/en/GBPZA/ke/999/our_contact_details.html?cd=019";
	else
		location.href="/content_data/LAAM/ZA/en/GBPZA/ke/999/our_contact_details.html?cd=019";
}


function legalPolicy(){
	if(modelName=="019")
		location.href="/content_data/LAAM/ZA/en/GBPZA/ke/999/legal_policy.html?cd=019";
	else
		location.href="/content_data/LAAM/ZA/en/GBPZA/ke/999/legal_policy.html?cd=019";
}


function disclaimer(){
	if(modelName=="019")
		location.href="/content_data/LAAM/ZA/en/GBPZA/ke/999/disclaimer.html?cd=019";
	else
		location.href="/content_data/LAAM/ZA/en/GBPZA/ke/999/disclaimer.html?cd=019";
}



function populateHeader()
{
document.write("<TABLE height=40 cellSpacing=0 cellPadding=0 width=776 border=0 align=center>"+
"  <TBODY>"+
 "   <TR>"+ 
 "     <TD vAlign=top rowSpan=2><A href='http://www.gm.co.ke'>"+
"	  <IMG src='/content_data/LAAM/ZA/en/GBPZA/ke/019/images/GM_logo.jpg' border=0></A></TD>"+
"      <TD vAlign=top colSpan=2 align=center> <TABLE height=20 width='723' align=center bgColor=#003399 border=0>"+
"          <TBODY align=center>"+
"            <TR>"+ 
"              <TD align=center><A class=headerTopmenu href='/content_data/LAAM/ZA/en/GBPZA/ke/019/dealer_locator/dealerlocator.html'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Your Nearest Dealer</A></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/ke/019/images/whitedot.gif'></TD>"+
"              <TD align=center><A href='javascript:finance();'  class=headerTopmenu >&nbsp;&nbsp;&nbsp;Finance&nbsp;&nbsp;&nbsp;</A></TD>"+
/*"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/ke/019/images/whitedot.gif'></TD>"+
"              <TD align=right><A class=headerTopmenu href='javaScript:onlineBooking();'>On-Line Booking </A></TD>"+*/
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/ke/019/images/whitedot.gif'></TD>"+
"              <TD align=center><A href='javascript:aftersales();'   class=headerTopmenu>&nbsp;&nbsp;&nbsp;After Sales&nbsp;&nbsp;&nbsp;</A></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/ke/019/images/whitedot.gif'></TD>"+
"              <TD align=right><A href='javascript:news();' class=headerTopmenu>&nbsp;&nbsp;&nbsp;News&nbsp;&nbsp;&nbsp;&nbsp;</A></TD>"+

"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/ke/019/images/whitedot.gif'></TD>"+
"              <TD align=center><A href='#'  onclick=openWindowLink('/content_data/LAAM/ZA/en/GBPZA/ke/999/wallpaper.html')    class=headerTopmenu>Media&amp;Merchandise</A></TD>"+
/*"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/ke/019/images/whitedot.gif'></TD>"+
"              <TD align=right><A class=headerTopmenu href='/content_data/LAAM/ZA/en/GBPZA/ke/019/fleet_connection/fleet_connection.html'>Fleet Connection</A></TD>"+*/

"                <TD align=right><SELECT style='FONT-SIZE: 9px; FONT-FAMILY: arial' onchange=ItemChange()  id='models'>"+

"                    <option selected>GM Brand Websites</option>"+

"                    <option value='http://www.chevrolet.co.ke'>Chevrolet</option>"+
"                    <option value='http://www.isuzutrucks.co.ke'>Isuzu</option>"+
"                    <option value='http://www.opel.co.ke'>Opel</option>"+



"                  </SELECT> </TD>"+
"            </TR>"+
"          </TBODY>"+
"        </TABLE></TD>"+
"    </TR>"+
"    <TR>"+ 
"      <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/ke/019/images/gm_east_africa.jpg' border=0> </TD>"+
"      <TD style='FONT-SIZE: 0px' vAlign=center align=right><A href='http://www.opel.co.ke/'>"+ 
"        <IMG src='/content_data/LAAM/ZA/en/GBPZA/ke/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/ke/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/ke/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='javascript:contactDetails();'  class=footerFont>Our Contact Details</A></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=15 src='/content_data/LAAM/ZA/en/GBPZA/ke/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/ke/019/images/black_dot.gif' ></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/ke/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD align=middle><A href='javascript:legalPolicy();'  class=footerFont>Legal &amp; Privacy </A></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=15 src='/content_data/LAAM/ZA/en/GBPZA/ke/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/ke/019/images/black_dot.gif' ></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/ke/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD align=middle><A href='javascript:disclaimer();'  class=footerFont>Disclaimer</A></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/ke/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/ke/019/images/black_dot.gif' ></TD>"+
/*"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/ke/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD align=middle><A href='/content_data/LAAM/ZA/en/GBPZA/ke/019/information_act.html'  class=footerFont>Information Act </A></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/ke/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/ke/019/images/black_dot.gif' ></TD>"+*/
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/ke/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/ke/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/ke/019/images/black_dot.gif' ></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/ke/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/ke/019/images/spacer.gif' width=8 border=0></TD>"+
"              <TD><IMG src='/content_data/LAAM/ZA/en/GBPZA/ke/019/images/black_dot.gif' ></TD>"+
"              <TD style='FONT-SIZE: 0px'><IMG height=10 src='/content_data/LAAM/ZA/en/GBPZA/ke/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><BR>")
}
