var server = location.host;
var curCOTabImage = "";
var devIndex= server.indexOf('saabusa.com');
//


if(server.indexOf('saab-myr.icdc.com') >= 0){
	// Localhost
	var s_account="devgmsaab";
	var wwwserver= ""; //";
	var www2server=""; //";
// Production Servers
}else if(server.indexOf('saabusa2.digitas.com') >= 0){
	var s_account="devgmsaab";
	var wwwserver= ""; //";
	var www2server=""; //";
// Production Servers
}else if (devIndex >= 0) {
    var s_account="gmsaabusa,gmcnglobal";

    if (server.indexOf('www.') >= 0) {
		var wwwserver= ""; 
		var www2server=""; //http://www2.saabusa.com";
	} else {
		var wwwserver= ""; //http://www.saabusa.com";
		var www2server=""; //http://www2.saabusa.com";
	}
} else {


// Development Servers
    var s_account="devgmsaab";

    if (server.indexOf('pprod') >= 0) {


		if (server.indexOf('pprod.') >= 0) {
	        var wwwserver= "http://pprod.saabusa.gmgssm.com";
    	    var www2server=""; //http://pprod2.saabusa.bytejam.com";

		} else if (server.indexOf('pprodak.') >= 0) {
	        var wwwserver= ""; 
	        var www2server=""; //http://pprod2.saabusa.bytejam.com";

		} else if (server.indexOf('pprod2.') >= 0) {
	        var wwwserver="http://pprod.saabusa.gmgssm.com";
	        var www2server=""; //http://pprod2.saabusa.bytejam.com";
        }

    } else if (server.indexOf('prod.') >= 0) {
        var wwwserver= ""; 
        var www2server=""; //http://www2.saabusa.com";

	} else if (server.indexOf('icdc.') >= 0) {
        var wwwserver= ""; 
        var www2server=""; //http://www2.saabusa.com";

	}
	else {
		if (server.indexOf('dev3.') >= 0) {
	        var wwwserver= ""; 
	        var www2server=""; //http://dev4.saabusa.bytejam.com";

		} else {
	        var wwwserver= ""; //http://dev3.saabusa.bytejam.com";
	        var www2server=""; //http://dev4.saabusa.bytejam.com";
	    }

    }

}

var bfjURL = www2server + "/bornfromjets/";


function Set_Cookie(name,value,expires,path,domain,secure) {
    var theCookie = name + "=" + escape(value) +
        ( (expires) ? ("; expires=" + expires.toGMTString()) : "" ) +
        ( (path) ? ( "; path=" + path ) : "") +
        ( (domain) ? ( "; domain=" + domain ) : "") +
        ( (secure) ? "; secure" : "");
    this.document.cookie = theCookie;
}

function setEasyCookie(c_name,value,expiredays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}

function readCookie(name) {
  var cookieValue = "";
  var search = name + "=";

  if(document.cookie.length > 0)
  {
    offset = document.cookie.indexOf(search);
    if (offset != -1)
    {
      offset += search.length;
      end = document.cookie.indexOf(";", offset);
      if (end == -1) end = document.cookie.length;
      cookieValue = unescape(document.cookie.substring(offset, end));
    }
  }


  return cookieValue;
}

function openWin(URL,width,height,scroll,resize, status, menubar, toolbar, location, directories) {
	noUrl = false
	if (URL == "" || URL == null) { URL="about:blank"; noUrl=true }
	if (width == "" || width == null ) { width = 640 }
	if (height == "" || height == null ) { height = 480 }
	if (width == "*" ) {
		width = (screen.availWidth * (100/99)) ;
		if (width > 800) width="800"; //since the site isn't wider than 800px, there's no point in opening in fullscreen mode, it just looks silly!
	}
	if (height == "*" ) {
	height =  (screen.availHeight * (100/95));
		if (height > 580) height="580";//since the site isn't taller than 800px, there's no point in opening in fullscreen mode, it just looks silly!
	}
	if (scroll == "" || scroll == null ) { scroll = 1 }
	if (resize == "" || resize == null ) { resize = 1 }
	if (status == "" || status == null ) { status = 1 }
	if (menubar == "" || menubar == null) {menubar=0}
	if (toolbar == "" || toolbar == null) {toolbar=0}
	if (location == "" || location == null) {location=0}
	if (directories == "" || directories == null) {directories=0}

	PARMS = 'toolbar='+toolbar +',location='+location +',directories='+directories +',status='+status +',menubar='+menubar +',scrollbars=' + scroll + ',resizable=' + resize + ',width=' + width + ',height=' + height
  var newWin = window.open(URL,"NEW",PARMS);
      newWin.focus();
	/* newWin.screenX = 0;
  newWin.screenY = 0; */
	if (noUrl) {
		newWin.document.writeln("<BR><BR><FONT color='red'>It seems like you forgot to put in a value for URL when you called for <I>openWin()</I></FONT>");
		newWin.document.close();
	}
	if (URL.indexOf(""))
	return;
}

function openOnStarWin(URL,width,height,scroll,resize, status, menubar, toolbar, location, directories) {
	openWin(URL,width,height,scroll,resize, status, menubar, toolbar, location, directories);
    s_linkName = "SAAB | MODEL OVERVIEW | HOTSPOT LINK | ONSTAR";
	s_pageName="";
	s_prop1="";
	s_prop2="";
	s_prop3="";
	s_prop4="";
	s_prop5=s_linkName;
	s_prop14="ONSTAR";
	s_prop28="EXTERNAL";
	s_linkType="e";
	s_lnk=true;
	void (s_gs( s_account ))
}


/*
function popContext(name, height) {
	winOptions = 'toolbar=0,location=0,menubar=0,directories=0,screenx=200,screeny=200,top=200,left=200,status=0,menubar=0,scrollbars=0,resizable=0,width=386,height=' + height;
	var temp = window.open('http://' + wwwserver + '/saabjsp/contextlinks/' + name + '.jsp', name, winOptions);
	temp.focus();
}

*/


function popContext2(name, height) {
    winOptions = 'toolbar=0,location=0,menubar=0,directories=0,screenx=200,screeny=200,top=200,left=200,status=0,menubar=0,scrollbars=0,resizable=0,width=386,height=' + height;
	var temp = window.open('http://' + www2server + '/contextlink/default.asp?conlink=' + name, name, winOptions);
	temp.focus();
}

function openBrochure() // openBrochure
{
	winOptions = 'toolbar=0,location=0,menubar=0,directories=0,screenx=200,screeny=200,top=200,left=200,status=0,menubar=0,scrollbars=1,resizable=0,width=850,height=850' ;
	var temp = window.open('http://www.gmnao.com/servlets/irf?sc=SA20KBF9W', 'RequestSaabBrochure', winOptions);
	temp.focus();

} // openBrochure

function popContext3(name, height) {
    //alert(name + height);
    var theModel = name;
    var modelSubStr = theModel.substring(0,3);
    var modelLink = "";
    if (modelSubStr == "95s" || modelSubStr == "95w") {
        modelLink = "conlinks_multiple_" + modelSubStr + '.jsp?conlink=' + name ;
    } else {
        modelLink = name + '.jsp';
    }
    winOptions = 'toolbar=0,location=0,menubar=0,directories=0,screenx=200,screeny=200,top=200,left=200,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=' + height;
	var temp = window.open(wwwserver + '/saabjsp/contextlinks/'  + modelLink, name, winOptions);
	temp.focus();
}


function popWin(url, height, width, xpos, ypos, title) {
		winOptions = 'toolbar=1,location=1,menubar=1,directories=1,screenx=' +  xpos + ',screeny='+ ypos + ',top='+ ypos +',left=' + xpos + ',status=1,menubar=1,scrollbars=1,resizable=1,width=' + width + ',height=' + height;
		var temp = window.open(url, title, winOptions);
		temp.focus();
}

function popEBrochure(){
	var winOptions='toolbar=0,location=1,menubar=0,directories=0,status=0,scrollbars=0,screenx=150,screeny=150,resizable=1,width=1000,height=800';
	var temp = window.open('/flash/popups/popupEBrochure/9-3eBrochure.jsp', 'The New Saab 9-3X', winOptions);
	temp.focus();
}

function popQuestionsAnwers(){
	var temp = window.open('/questions_answers_popup.jsp', '_blank', 'scrollbars=yes,width=1000,height=800,resizable=yes');
	temp.focus();
}

function warrantyFirstTime() {
		window.location = '/saabjsp/owners/warranty.jsp';
		setEasyCookie("SaabWarrantyFirstTime","true",1);
}


function popStandard(url, height, width, xpos, ypos, title) {
		winOptions = 'toolbar=0,location=0,menubar=0,directories=0,screenx=' +  xpos + ',screeny='+ ypos + ',top='+ ypos +',left=' + xpos + ',status=0,menubar=0,scrollbars=1,resizable=1,width=' + width + ',height=' + height;
		var temp = window.open(url, title, winOptions);
		//temp.focus();
		if(url == 'http://www.gmnao.com/servlets/irf?sc=SA20KBF6N'){
			trackRequestBrochure();
		}
}


function popCatalog(){
	//popWin( www2server + '/catalog/accessories.asp', 800, 1000, 10, 10, 'catalog');
	popWin( 'http://www.saab.com/main/US/en/accessories/index.shtml', 800, 1000, 10, 10, 'catalog');

}

function popCatalog2(){
	popWin( 'http://us.saabexpressions.com', 800, 1000, 10, 10, 'giftsAndGear');
}

function popOwnerCenter(){
	// popWin('http://owners.saabusa.com', 700, 805, 0, 0, 'ownercenter');
	//popWin('http://www.gm.com/gmownercenter/saab/', 700, 805, 0, 0, 'ownercenter');
	//popWin('http://www.gm.com/gmownercenter/saab/', 800, 950, 0, 0, 'ownercenter');
	window.open('http://www.gm.com/gmownercenter/saab/');
}

function popTradeIn(){

	s_lnk=true;
	s_linkType="e";
	s_prop1 = "";
	s_prop2 = "";
	s_prop3 = "";
	s_prop4 = "";
	s_prop5 = "";
	s_prop6 = "";
	s_prop7 = "";
	s_prop8 = "";
	s_prop9 = "";
	s_prop10 = "";
	s_prop11 = "";
	s_prop12 = "";
	s_prop13 = "";
	s_prop14 = "";
	s_prop15 = "";
	s_prop16 = "";
	s_prop17 = "";
	s_prop18 = "";
	s_prop19 = "";
	s_prop20 = "";
	s_prop21 = "";
	s_prop22 = "";
	s_prop23 = "";
	s_prop24 = "";
	s_prop25 = "";
	s_prop26 = "";
	s_prop27 = "";
	s_prop28 = "";
	s_linkName = "SAAB | SHOPPING TOOLS | TRADE-IN APPRAISAL";
	s_prop5="SAAB | SHOPPING TOOLS | TRADE-IN APPRAISAL";
	s_prop24="EN";
	s_prop25="SAAB";
	s_prop26 = getTSyst();
	s_prop27 =  getDtSyst();

	s_pageName = "";
	s_prop30 = "EXIT LINK";
	void(s_gs(s_account));
	

	var axel = Math.random()+"";
	var a = axel * 10000000000000;
	document.getElementById('spotlightF').src = 'http://fls.doubleclick.net/activityi;src=1139853;type=statx680;cat=trade686;ord=' + a + '?';
	popWin('http://www.intelliprice.com/intellipricedealer/start.htm?dealerid=3045902', 800, 600, 50, 50, 'tradein');
}


function popEdmunds() {
    document.location.href= wwwserver + '/comparator/saab/comparevehicle.jsp';
}

function openEuroDel() {
    document.location.href= wwwserver + '/saabjsp/europeandelivery/index.jsp';
}


function popCrestedButte() {
	winOptions = 'toolbar=0,location=0,menubar=0,directories=0,screenx=0,screeny=0,top=0,left=0,status=0,menubar=0,scrollbars=0,resizable=0,width=600,height=500';
	var temp = window.open(wwwserver + '/saabjsp/owners/crested_butte.jsp', 'crestedbutte', winOptions);
	temp.focus();
}

function popAero() {
	winOptions = 'toolbar=0,location=0,menubar=0,directories=0,screenx=0,screeny=0,top=0,left=0,status=0,menubar=0,scrollbars=0,resizable=0,width=600,height=630';
	var temp = window.open(wwwserver + '/saabjsp/aero/index.jsp', 'aeroacademy', winOptions);
	//var temp = window.open('/saabjsp/aero/index.jsp', 'aeroacademy', winOptions);
	temp.focus();
}

function popSaabfleet() {
    popWin('http://www.gmfleet.com','600','800','0','0','fleet');
}

function popAllVehiclesTnav() {
    popAllModels('performance');
}

function popTestDrive(){
    popStandard(wwwserver + '/testdrive/',500,600,50,50,'testdrive');
}


  
  
function popRequestQuote() {
	popStandard("http://" + window.location.hostname + '/messaging/saab/senddealer.jsp',650,620,50,50,'quickquote');
}

function popRequestQuote(model, year) {
	popStandard("http://" + window.location.hostname + '/messaging/saab/senddealer.jsp?model='+model + '&year='+year,650,620,50,50,'quickquote');
}


function popEstimatePayments()
{
	var win = "http://www.gmacfintools.com/fintools/pe/SelectVehicle.do?websiteid=USBP&cntrycd=US&langcd=EN&make_desc=SAAB";
	var temp = "";

	s_lnk=true;
	s_linkType="e";
	s_prop1 = "";
	s_prop2 = "";
	s_prop3 = "";
	s_prop4 = "";
	s_prop5 = "";
	s_prop6 = "";
	s_prop7 = "";
	s_prop8 = "";
	s_prop9 = "";
	s_prop10 = "";
	s_prop11 = "";
	s_prop12 = "";
	s_prop13 = "";
	s_prop14 = "";
	s_prop15 = "";
	s_prop16 = "";
	s_prop17 = "";
	s_prop18 = "";
	s_prop19 = "";
	s_prop20 = "";
	s_prop21 = "";
	s_prop22 = "";
	s_prop23 = "";
	s_prop24 = "";
	s_prop25 = "";
	s_prop26 = "";
	s_prop27 = "";
	s_prop28 = "";
	s_linkName = "SAAB | SHOPPING TOOLS | ESTIMATE PAYMENTS";
	s_prop5="SAAB | SHOPPING TOOLS | ESTIMATE PAYMENTS";
	s_prop24="EN";
	s_prop25="SAAB";
	s_prop26 = getTSyst();
	s_prop27 =  getDtSyst();

	s_pageName = "";
	s_prop30 = "EXIT LINK";
	void(s_gs(s_account));

		winOptions = 'toolbar=1,location=1,menubar=1,directories=0,screenx=50,screeny=50,top=0,left=0,status=0,menubar=0,scrollbars=2,resizable=1,width=800,height=600';
	try{
		temp = window.open(win, 'EstimatePayments', winOptions);
	}
	catch(err){
		alert("Error: " + err);
	}
	finally{
		temp.focus();
	}

}

function popEstimatePaymentsQuick()
{
	var win = "http://www.gmacfintools.com/fintools/pe/SelectVehicle.do?websiteid=USBP&cntrycd=US&langcd=EN&make_desc=SAAB";
	var temp = "";

	s_lnk=true;
	s_linkType="e";
	s_prop1 = "";
	s_prop2 = "";
	s_prop3 = "";
	s_prop4 = "";
	s_prop5 = "";
	s_prop6 = "";
	s_prop7 = "";
	s_prop8 = "";
	s_prop9 = "";
	s_prop10 = "";
	s_prop11 = "";
	s_prop12 = "";
	s_prop13 = "";
	s_prop14 = "";
	s_prop15 = "";
	s_prop16 = "";
	s_prop17 = "";
	s_prop18 = "";
	s_prop19 = "";
	s_prop20 = "";
	s_prop21 = "";
	s_prop22 = "";
	s_prop23 = "";
	s_prop24 = "";
	s_prop25 = "";
	s_prop26 = "";
	s_prop27 = "";
	s_prop28 = "";
	s_linkName = "SAAB | SHOPPING TOOLS | TRADE-IN APPRAISAL";

	s_prop5="SAAB | SHOPPING TOOLS | TRADE-IN APPRAISAL";
	s_prop24="EN";
	s_prop25="SAAB";
	s_prop26 = getTSyst();
	s_prop27 =  getDtSyst();

	s_pageName = "";
	s_prop30 = "EXIT LINK";
	void(s_gs(s_account));

		winOptions = 'toolbar=1,location=1,menubar=1,directories=0,screenx=50,screeny=50,top=0,left=0,status=0,menubar=0,scrollbars=2,resizable=1,width=800,height=600';
	try{
		temp = window.open(win, 'EstimatePayments', winOptions);
	}
	catch(err){
	}
	finally{
		temp.focus();
	}

}


function popApplyCredit()
{
	s_lnk=true;
	s_linkType="e";
//	s_linkType="";
	s_prop1 = "";
	s_prop2 = "";
	s_prop3 = "";

	s_prop4 = "";
	s_prop5 = "";
	s_prop6 = "";
	s_prop7 = "";
	s_prop8 = "";
	s_prop9 = "";
	s_prop10 = "";
	s_prop11 = "";
	s_prop12 = "";
	s_prop13 = "";
	s_prop14 = "";
	s_prop15 = "";
	s_prop16 = "";
	s_prop17 = "";
	s_prop18 = "";
	s_prop19 = "";
	s_prop20 = "";
	s_prop21 = "";
	s_prop22 = "";
	s_prop23 = "";
	s_prop24 = "";
	s_prop25 = "";
	s_prop26 = "";
	s_prop27 = "";
	s_prop28 = "";
	s_linkName = "SAAB | SHOPPING TOOLS | APPLY FOR CREDIT";
	s_prop5="SAAB | SHOPPING TOOLS | APPLY FOR CREDIT";
	s_prop24="EN";
	s_prop25="SAAB";
	s_prop26 = getTSyst();
	s_prop27 =  getDtSyst();

	s_pageName = "";
	s_prop30 = "EXIT LINK";
	void(s_gs(s_account));


	var url = "http://prodsupt.gmacfinancialtools.com/toolmanager?toolname=XCA&websiteid=SAAB&cntrycd=US&langcd=EN&request_type=credapp";

	if ((location.hostname.indexOf("saabusa.com") > -1)||(location.hostname.indexOf(".gmgssm.com") > -1))
		url = "http://www.gmacfinancialtools.com/toolmanager?toolname=XCA&websiteid=SAAB&cntrycd=US&langcd=EN&request_type=credapp";

	winOptions = 'toolbar=1,location=1,menubar=1,directories=0,screenx=50,screeny=50,top=0,left=0,status=0,menubar=1,scrollbars=2,resizable=1,width=800,height=600';
	window.open(url, "", winOptions);
//	var temp = window.open(url, 'EstimatePayments', winOptions);
//	temp.focus();

}

function popAffordabilityCalc() {
		s_lnk=true;
		s_linkType="e";
		s_prop1 = "";
		s_prop2 = "";
		s_prop3 = "";
		s_prop4 = "";
		s_prop5 = "";
		s_prop6 = "";
		s_prop7 = "";
		s_prop8 = "";
		s_prop9 = "";
		s_prop10 = "";
		s_prop11 = "";
		s_prop12 = "";
		s_prop13 = "";
		s_prop14 = "";
		s_prop15 = "";
		s_prop16 = "";
		s_prop17 = "";
		s_prop18 = "";
		s_prop19 = "";
		s_prop20 = "";
		s_prop21 = "";
		s_prop22 = "";
		s_prop23 = "";
		s_prop24 = "";
		s_prop25 = "";
		s_prop26 = "";
		s_prop27 = "";
		s_prop28 = "";
		s_linkName = "SAAB | SHOPPING TOOLS | AFFORDABILITY CALCULATOR";
		s_prop5="SAAB | SHOPPING TOOLS | AFFORDABILITY CALCULATOR";
		s_prop24="EN";
		s_prop25="SAAB";
		s_prop26 = getTSyst();
		s_prop27 =  getDtSyst();

		s_pageName = "";
		s_prop30 = "EXIT LINK";
		void(s_gs(s_account));


	var url = "http://uat.gmacfintools.com/fintools/ac/AC.do?cntrycd=US&langcd=EN&websiteid=SB";

	if ((location.hostname.indexOf("saabusa.com") > -1)||(location.hostname.indexOf(".gmgssm.com") > -1))
		url = "http://www.gmacfintools.com/fintools/ac/AC.do?cntrycd=US&langcd=EN&websiteid=SB";

	//win = "http://uat.gmacfintools.com/fintools/ac/AC.do?cntrycd=US&langcd=EN&websiteid=SB";
	winOptions = 'toolbar=1,location=1,menubar=1,directories=0,screenx=50,screeny=50,top=0,left=0,status=0,menubar=0,scrollbars=2,resizable=1,width=800,height=600';
	window.open(url, "", winOptions);
}



function trackCPOLM() {
		s_lnk=true;
		s_linkType="e";
		s_prop1 = "CERTIFIED PRE-OWNED";
		s_prop2 = "BROCHURE";
		s_prop3 = "CERTIFIED PRE-OWNED | BROCHURE";
		s_prop4 = "";
		s_prop5 = "";
		s_prop6 = "";
		s_prop7 = "";
		s_prop8 = "";
		s_prop9 = "";
		s_prop10 = "";
		s_prop11 = "";
		s_prop12 = "";
		s_prop13 = "";
		s_prop14 = "";
		s_prop15 = "";
		s_prop16 = "";
		s_prop17 = "";
		s_prop18 = "";
		s_prop19 = "";
		s_prop20 = "";
		s_prop21 = "";
		s_prop22 = "";
		s_prop23 = "";
		s_prop24 = "";
		s_prop25 = "SAAB";
		s_prop26 = "";
		s_prop27 = "";
		s_prop28 = "";
		s_linkname = "Left hand navigation on click";		
		s_linkName = "Left hand navigation on click";		
		s_prop24="EN";		
		s_prop26 = getTSyst();
		s_prop27 =  getDtSyst();					

		s_pageName = "SAAB | CERTIFIED PRE-OWNED | BROCHURE";
		s_prop30 = "CERTIFIED PRE-OWNED";
		void(s_gs(s_account));
	
		//popStandard('http://www.gmnao.com/servlets/irf?sc=SA20KBF6N',500,600,50,50,'')
		winOptions = 'toolbar=0,location=0,menubar=0,directories=0,screenx=50,screeny=50,top=0,left=0,status=0,menubar=1,scrollbars=2,resizable=1,width=600,height=500';
		window.open("http://www.gmnao.com/servlets/irf?sc=SA20KBF6N", "", winOptions);
}

function trackCOCreditUnion(){
		s_lnk=true;
		s_linkType="e";
		s_prop1 = "PROMO";
		s_prop2 = "CREDIT UNION";
		s_prop3 = "PROMO | CREDIT UNION";
		s_prop4 = "";
		s_prop5 = "SAAB | DIVISIONAL | OFFERS | FORM | PROMO | CREDIT UNION";
		s_prop6 = "";
		s_prop7 = "";
		s_prop8 = "";
		s_prop9 = "";
		s_prop10 = "";
		s_prop11 = "";
		s_prop12 = "";
		s_prop13 = "";
		s_prop14 = "";
		s_prop15 = "";
		s_prop16 = "";
		s_prop17 = "";
		s_prop18 = "";
		s_prop19 = "";
		s_prop20 = "";
		s_prop21 = "";
		s_prop22 = "";
		s_prop23 = "";
		s_prop24 = "";
		s_prop25 = "SAAB";
		s_prop26 = "";
		s_prop27 = "";
		s_prop28 = "";
		s_linkname = "SAAB | DIVISIONAL | OFFERS | FORM | PROMO | CREDIT UNION";		
		s_linkName = "SAAB | DIVISIONAL | OFFERS | FORM | PROMO | CREDIT UNION";		
		s_prop24="EN";		
		s_prop26 = getTSyst();
		s_prop27 =  getDtSyst();					

		s_pageName = "SAAB | DIVISIONAL | OFFERS | FORM | PROMO | CREDIT UNION";
		s_prop30 = "PROMO";
		void(s_gs(s_account));
		var newWindow = window.open("https://www.exclusivegmoffer.com/ip-gmpop/initPop.do?program=cud", "_blank");
		newWindow.focus();
}

function trackCPODrop() {
		s_lnk=true;
		s_linkType="e";
		s_prop1 = "CERTIFIED PRE-OWNED";
		s_prop2 = "BROCHURE";
		s_prop3 = "CERTIFIED PRE-OWNED | BROCHURE";
		s_prop4 = "";
		s_prop5 = "";
		s_prop6 = "";
		s_prop7 = "";
		s_prop8 = "";
		s_prop9 = "";
		s_prop10 = "";
		s_prop11 = "";
		s_prop12 = "";
		s_prop13 = "";
		s_prop14 = "";
		s_prop15 = "";
		s_prop16 = "";
		s_prop17 = "";
		s_prop18 = "";
		s_prop19 = "";
		s_prop20 = "";
		s_prop21 = "";
		s_prop22 = "";
		s_prop23 = "";
		s_prop24 = "";
		s_prop25 = "SAAB";
		s_prop26 = "";
		s_prop27 = "";
		s_prop28 = "";
		s_linkname = "SAAB | TNAV | CERTIFIED PRE-OWNED | BROCHURE";		
		s_linkName = "SAAB | TNAV | CERTIFIED PRE-OWNED | BROCHURE";		
		s_prop24="EN";		
		s_prop26 = getTSyst();
		s_prop27 =  getDtSyst();					

		s_pageName = "SAAB | CERTIFIED PRE-OWNED | BROCHURE";
		s_prop30 = "CERTIFIED PRE-OWNED";
		void(s_gs(s_account));
	
		//popStandard('http://www.gmnao.com/servlets/irf?sc=SA20KBF6N',500,600,50,50,'')
		winOptions = 'toolbar=0,location=0,menubar=0,directories=0,screenx=50,screeny=50,top=0,left=0,status=0,menubar=1,scrollbars=2,resizable=1,width=600,height=500';
		window.open("http://www.gmnao.com/servlets/irf?sc=SA20KBF6N", "", winOptions);
}


function changeImage(imgName, mode){
		//alert(" imagen : " +imgName +" modo :  "+ mode);
		try{
		if(document[imgName].srcindexOf("_ne") == -1)
		{
			document[imgName].src = eval(imgName + "_" + mode + ".src");
		}
		if(curCOTabImage  != ""){
			if(curCOTabImage == "trSummary93s"){
				document.getElementById("co_tab93s").src = '/images/co_93s_ne.gif';
			} else if(curCOTabImage == "trSummary93c"){
				document.getElementById("co_tab93c").src = '/images/co_93c_ne.gif';
			} else if(curCOTabImage == "trSummary935"){
				document.getElementById("co_tab935").src = '/images/co_935_ne.gif';
			} else if(curCOTabImage == "trSummary95s"){
				document.getElementById("co_tab95s").src = '/images/co_95s_ne.gif';
			} else if(curCOTabImage == "trSummary97x"){
				document.getElementById("co_tab97x").src = '/images/co_97x_ne.gif';
			} else {
				document.getElementById("co_tabindex").src = '/images/co_all_ne.gif';
			}

		}
		}
		catch(err){
		}
}

	function swapMenu(menuName, mode){
		if (menuName != "" ){
			var imgName = menuName.replace("_starter", "_menu");

			if (document[imgName]){
				document[imgName].src = eval("img_" + imgName + "_" + mode + ".src");
			}
		}
	}

function showEmployeePromo(){
   openWin('http://www.gm.com/employeediscount.do?brandId=sb&cmp=sb_com&version=1',620,600,0,0,0,0,0,0,0);
}



function linkTopNav( url, trk ){
   s_linkType="o";
   s_linkName = trk;
   s_lnk = s_co(this);
   s_gs( s_account );

   var httpPos = url.indexOf("http");

   if (httpPos == 0) {
      document.location.href= url;
   } else {
      eval(url);
   }
}

function clickTrack( url, trk, prp5 ){
   s_prop5 = prp5;
   s_linkType="o";
   s_linkName = trk;
   s_lnk = s_co(this);
   s_gs( s_account );
   if (!url==''){
	   var httpPos = url.indexOf("http");
	   if (httpPos == 0) {
		  document.location.href= url;
	   } else {
		  eval(url);
	   }
   } else {
   	return true;
   }
}

function linkTopNavAV(){
   // clickTrack( 'document.location.href="' + wwwserver + '/saabjsp/audiovideo/"', 'SAAB | TNAV | AUDIO & VIDEO', 'CL-TNAV' );
  clickTrack( 'document.location.href="' + '/saabjsp/audiovideo/"', 'SAAB | TNAV | AUDIO & VIDEO', 'CL-TNAV' );
}


function pop952006() {
//popStandard('/saabjsp/95s/new06.jsp',500,615,100,100,'new200695');
    popNew95Contact('home');
}

function popAllModels(comparison) {
    popStandard(wwwserver + '/saabjsp/allmodels/popallmodels.jsp?comparison='+comparison,750,750, 50, 50, 'allmodel')
	//  popStandard(wwwserver + '/saabjsp/allmodels/popallmodels.jsp?comparison='+comparison, 620,735, 50, 50, 'allmodel')

 // popStandard('/saabjsp/allmodels/popallmodels.jsp?comparison='+comparison, 620,735, 50, 50, 'allmodel')
}

function popSFSC(){
		winOptions = 'toolbar=1,location=1,menubar=1,directories=1,screenx=50,screeny=50,top=50,left=50,status=1,menubar=1,scrollbars=1,resizable=1,width=850,height=700';
		var temp = window.open("https://www.npl1.com/saabca/login.jsp", 'sfsc', winOptions);
		temp.focus();
}

function popNew95Contact(src) {
    popStandard(www2server + '/new95/default.asp', 650,700, 50, 50, 'redesigned95')
}

function launchMainSite(){
	if (window.opener && !window.opener.closed){
		window.opener.location.href =  "http://" + window.location.hostname;
		window.opener.focus();
	}else{
		openWin("http://" + window.location.hostname ,1000,800,1,1,1,1,1,1,1);
	}
}

function launchBFJ(){
 winOptions = 'toolbar=0,location=0,menubar=0,directories=0,screenx=200,screeny=200,top=200,left=150,status=0,menubar=0,scrollbars=0,resizable=0,width=950,height=650';
 var temp = window.open( bfjURL + '/main.asp', 'bornfromjets', winOptions);
 temp.focus();
}


function popEuroVideo(){
    popStandard(wwwserver + '/saabjsp/europeandelivery/video.jsp',260,322,300,300,'video') ;
}

function popDrivingTeam(){
    s_linkType="o";
    s_linkName = 'SAAB | HOME PAGE | PERFORMANCE DRIVE TEAM';
    s_lnk = s_co(this);
    s_gs( s_account );

 winOptions = 'toolbar=1,location=1,menubar=1,directories=1,screenx=200,screeny=200,top=200,left=150,status=1,menubar=1,scrollbars=1,resizable=1,width=900,height=850';
 var temp = window.open( www2server + '/performancedriveteam/', 'perfdriveteam', winOptions);
 temp.focus();
}

function launchAerox(){
    s_linkType="o";
    s_linkName = 'SAAB | HOME PAGE | AERO X MICROSITE';
    s_lnk = s_co(this);
    s_gs( s_account );

 winOptions = 'toolbar=1,location=1,menubar=1,directories=1,screenx=50,screeny=50,top=50,left=50,status=1,menubar=1,scrollbars=1,resizable=1,width=1000,height=850';
 var temp = window.open( www2server + '/aerox/', 'aeroxmicro', winOptions);
 temp.focus();
}


function popQuickCompare_home(){
    //popStandard(www2server + '/comparisons/93s/compare.asp',750,600,50,50,'quickcompare');
    document.location.href= wwwserver + '/comparator/saab/comparevehicle.jsp';
}

function popQuickCompare(model){
    popStandard(www2server + '/comparisons/' + model + '/compare.asp',750,600,50,50,'quickcompare');
}

function swapModelDisclaimers(model){

    var modelDisclaimer = "*The Manufacturer's Suggested Retail Price excludes <a href='http://www.gm.com/dfc/index.jsp' target='_blank' class='manufactLink'>destination freight charge</a>, tax, title, license, dealer fees and optional equipment. <a href='http://www.gm.com/dfc/index.jsp' target='_blank' class='manufactLink'>Click here to see all Saab vehicles' destination freight charges</a>.";
    var modelDisclaimer07 = "*The Manufacturer's Suggested Retail Price excludes <a href='http://www.gm.com/dfc/index.jsp' target='_blank' class='manufactLink'>destination freight charge</a>, tax, title, license, dealer fees and optional equipment. <a href='http://www.gm.com/dfc/index.jsp' target='_blank' class='manufactLink'>Click here to see all Saab vehicles' destination freight charges</a>.";
    var safetyBeltDisclaimer = "Always use safety belts and the correct child restraint for your child's age and size. Even in vehicles equipped with a Passenger Sensing System. Children are safer when properly secured in a rear seat in the appropriate infant, child or booster seat. Head-curtain side air bags are designed to help reduce the risk of head and neck injuries to front- and rear-seat occupants on the near side of certain collisions. See the Owner's manual for more safety information.";

    if (model == '93c') {

        modelDisclaimer = "*The Manufacturer's Suggested Retail Price excludes <a href='http://www.gm.com/dfc/index.jsp' target='_blank' class='manufactLink'>destination freight charge</a>, tax, title, license, dealer fees and optional equipment. <a href='http://www.gm.com/dfc/index.jsp' target='_blank' class='manufactLink'>Click here to see all Saab vehicles' destination freight charges</a>.";
        modelDisclaimer = modelDisclaimer + "<br><br>**XM Radio requires a subscription, sold separately after the first 90 days. Not available in Alaska or Hawaii. For more information, visit <a class=\"links_footer\" style=\"display:inline; float:none; margin:0px;\" href=\"http://gm.xmradio.com\" target=\"_blank\">gm.xmradio.com</a>.";
        modelDisclaimer = modelDisclaimer + "<br><br><sup>&sect;</sup>" + safetyBeltDisclaimer;
        modelDisclaimer = modelDisclaimer + "<br><br><sup>&dagger;&dagger;</sup>Go to <a href=\"http://www.gm.com/vc/bluetooth/\" target=\"_blank\" class=\"links_footer\" style=\"margin:0px;float:none;display:inline;\">gm.com/Bluetooth</a> to find out which Bluetooth phones are compatible with the vehicle.";
        modelDisclaimer = modelDisclaimer + "<br><br><sup>&sect;&sect;</sup>OnStar includes 12 months of the Safe & Sound package.  OnStar services require vehicle electrical system (including battery), wireless service and GPS satellite signal to be available and operating for features to function properly. Subscription service agreement required.  Call 1-888-4-ONSTAR (1-888-466-7827) or visit <a href=\"http://www.onstar.com/\" target=\"_blank\" class=\"links_footer\" style=\"margin:0px;float:none;display:inline;\">onstar.com</a> for OnStar's terms and conditions, privacy policy, and system limitations and details.";
        modelDisclaimer = modelDisclaimer + "<br><br>***Whichever comes first. See dealer for limited warranty details.";
    } else if (model == '93s') {
        modelDisclaimer = "*The Manufacturer's Suggested Retail Price excludes <a href='http://www.gm.com/dfc/index.jsp' target='_blank' class='manufactLink'>destination freight charge</a>, tax, title, license, dealer fees and optional equipment. <a href='http://www.gm.com/dfc/index.jsp' target='_blank' class='manufactLink'>Click here to see all Saab vehicles' destination freight charges</a>.";
        modelDisclaimer = modelDisclaimer + "<br><br><sup>&dagger;</sup>XM Radio requires a subscription, sold separately after the first 90 days. Not available in Alaska or Hawaii. For more information, visit <a class=\"links_footer\" style=\"display:inline; float:none; margin:0px;\" href=\"http://gm.xmradio.com\" target=\"_blank\">gm.xmradio.com</a>.";
        modelDisclaimer = modelDisclaimer + "<br><br><sup>&sect;</sup>" + safetyBeltDisclaimer;
        modelDisclaimer = modelDisclaimer + "<br><br>**The program includes two days of classroom and driving instruction. One dinner and two continental breakfasts and lunches are also included. Customer is responsible for transportation and lodging.";
		modelDisclaimer = modelDisclaimer + "<br><br><sup>&sect;&sect;</sup>Go to <a href=\"http://www.gm.com/vc/bluetooth/\" target=\"_blank\" class=\"links_footer\" style=\"margin:0px;float:none;display:inline;\">gm.com/Bluetooth</a> to find out which Bluetooth phones are compatible with the vehicle.";		
        modelDisclaimer = modelDisclaimer + "<br><br><sup>&dagger;&dagger;</sup>OnStar includes 12 months of the Safe & Sound package.  OnStar services require vehicle electrical system (including battery), wireless service and GPS satellite signal to be available and operating for features to function properly. Subscription service agreement required.  Call 1-888-4-ONSTAR (1-888-466-7827) or visit <a href=\"http://www.onstar.com/\" target=\"_blank\" class=\"links_footer\" style=\"margin:0px;float:none;display:inline;\">onstar.com</a> for OnStar's terms and conditions, privacy policy, and system limitations and details.";
        modelDisclaimer = modelDisclaimer + "<br><br>***Whichever comes first. See dealer for limited warranty details.";
        modelDisclaimer = modelDisclaimer + "<br><br>&Dagger;Whichever comes first, provided the service is performed within 1,000 miles of recommended service interval. ";

    } else if (model == '935') {

        modelDisclaimer = "*The Manufacturer's Suggested Retail Price excludes <a href='http://www.gm.com/dfc/index.jsp' target='_blank' class='manufactLink'>destination freight charge</a>, tax, title, license, dealer fees and optional equipment. <a href='http://www.gm.com/dfc/index.jsp' target='_blank' class='manufactLink'>Click here to see all Saab vehicles' destination freight charges</a>.";
        modelDisclaimer = modelDisclaimer + "<br><br><sup>&dagger;</sup>Cargo and load capacity limited by weight and distribution.";
        modelDisclaimer = modelDisclaimer + "<br><br><sup>&sect;</sup>" + safetyBeltDisclaimer;
        modelDisclaimer = modelDisclaimer + "<br><br>**XM Radio requires a subscription, sold separately after the first 90 days. Not available in Alaska or Hawaii. For more information, visit <a class=\"links_footer\" style=\"display:inline; float:none; margin:0px;\" href=\"http://gm.xmradio.com\" target=\"_blank\">gm.xmradio.com</a>.";
        modelDisclaimer = modelDisclaimer + "<br><br><sup>&dagger;&dagger;</sup>Go to <a href=\"http://www.gm.com/vc/bluetooth/\" target=\"_blank\" class=\"links_footer\" style=\"margin:0px;float:none;display:inline;\">gm.com/Bluetooth</a> to find out which Bluetooth phones are compatible with the vehicle.";
        modelDisclaimer = modelDisclaimer + "<br><br><sup>&sect;&sect;</sup>OnStar includes 12 months of the Safe & Sound package.  OnStar services require vehicle electrical system (including battery), wireless service and GPS satellite signal to be available and operating for features to function properly. Subscription service agreement required.  Call 1-888-4-ONSTAR (1-888-466-7827) or visit <a href=\"http://www.onstar.com/\" target=\"_blank\" class=\"links_footer\" style=\"margin:0px;float:none;display:inline;\">onstar.com</a> for OnStar's terms and conditions, privacy policy, and system limitations and details.";
        modelDisclaimer = modelDisclaimer + "<br><br>***Whichever comes first. See dealer for limited warranty details.";
	
    } else if (model == '95s') {

        modelDisclaimer = "*The Manufacturer's Suggested Retail Price excludes <a href='http://www.gm.com/dfc/index.jsp' target='_blank' class='manufactLink'>destination freight charge</a>, tax, title, license, dealer fees and optional equipment. <a href='http://www.gm.com/dfc/index.jsp' target='_blank' class='manufactLink'>Click here to see all Saab vehicles' destination freight charges</a>.";
        modelDisclaimer = modelDisclaimer + "<br><br><sup>&dagger;</sup>XM Radio requires a subscription, sold separately after the first  90 days. Not available in Alaska or Hawaii. For more information, visit <a class=\"links_footer\" style=\"display:inline; float:none; margin:0px;\" href=\"http://gm.xmradio.com\" target=\"_blank\">gm.xmradio.com</a>.";
        modelDisclaimer = modelDisclaimer + "<br><br><sup>&sect;</sup>DVD Navigation: Navigation Radio is only available in the 48 contiguous United States, Alaska, and Hawaii. Navigation Map only covers the 48 contiguous United States and portions of Canada, but does not cover Alaska, Hawaii, Puerto Rico or the Virgin Islands.";
        modelDisclaimer = modelDisclaimer + "<br><br><sup>**</sup>" + safetyBeltDisclaimer;
        modelDisclaimer = modelDisclaimer + "<br><br><sup>&dagger;&dagger;</sup>OnStar includes 12 months of the Safe & Sound package.  OnStar services require vehicle electrical system (including battery), wireless service and GPS satellite signal to be available and operating for features to function properly. Subscription service agreement required.  Call 1-888-4-ONSTAR (1-888-466-7827) or visit onstar.com for OnStar's terms and conditions, privacy policy, and system limitations and details.";
        modelDisclaimer = modelDisclaimer + "<br><br>***Whichever comes first. See dealer for limited warranty details.";
    } else if (model == '95w') {

        modelDisclaimer = "*The Manufacturer's Suggested Retail Price excludes <a href='http://www.gm.com/dfc/index.jsp' target='_blank' class='manufactLink'>destination freight charge</a>, tax, title, license, dealer fees and optional equipment. <a href='http://www.gm.com/dfc/index.jsp' target='_blank' class='manufactLink'>Click here to see all Saab vehicles' destination freight charges</a>.";
        modelDisclaimer = modelDisclaimer + "<br><br><sup>&dagger;</sup>Navigation Radio is only available in the 48 contiguous United States, Alaska, and Hawaii. Navigation Map only covers the 48 contiguous United States and portions of Canada, but does not cover Alaska, Hawaii, Puerto Rico or the Virgin Islands.";
        modelDisclaimer = modelDisclaimer + "<br><br><sup>&sect;</sup>" + safetyBeltDisclaimer;
        modelDisclaimer = modelDisclaimer + "<br><br>**Broadcasting is available in the 48 contiguous states; activation and service fees extra. Visit gm.xmradio.com for additional details.";
        modelDisclaimer = modelDisclaimer + "<br><br><sup>&dagger;&dagger;</sup>XM Radio requires a subscription, sold separately after the first 90 days. Not available in Alaska or Hawaii. For more information, visit <a class=\"links_footer\" style=\"display:inline; float:none; margin:0px;\" href=\"http://gm.xmradio.com\" target=\"_blank\">gm.xmradio.com</a>.";
        modelDisclaimer = modelDisclaimer + "<br><br><sup>&sect;&sect;</sup>OnStar includes 12 months of the Safe & Sound package.  OnStar services require vehicle electrical system (including battery), wireless service and GPS satellite signal to be available and operating for features to function properly. Subscription service agreement required.  Call 1-888-4-ONSTAR (1-888-466-7827) or visit onstar.com for OnStar's terms and conditions, privacy policy, and system limitations and details.";
        modelDisclaimer = modelDisclaimer + "<br><br>***Whichever comes first. See dealer for limited warranty details.";
		modelDisclaimer = modelDisclaimer +"<br/><br/><sup>&sect;&sect;&sect;</sup> Whichever comes first, provided the service is performed within 2,000 miles of the recommended service interval.";

    } else if (model == '97x') {

        modelDisclaimer = "*The Manufacturer's Suggested Retail Price excludes <a href='http://www.gm.com/dfc/index.jsp' target='_blank' class='manufactLink'>destination freight charge</a>, tax, title, license, dealer fees and optional equipment. <a href='http://www.gm.com/dfc/index.jsp' target='_blank' class='manufactLink'>Click here to see all Saab vehicles' destination freight charges</a>.";
        modelDisclaimer = modelDisclaimer + "<br><br><sup>&sect;</sup>XM Radio requires a subscription, sold separately after the first 90 days. Not available in Alaska or Hawaii. For more information, visit <a class=\"links_footer\" style=\"display:inline; float:none; margin:0px;\" href=\"http://gm.xmradio.com\" target=\"_blank\">gm.xmradio.com</a>.";
        modelDisclaimer = modelDisclaimer + "<br><br>&dagger; Go to <a class=\"links_footer\" href=\"http://www.gm.com/vc/bluetooth/\" style=\"display:inline; float:none; margin:0px;\" target=\"_blank\">gm.com/Bluetooth</a> to find out which Bluetooth phones are compatible with the vehicle.";
        modelDisclaimer = modelDisclaimer + "<br><br>&dagger;&dagger;&nbsp;OnStar includes 12 months of the Safe &amp; Sound package. OnStar services require vehicle electrical system (including battery), wireless service and GPS satellite signal to be available and operating for features to function properly. Subscription service agreement required. Call 1-888-4-ONSTAR (1-888-466-7827) or visit <a class=\"links_footer\" href=\"http://www.onstar.com/\" style=\"display:inline; float:none; margin:0px;\" target=\"_blank\">onstar.com</a> for OnStar's terms and conditions, privacy policy, and system limitations and details.";
        modelDisclaimer = modelDisclaimer + "<br><br><sup>&sect;&sect;</sup>" + safetyBeltDisclaimer;
        modelDisclaimer = modelDisclaimer + "<br><br>***Whichever comes first. See dealer for limited warranty details.";
		modelDisclaimer = modelDisclaimer + "<br><br>&sect;&sect;&sect;Use only GM approved wheel/tire combinations. See dealer for details.";

    }else if (model == 'allnew95') {

        modelDisclaimer = "*The Manufacturer's Suggested Retail Price excludes <a href='http://www.gm.com/dfc/index.jsp' target='_blank' class='manufactLink'>destination freight charge</a>, tax, title, license, dealer fees and optional equipment. <a href='http://www.gm.com/dfc/index.jsp' target='_blank' class='manufactLink'>Click here to see all Saab vehicles' destination freight charges</a>.";
		modelDisclaimer = modelDisclaimer + "<br/><br/>&dagger;Window will open to go to global site. Vehicles shown on the global site are European and not available in the US.";		

    }else if (model == 'home') {

        modelDisclaimer = "*The Manufacturer's Suggested Retail Price excludes <a href='http://www.gm.com/dfc/index.jsp' target='_blank' class='manufactLink'>destination freight charge</a>, tax, title, license, dealer fees and optional equipment. <a href='http://www.gm.com/dfc/index.jsp' target='_blank' class='manufactLink'>Click here to see all Saab vehicles' destination freight charges</a>.";
        modelDisclaimer = modelDisclaimer + "<br><br><sup>&dagger;</sup>Whichever comes first. See dealer for limited warranty details.";
		modelDisclaimer = modelDisclaimer + "<br><br><sup>&sect;</sup>Five-star rating is for the driver and front passenger seating positions in the frontal crash test. Government star ratings are part of the National Highway Traffic Safety Administration's (NHTSA's) New Car Assessment Program (www.safercar.gov).";
		modelDisclaimer += "<br/><br/> **Limited Availability";
		modelDisclaimer = modelDisclaimer + "<br><br>&dagger;&dagger;European pre-production model shown. Actual production model may vary. Optional equipment shown. In your dealership model year 2010.";
		modelDisclaimer += "<br/><br/>***Based on IIHS segmentation and testing results. IIHS results based on front-, side- and rear-impact tests and the availability of Electronic Stability Control.";
    } else if(model == 'tx'){
		modelDisclaimer += "<br/><br/>**Limited Availability";
	}


    modelDisclaimer = "<br>" + modelDisclaimer;


	if (document.all){
		if (document.getElementById("msrpdisclaimer1")){
			document.getElementById("msrpdisclaimer1").innerHTML = modelDisclaimer;
		}

	}else{
		if (document.getElementById("msrpdisclaimer")){
			document.getElementById("msrpdisclaimer").innerHTML =  modelDisclaimer;
		}
	}
}

/*
* This function adds specific disclaimers in the xwdturbo area
*/
/*
function xwdturboDisclaimers(section){

    var sectionDisclaimer =  "";

	if (section == 'HowItWorks'){
		sectionDisclaimer += "";
	}

  sectionDisclaimer = "<br>" + sectionDisclaimer;


	if (document.all){
		if (document.getElementById("msrpdisclaimer1")){
			document.getElementById("msrpdisclaimer1").innerHTML = sectionDisclaimer;
		}
	
	}else{
		if (document.getElementById("msrpdisclaimer")){
			document.getElementById("msrpdisclaimer").innerHTML =  sectionDisclaimer;
		}
	}

}*/


function launchOLNsweeps(model){
 winOptions = 'toolbar=1,location=1,menubar=1,directories=1,screenx=50,screeny=50,top=50,left=50,status=1,menubar=1,scrollbars=1,resizable=1,width=1000,height=850';
 var temp = window.open( 'http://oln.eprize.net/flytothefinish/', 'aeroxmicro', winOptions);
}

function popMY06Closeout(){
    //alert('hn');
    //winOptions = 'toolbar=0,location=0,menubar=0,directories=0,screenx=200,screeny=200,top=200,left=150,status=0,menubar=0,scrollbars=0,resizable=0,width=950,height=650';
    //var temp = window.open('/saabjsp/offers/index.jsp', 'bornfromjets', winOptions);
    //popWin( www2server + '/closeout/default.asp', 950, 1000, 50, 50,'mycloseout');
    winOptions = 'toolbar=1,location=1,menubar=1,directories=1,screenx=50,screeny=50,top=50,left=50,status=1,menubar=1,scrollbars=1,resizable=1,width=1000,height=850';
    var temp = window.open( www2server + '/closeout/', 'my06closeout', winOptions);
}

function popAngelFlight(){
    winOptions = 'toolbar=0,location=0,menubar=0,directories=0,screenx=100,screeny=100,top=100,left=100,status=0,menubar=0,scrollbars=0,resizable=0,width=700,height=700';
    var temp = window.open( www2server + '/angelflight/', 'my06closeout', winOptions);
}

function popiceexperience() {
	winOptions = 'toolbar=0,location=0,menubar=0,directories=0,screenx=100,screeny=100,top=100,left=100,status=0,menubar=0,scrollbars=0,resizable=0,width=600,height=630';
	var temp = window.open('/saabjsp/iceexperience/index.jsp', 'iceexperience', winOptions);
	temp.focus();
}

function lNavClose(model){
}

function lNavOpen(model){
}

function popProjectR() {
		winOptions = 'screenx=50,screeny=50,top=50,left=50,width=1000,height=600,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resize=no';
		var temp = window.open("http://www.gm.com/warranty/index.jsp?brandId=sb&lang=en&cmp=saab_com", 'projectR', winOptions);
		temp.focus();
}

function popOnstarSitelet(){
    winOptions = 'screenx=200,screeny=200,top=200,left=200,width=675,height=461,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resize=no';
    var temp = window.open('http://www.onstar.com/us_english/jsp/services/index.jsp?make=saab&model=homepage&deepLink=overview', 'onstar', winOptions);
    temp.focus();
}
/*
function popAffordabilityCalc() //popAffordabilityCalc
{
	url="http://uat.gmacfintools.com/fintools/ac/AC.do?cntrycd=US&langcd=EN&websiteid=SB";
	var features = "width=800,height=600,location=yes,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes";
    openPopupWithFeatures(url, name, features, true);

} //popAffordabilityCalc
*/
function goAV(){
    document.location.href= wwwserver + "/saabjsp/audiovideo/index.jsp";
}

function openPopupWithFeatures(url, name, features, closeOnFocus){
    //closePopup();

    if (closeOnFocus) {
        curPopupWindow = window.open(url, name, features, false);
        curPopupWindow.focus();
    } else {
/* assign the open window to a dummy var so when closePopup() is called it won't be assigned to curPopupWindow */
        win = window.open(url, name, features, false);
        win.focus();
    }
}

function openServicesPopup(url, name) {
    var features = "width=675,height=461,location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no";
    openPopupWithFeatures(url, name, features, true);
}

function openOnStarHome(){
    winOptions = 'screenx=100,screeny=100,top=100,left=100,width=850,height=800,status=yes,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resize=yes';
    var temp = window.open('http://www.onstar.com', 'onstar', winOptions);
    temp.focus();
}


function open97xPopup(win)
{
	url = "/contextlinks/2008/" + win + ".jsp";
	winOptions = 'screenx=100,screeny=100,top=100,left=100,width=400,height=400,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resize=no';
    var temp = window.open(url, '', winOptions);
    temp.focus();

} // open97xPopup


function superPopup(pOptions){

	var url, type, directories, location, menubar, resizable, scrollbars, status, toolbar, top, left, width, height, winName, clickTrackValue;
	var scrll= "no";
	// URL is the only required field.
	if (pOptions.url != null) {	url = pOptions.url;} else { alert('Error: Link URL Missing')};

	if (pOptions.type != null) { type = pOptions.type;};

	// type will set some basic options to make the function cleaner -- otherwise all values can be set
	if(type == "_blank"){	//used to generate a window the same size as the previous
		var windowWidth = f_clientWidth();
		var windowHeight = f_clientWidth();

		//used to generate original "window names"
		var randomNumber = Math.floor(Math.random()*1000);
		winName="blank" + randomNumber; width=windowWidth; height=windowHeight; scrollbars="yes"; menubar="yes"; toolbar="yes"; directories="yes"; location="yes"; top="0"; left="0";
	} else if(type == "onStar"){
		winName="onStar"; width = "850"; height= "800"; scrollbars = "yes"; resizable = "yes"; toolbar="yes"; directories="no"; location="yes"; status="yes"; menubar="yes";
	} else if(type == "survey"){
		winName="survey"; status="no"; toolbar="no"; menubar="no" ;location="no"; scrollbars="yes"; resizable="no"; width="563"; height="240";
	} else if(type == "downloads"){
		if (navigator.appVersion.indexOf("Safari", navigator.appVersion) > 0)
			scrll = "yes";
		//alert(navigator.appVersion);
		//scrll ="";
		winName="downloads"; status="no"; toolbar="no"; menubar="no" ;location="no"; scrollbars= scrll; resizable="yes"; width="1024"; height="768";
	} else if(type == "RegionLocation"){
		winName="RegionLocation"; width = "750"; height= "700"; scrollbars = "yes"; resizable = "yes"; toolbar="no"; directories="no"; location="no"; status="no"; menubar="no";
	} else if(type == "gmsites"){
		winName="GM"; width = "660"; height= "545"; scrollbars = "no"; resizable = "no"; toolbar="no"; directories="no"; location="no"; status="no"; menubar="no";
	} else if(type == "gm"){
		winName="GM"; width = "1000"; height= "750"; scrollbars = "yes"; resizable = "yes"; toolbar="yes"; directories="yes"; location="yes"; status="yes"; menubar="yes";
	}
	else if(type == "trimmodels"){
		winName="97X"; width = "800"; height= "403"; scrollbars = "no"; resizable = "no"; toolbar="no"; directories="no"; location="no"; status="no"; menubar="no";
	//width="824" height="403"
	}else if(type == "linkURL"){
		winName="RequestSaabBrochure"; width = "780"; height= "660"; scrollbars = "yes"; resizable = "no"; toolbar="no"; directories="no"; location="no"; status="no"; menubar="no";
	//width="824" height="403"
	}
		//superPopup({type:"trimmodels", url:"/saabjsp/97x/trimlevels.jsp", width:"824", height:"403"})
		//superPopup({type:"downloads", url:"asasas", width:"800", height:"600"})


	// test to see if we have set a window option on the function or in a profile above, if not then set the value to be a default.
	if (pOptions.directories != null) { directories = pOptions.directories;} else if (directories == null) { directories = "no" ;}
	if (pOptions.location != null) { location = pOptions.location;} else if (location == null) { location = "no" ;}
	if (pOptions.menubar != null) { menubar = pOptions.menubar;} else if (menubar == null) { menubar = "no" ;}
	if (pOptions.resizable != null) { resizable = pOptions.resizable;} else if (resizable == null) { resizable = "no" ;}
	if (pOptions.scrollbars != null) { scrollbars = pOptions.scrollbars;} else if (scrollbars == null) { scrollbars = "yes" ;}
	if (pOptions.status != null) { status = pOptions.status; } else if (status == null) { status = "yes" ;}
	if (pOptions.toolbar != null) { toolbar = pOptions.toolbar; } else if (toolbar == null) { toolbar = "no" ;}
	if (pOptions.top != null) { top = pOptions.top} else if (top == null) { top = "50";}
	if (pOptions.left != null) { left = pOptions.left;} else if (left == null) { left = "50" ;}
	if (pOptions.width != null) { width = pOptions.width;} else if (width == null) { width = "250" ;}
	if (pOptions.height != null) { height = pOptions.height;} else if (height == null) { height = "250" ;}
	if (pOptions.winName != null) { winName = pOptions.winName;} else if (winName == null) { winName = "popUp" ;}
	if (pOptions.clickTrack != null) { clickTrackValue = pOptions.clickTrack;}

	// build our complete window options statement
	windowOptions = "width=" + width + ", height=" + height + ", directories=" + directories + ", location=" + location + ", menubar=" + menubar + ", resizable=" + resizable + ", scrollbars=" + scrollbars + ", toolbar=" + toolbar + ", status=" + status + ", toolbar=" + toolbar + ", top=" + top + ", left=" + left;

//	if(clickTrackValue != null){
		//alert(clickTrackValue);
	//	clickTrack({s_linkName: clickTrackValue});
//	}*/

	var newWindow = window.open(url,winName,windowOptions);
	//alert(windowOptions);
	if (newWindow == null){
		//alert('A popup containing important information was blocked by your browser. Please enable popups for this site in order to view this information.');
		var errorBox = document.getElementById("blockedPopup");
		errorBox.style.display = "block";


	} else {
		if (window.focus && newWindow) { newWindow.focus() }
	}
}

function openNewWindow(URLtoOpen, windowName, windowFeatures)
{
	newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}

function openOnstarWin()
{
	var url = "http://www.onstar.com/us_english/jsp/services/index.jsp?make=saab&model=m97x&deepLink=navigation";
	var winOptions = 'screenx=100,screeny=100,top=100,left=100,width=800,height=600,status=yes,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resize=yes';
	window.open(url, '', winOptions);
}

function poppupGreen() // poppupGreen
{ 
	var url = "http://www.gm.com/e85";
	var winOptions = 'screenx=100,screeny=100,top=100,left=100,width=800,height=600,status=yes,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resize=yes';
	window.open(url, '', winOptions);
} // poppupGreen

function changeDisclaimer(model)
{
	var disclaimer= "";


	switch (model)
	{
		case 2:
			disclaimer="<br /><br />* Navigation Map only covers the 48 contiguous United States and portions of Canada, but does not cover Alaska, Hawaii, Puerto Rico, or the Virgin Islands.";
			break;
		case 3:
			disclaimer="<br /><br />* Navigation Map only covers the 48 contiguous United States and portions of Canada, but does not cover Alaska, Hawaii, Puerto Rico, or the Virgin Islands.";
			break;
	} // switch

	//alert(document.getElementById('msrpdisclaimer').innerHTML + "!=" + disclaimer);
	//document.getElementById('msrpdisclaimer1').innerHTML= disclaimer;

	document.getElementById('msrpdisclaimer1').innerHTML = "<layer id='msrpdisclaimer' >" + disclaimer + "</layer>";

}//


function getAccount(){
	return s_account;
}

function dirForm(section)
{
	window.location = "/saabjsp/turboxlanding/index.jsp?section="+section;
}



function getTSyst(){
		var timeActual
		var dateNow = new Date();
		var hours = dateNow.getHours()
  		var minutes = dateNow.getMinutes()

		if (minutes < 10)
  			minutes = "0" + minutes

		var suffix = "AM";
		if (hours >= 12) {
			suffix = "PM";
			hours = hours - 12;
		}
		if (hours == 0) {
			hours = 12;
		}

		if (hours < 10)
  			hours = "0" + hours

		timeActual = hours + ":" + minutes + " " + suffix

		return timeActual;
}

function getDtSyst(){
	var dateActual
	var dateSystem = new Date();
	days = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");

	dateActual = days[dateSystem.getDay()]

	return dateActual;
}


function popSurvey(valor){
	
/*	try{
		var temp = "";
		if(valor == 1){
			temp = document.getElementById("psyma_layer");
			temp.style.visibility = "hidden"; // "visible";
		}
	}
	catch(err){
	}
	finally{
	}*/
}


function setWorldWideSiteSection(parm)
{
	
	var discl = "";
	var oldDiscl = "";
	
	try
	{
		oldDiscl  = document.getElementById('msrpdisclaimer1').innerHTML;
	}
	catch(err){
		oldDiscl  = "";
	}
	
	/*if ((parm == 'parm') || (parm == '9-X BIOHYBRID') ){
		discl = "<layer id=\"msrpdisclaimer\" ><br>" + "* E85 is 85% ethanol, 15% gasoline. Visit <a href=\"http://www.gm.com/e85\">livegreengoyellow.com</a> to see if there is an E85 station near you."  + "</layer>";
	}

	document.getElementById('msrpdisclaimer1').innerHTML= discl;
	*/
	
	if (parm == 'AERO X') {	
		document.getElementById('msrpdisclaimer1').innerHTML= discl;
	}
	else if (parm == '9-7X AERO') {	
		document.getElementById('msrpdisclaimer1').innerHTML= discl;
	}
	else if (parm == '9-4X BIO POWER') {	
		document.getElementById('msrpdisclaimer1').innerHTML= discl;
	}
	else if (parm == '9-X BIOHYBRID') {	
		discl = "<layer id=\"msrpdisclaimer\" ><br>" + "* E85 is 85% ethanol, 15% gasoline. Visit <a href=\"javascript:poppupGreen();\" class=\"links_footer2\"> www.gm.com/e85</a> to see if there is an E85 station near you."  + "</layer>";
		document.getElementById('msrpdisclaimer1').innerHTML= discl;
	}
	else if (parm == 'parm') {	
		discl = "<layer id=\"msrpdisclaimer\" ><br>" + "* E85 is 85% ethanol, 15% gasoline. Visit <a href=\"javascript:poppupGreen();\" class=\"links_footer2\"> www.gm.com/e85</a> to see if there is an E85 station near you."  + "</layer>";
		document.getElementById('msrpdisclaimer1').innerHTML= discl;
	} else {
	try
	{
		document.getElementById('msrpdisclaimer1').innerHTML= oldDiscl;
	}
	catch(err){
	}
	}
	// alert(parm);		
	sectionWWSS = parm;
}


//Funcion for onclick on Features Offers 

function showHideOffersRow(currentRow){
	var arrModels =  new Array ("93s", "93c", "935", "95s", "95w", "97x");
	var limFor = 6;
	var count1 = 0;
	var count2 = 0;
	var currRow = "";
	 
	document.getElementById("trSummary93s").className ="divHidden";
	document.getElementById("trSummary93c").className ="divHidden";
	document.getElementById("trSummary935").className ="divHidden";
	document.getElementById("trSummary95w").className ="divHidden";
	document.getElementById("trSummary95s").className ="divHidden";
	document.getElementById("trSummary97x").className ="divHidden";
	document.getElementById("trDisclaimer95w1").className = "divHidden";
	
	if(currentRow == 'co_index'){
		document.getElementById("trSummary93s").className ="divVisible";
		document.getElementById("trSummary93c").className ="divVisible";
		document.getElementById("trSummary935").className ="divVisible";
		document.getElementById("trSummary95w").className ="divVisible";
		document.getElementById("trSummary95s").className ="divVisible";
		document.getElementById("trSummary97x").className ="divVisible";
	}
	else{
		document.getElementById(currentRow).className = "divVisible";
		if(currentRow.indexOf("95s") != -1){
			document.getElementById("trSummary95w").className ="divVisible";
		}
	}
	for(count1=0; count1 < limFor; count1++){
			try{
				for(count2=1; count2<5;count2++){
					currRow = "trDisclaimer" + arrModels[count1] + count2;
					if(document.getElementById(currRow)){
						document.getElementById(currRow).className = "divHidden";
					}else{
						break;
					}
				}
			}
			catch(errFor){
			}
	}
	
	if(currentRow == 'co_index'){
		for(count1=0; count1 < limFor; count1++){
			try{
				for(count2=1; count2<5;count2++){
					currRow = "trDisclaimer" + arrModels[count1] + count2;
					if(document.getElementById(currRow)){
						document.getElementById(currRow).className = "divVisible";
					}else{
						break;
					}
				}
			}
			catch(errFor){
			}
		}
	}  else{
			if(currentRow == "trSummary93s"){
				currRow = "trDisclaimer93s";
			} else if(currentRow == "trSummary93c"){
				currRow = "trDisclaimer93c";
			} else if(currentRow == "trSummary935"){
				currRow = "trDisclaimer935";
			} else if(currentRow == "trSummary95w"){
				currRow = "trDisclaimer95w";
			} else if(currentRow == "trSummary95s"){
				currRow = "trDisclaimer95s";
			} else {
				currRow = "trDisclaimer97x";
			}

			try{
				count1 = currRow;
				for(count2=1; count2<5;count2++){
					currRow = count1 + count2;
					if(document.getElementById(currRow)){
						document.getElementById(currRow).className = "divVisible";
						if(currRow.indexOf("95s") != -1){
							if(document.getElementById("trDisclaimer95w" + count2)){
								document.getElementById("trDisclaimer95w" + count2).className = "divVisible";
							}
						}
					}else{
						break;
					}
				}
			}
			catch(errFor){
			}
	}

	try{
			if(currentRow == "trSummary93s"){
				curCOTabImage = 'trSummary93s';
				document.getElementById("co_tab93s").src = '/images/co_93s_ne.gif';
			} else if(currentRow == "trSummary93c"){
				curCOTabImage = 'trSummary93c';
				document.getElementById("co_tab93c").src = '/images/co_93c_ne.gif';
			} else if(currentRow == "trSummary935"){
				curCOTabImage = 'trSummary935';
				document.getElementById("co_tab935").src = '/images/co_935_ne.gif';
			} else if(currentRow == "trSummary95s"){
				curCOTabImage = 'trSummary95s';
				document.getElementById("co_tab95s").src = '/images/co_95s_ne.gif';
			} else if(currentRow == "trSummary97x"){
				curCOTabImage = 'trSummary97x';
				document.getElementById("co_tab97x").src = '/images/co_97x_ne.gif';
			} else {
				curCOTabImage = 'co_tabindex';
				document.getElementById("co_tabindex").src = '/images/co_all_ne.gif';
			}
		
		if(document.getElementById("co_tab93s").srcindexOf('_ne') != -1){
			document.getElementById("co_tab93s").src = '/images/co_93s_off.gif';
		}
		
		if(document.getElementById("co_tab93c").srcindexOf('_ne') != -1){
			document.getElementById("co_tab93c").src = '/images/co_93c_off.gif';
		}
		
		if(document.getElementById("co_tab935").srcindexOf('_ne') != -1){
			document.getElementById("co_tab935").src = '/images/co_935_off.gif';
		}
		
		if(document.getElementById("co_tab95s").srcindexOf('_ne') != -1){
			document.getElementById("co_tab95s").src = '/images/co_95s_off.gif';
		}
		
		if(document.getElementById("co_tab97x").srcindexOf('_ne') != -1){
			document.getElementById("co_tab97x").src = '/images/co_97x_off.gif';
		}
		
		if(document.getElementById("co_tabindex").srcindexOf('_ne') != -1){
			document.getElementById("co_tabindex").src = '/images/co_all_off.gif';
		}
	}
	catch(err3){
	}
	

}


function showLocalOffers(zip)
{	
	if(document.getElementById("featuredOffersTab").className == "divHidden"){
		return;
	}
	
	if(zip == 'y2008'){
		document.getElementById("2007_8Content").className ="divVisible";
		document.getElementById("featuredOffers").className ="divHidden";
		document.getElementById("offersDesc").className ="divVisible";
		document.getElementById("Table14").className ="divVisible";
		document.getElementById("featuredOffersTab").className ="featOffersoff";
		document.getElementById("y2008").className ="year2008on";
		document.getElementById("currentOffersDiv").className="divVisible";
	} else if(zip == 'co_93s'){
		showHideOffersRow('trSummary93s');
	} else if(zip == 'co_93c'){
		showHideOffersRow('trSummary93c');
	} else if(zip == 'co_935'){
		showHideOffersRow('trSummary935');
	} else if(zip == 'co_95s'){
		showHideOffersRow('trSummary95s');
	} else if(zip == 'co_95w'){
		showHideOffersRow('trSummary95w');
	} else if(zip == 'co_97x'){
		showHideOffersRow('trSummary97x');
	} else if(zip == 'co_index'){
		showHideOffersRow('co_index');
	}
	else{
		document.getElementById("2007_8Content").className ="divHidden";
		document.getElementById("featuredOffers").className ="divVisible";
		document.getElementById("offersDesc").className ="divHidden";
		document.getElementById("Table14").className ="divHidden";
		document.getElementById("currentOffersDiv").className="divHidden";
		document.getElementById("featuredOffersTab").className ="featOfferson";
		// document.getElementById("y2007").className ="year2007off";
		document.getElementById("y2008").className ="year2008off";
		changeHrefToLD(zip,'SB','SB','saab');
		hideSpan();
		// Omniture
		pageid = "FeaturedOffers";
		getPageOmniture(pageid);
		void(s_gs(s_account));
	}
	
}	

function hide(offerId){
document.getElementById(offerId).style.display = 'none';
/*var w=600;
	var h=400;
	var x=(screen.width - w) / 2;
	var y=(screen.height - h) / 2;
	var win = window.open('', 'offerWin', 'resizable=0,scrollbars=0,status=no,width='+w+',height='+h+',left='+x+',top='+y);
	win.document.writeln("<html><head><link rel='Shortcut Icon' href='/favicon.ico' type='image/x-ico'/><link rel='stylesheet' type='text/css' media='screen' href='/c/06/pop.css'/></head><body><br /><div id='content'><div class='titlepop'>Current Offers</div><div class='imgpop'></div>" + document.getElementById(offerId).innerHTML + "><div id='close_window'><a href='javascript:self.close();'>close window</a></div></body></html>");
	win.document.close()*/
}


function show(offerId){
document.getElementById(offerId).style.display = 'block';

//alert(offerId);
	/*var w=460;
	var h=220;
	var x=(screen.width - w) / 2;
	var y=(screen.height - h) / 2;
	var win = window.open('', 'offerWin', 'resizable=0,scrollbars=0,status=no,width='+w+',height='+h+',left='+x+',top='+y);
	*/
//Omniture for See Details click.
try{
		s_lnk=true;
		s_linkType="e"; 
		s_prop1 = "";		
		s_prop3 = "";
		s_prop4 = "";
		s_prop6 = "";
		s_prop7 = "";
		s_prop8 = "";
		s_prop9 = "";
		s_prop10 = "";
		s_prop11 = "";
		s_prop12 = "";
		s_prop13 = "";
		s_prop14 = "";
		s_prop15 = "";
		s_prop16 = "";
		s_prop17 = "";
		s_prop18 = "";
		s_prop19 = "";
		s_prop20 = "";
		s_prop21 = "";
		s_prop22 = "";
		s_prop23 = "";
		s_prop24 = "";
		s_prop25 = "";
		s_prop26 = "";
		s_prop27 = "";
		s_prop28 = "";
		s_prop29 = "";
		s_prop30 = "";
		s_linkname = "SAAB | CURRENT OFFERS DETAILS | FEATURED OFFERS";
		s_linkName = "SAAB | CURRENT OFFERS DETAILS | FEATURED OFFERS";
		s_prop5="SAAB | CURRENT OFFERS DETAILS | FEATURED OFFERS";
		s_prop24="";
		s_prop25="";
		s_prop26 = "";
		s_prop27 =  "";
		s_pageName = "";
		s_prop2 = "";
		void(s_gs(s_account));	
}
catch(errAnc){}
	/*win.document.writeln("<html><head><link rel='stylesheet' type='text/css' href='/styles/popoffers.css' /></head><body><br /><div id='content'><div class='titlepop'>Current Offers</div><div class='imgpop'></div>" + document.getElementById(offerId).innerHTML + "<div id='close_window'><a href='javascript:self.close();'>close window</a></div></body></html>");
	win.document.close()*/
}

function hideSpan(){
	
	var spans = document.getElementsByTagName('span');
	for(var i=0; i < spans.length; ++i){
		spans[i].innerHTML="";
		}
}


function showTurboDisclaimer(type)
{
	var disc="<br />*The Manufacturer's Suggested Retail Price excludes <a href='http://www.gm.com/dfc/index.jsp' target='_blank' class='manufactLink'>destination freight charge</a>, tax, title, license, dealer fees and optional equipment. <a href='http://www.gm.com/dfc/index.jsp' target='_blank' class='manufactLink'>Click here to see all Saab vehicles' destination freight charges</a>.";
		disc= disc + "<br /><br />** Limited Availability.";
	
	if (type=="2")
	{
		disc += "<br /><br /> ** Limited Availability.  Performance Drivers.  Closed Course.";	
	}
		
	document.getElementById('msrpdisclaimer1').innerHTML = "<layer id='msrpdisclaimer' >" + disc + "</layer>";	
}


function readOfferPage(offerPage){
	var newText = "";
	var dlText = "";
	var temp = "";
	var temp2 = "";
	var temp5 = "a"
	var searchText = "no";
	var paste = "no";
	var deleteText = "no";
	
	for (i=0;i<offerPage.length-1;i++) {
		if(offerPage.charAt(i) == '<' && offerPage.charAt(i+1) == 'u'){	
			searchText = "yes";
			paste = "no";
		}
		if(searchText == "no" && deleteText == "no"){
			newText = newText + (offerPage.charAt(i));			
			if(offerPage.charAt(i) == '<' && offerPage.charAt(i+1) == 'u'){	
				searchText = "yes";
			}
			if(paste == "yes"){
				temp = offerPage.charAt(i+1) + offerPage.charAt(i+2) + offerPage.charAt(i+3) + offerPage.charAt(i+4) + offerPage.charAt(i+5) + offerPage.charAt(i+6)+ offerPage.charAt(i+7)+ offerPage.charAt(i+8)+ offerPage.charAt(i+9)+ offerPage.charAt(i+10)+ offerPage.charAt(i+11)+ offerPage.charAt(i+12)+ offerPage.charAt(i+13)+ offerPage.charAt(i+14)+ offerPage.charAt(i+15) + offerPage.charAt(i+16) + offerPage.charAt(i+17) ;
				if(temp == '<a class="details'){	
					newText = newText + dlText;
					dlText = "";	
				}
			}
		}else{
			if(deleteText == "yes"){
				temp5 = offerPage.charAt(i) + offerPage.charAt(i+1)  + offerPage.charAt(i+2) + offerPage.charAt(i+3);				
				if(temp5 == "/div"){	
					deleteText = "no"				
				}
			}else{
				dlText = dlText + (offerPage.charAt(i));
			}
		}
		if(offerPage.charAt(i-1) == 'l' && offerPage.charAt(i) == '>'){
			searchText = "no";
			paste = "yes";
		}

	} 
	return newText;
}

function displayWindow(w,h)
{
	var /*w, h,*/ l, t;
	//w = 400;
	//h = 200;
	l = 233;
	t = 618;
	// no title		        
	// displayFloatingDiv('windowcontent', '', w, h, l, t);
	// with title		        
	displayFloatingDiv('windowcontent', '', w, 190, l, t);
 }


function manageXWDTracking(){
try{
		s_lnk=true;
		s_linkType="e"; 
		s_prop1 = "";		
		s_prop2 = "";		
		s_prop3 = "";
		s_prop4 = "";
		s_prop6 = "";
		s_prop7 = "";
		s_prop8 = "";
		s_prop9 = "";
		s_prop10 = "";
		s_prop11 = "";
		s_prop12 = "";
		s_prop13 = "";
		s_prop14 = "";
		s_prop15 = "";
		s_prop16 = "";
		s_prop17 = "";
		s_prop18 = "";
		s_prop19 = "";
		s_prop20 = "";
		s_prop21 = "";
		s_prop22 = "";
		s_prop23 = "";
		s_prop24 = "";
		s_prop25 = "";
		s_prop26 = "";
		s_prop27 = "";
		s_prop28 = "";
		s_prop29 = "";
		s_prop30 = "";
		s_linkname = "SAAB | ABOUT SAAB | TECHNOLOGY";
		s_linkName = "SAAB | ABOUT SAAB | TECHNOLOGY";
		s_prop5="SAAB | ABOUT SAAB | TECHNOLOGY";
		s_prop24="";
		s_prop25="";
		s_prop26 = getTimeSystem();
		s_prop27 =  getDateSystem();
		s_pageName = "";
		void(s_gs(s_account));	
		window.location="http://" + location.host + "/saabjsp/xwdturbo/";
}
catch(errAnc){
}
	
}


function trackRequestBrochure(){
try{
		s_lnk=true;
		s_linkType="e"; 
		s_prop1 = "CERTIFIED PRE-OWNED";
		s_prop2 = "BROCHURE";
		s_prop3 = "CERTIFIED PRE-OWNED | BROCHURE";
		s_prop4 = "";
		s_prop6 = "";
		s_prop7 = "";
		s_prop8 = "";
		s_prop9 = "";
		s_prop10 = "";
		s_prop11 = "";
		s_prop12 = "";
		s_prop13 = "";
		s_prop14 = "";
		s_prop15 = "";
		s_prop16 = "";
		s_prop17 = "";
		s_prop18 = "";
		s_prop19 = "";
		s_prop20 = "";
		s_prop21 = "";
		s_prop22 = "";
		s_prop23 = "";
		s_prop24 = "";
		s_prop25 = "";
		s_prop26 = "";
		s_prop27 = "";
		s_prop28 = "";
		s_prop29 = "";
		s_prop30 = "CERTIFIED PRE-OWNED";
		s_linkname = "SAAB | LEFT NAV | CERTIFIED PRE-OWNED | BROCHURE";
		s_linkName = "SAAB | LEFT NAV | CERTIFIED PRE-OWNED | BROCHURE";
		s_prop5="SAAB | LEFT NAV | CERTIFIED PRE-OWNED | BROCHURE";
		s_prop24="";
		s_prop25="SAAB";
		s_prop26 = getTimeSystem();
		s_prop27 =  getDateSystem();
		s_pageName = "SAAB | CERTIFIED PRE-OWNED | BROCHURE";
		void(s_gs(s_account));	
}
catch(errAnc){
}

}

function popWindowPromo(promo) {
		winOptions = 'status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resize=no,screenx=10,screeny=10,top=10,left=10,status=0,menubar=0,scrollbars=1,width=830,height=550';
		var url = 'http://www.gm.com/loyalty/?brandId=sb'
		
		if(location.host.indexOf("saabusa.com") != -1){
 			url = 'http://www.gm.com/loyalty/?brandId=sb'
		} else if(location.host.indexOf("prod.gmgssm") != -1){
 			url = 'http://www.gm.com/loyalty/?brandId=sb'
		} 
		
		if(typeof promoOptions != "undefined"){
			if(promoOptions != ''){
				url = url  + '&' + promoOptions;
			}
		}
		
		if(promo != ''){
				url = url  + '&' + promo;
		}
		
		var temp = window.open(url, '100Promo', winOptions);
		temp.focus();
		
		s_lnk=true;
		s_linkType="e"; 
		s_pageName="";
		s_prop1 = "";
		s_prop2 = "";
		s_prop3 = "";
		s_prop4 = "";
		s_prop5 = "DIVISIONAL | OFFERS | FORM | LOYALTY OFFER LINK";
		s_linkName = "DIVISIONAL | OFFERS | FORM | LOYALTY OFFER LINK";
		s_linkname = "DIVISIONAL | OFFERS | FORM | LOYALTY OFFER LINK";
		s_prop6 = "";
		s_prop7 = "";
		s_prop8 = "";
		s_prop9 = "";
		s_prop10 = "";
		s_prop11 = "";
		s_prop12 = "";
		s_prop13 = "";
		s_prop14 = "";
		s_prop15 = "";
		s_prop16 = "";
		s_prop17 = "";
		s_prop18 = "";
		s_prop19 = "";
		s_prop20 = "";
		s_prop21 = "";
		s_prop22 = "";
		s_prop23 = "";
		s_prop28 = "";
		s_prop29 = "";
		s_prop30 = "";
		void(s_gs(s_account));
}

function getParameter( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}

function setDartTags(baal){
	try{
		var framex = document.getElementById('spotlightF');
		var axel = Math.random()+"";
		var a = axel * 10000000000000;
		if (baal == 'byo'){
			framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=sbyom285;cat=build905;ord='+ a + '?';
		}
		else if (baal == 'brochures'){
			framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=srabq763;cat=reque936;ord='+ a + '??';
		}		
		else if(baal == 'xwd'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=pgenu422;cat=saabt370;ord='+ a + '?';
		} else if(baal == 'turbocharger'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=pgenu422;cat=saabt954;ord='+ a + '?';
		} else if(baal == '93sPhotos'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=rphot917;cat=93sed255;ord='+ a + '?';
		}else if(baal == '93cPhotos'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=rphot917;cat=93cvt518;ord='+ a + '?';
		}else if(baal == 'txPhotos'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=rphot917;cat=turbo759;ord='+ a + '?';
		}else if(baal == '95sPhotos'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=rphot917;cat=95sed261;ord='+ a + '?';
		}else if(baal == '95wPhotos'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=rphot917;cat=95com998;ord='+ a + '?';
		}else if(baal == '97xPhotos'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=rphot917;cat=97xph333;ord='+ a + '?';
		}else if(baal == '935Photos'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=rphot917;cat=93com406;ord='+ a + '?';
		} else if(baal == '93s360'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=r360v956;cat=93sed572;ord='+ a + '?';
		}else if(baal == '93c360'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=r360v956;cat=93cvt025;ord='+ a + '?';
		}else if(baal == 'tx360'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=r360v956;cat=9xint344;ord='+ a + '?';
		}else if(baal == '95s360'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=r360v956;cat=95sed780;ord='+ a + '?';
		}else if(baal == '95w360'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=r360v956;cat=95com723;ord='+ a + '?';
		}else if(baal == '97x360'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=r360v956;cat=97x36347;ord='+ a + '?';
		}else if(baal == '935360'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=r360v956;cat=93com343;ord='+ a + '?';
		} else if(baal == '93sColors'){
				framex.src= 'http://fls.doubleclick.net/activityi;src=1139853;type=rcolo480;cat=93sed601;ord='+ a + '?';
<!-- End of DoubleClick Spotlight Tag: Please do not remove-->';
		}else if(baal == '93cColors'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=rcolo480;cat=93cvt963;ord='+ a + '?';
		}else if(baal == 'txColors'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=rcolo480;cat=turbo251;ord='+ a + '?';
		}else if(baal == '95sColors'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=rcolo480;cat=95sed682;ord='+ a + '?';
		}else if(baal == '95wColors'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=rcolo480;cat=95com045;ord='+ a + '?';
		}else if(baal == '97xColors'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=rcolo480;cat=97xco868;ord='+ a + '?';
		}else if(baal == '935Colors'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=rcolo480;cat=93com395;ord='+ a + '?';
		}else if(baal == '93sHome'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=rhome051;cat=93sed668;ord='+ a + '?';
		}else if(baal == '93cHome'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=rhome051;cat=93cvt661;ord='+ a + '?';
		}else if(baal == 'txHome'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=rhome051;cat=turbo134;ord='+ a + '?';
		}else if(baal == '95sHome'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=rhome051;cat=95sed733;ord='+ a + '?';
		}else if(baal == '95wHome'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=rhome051;cat=95com508;ord='+ a + '?';
		}else if(baal == '97xHome'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=rhome051;cat=97xbr697;ord='+ a + '?';
		}else if(baal == '935Home'){
				framex.src = 'http://fls.doubleclick.net/activityi;src=1139853;type=rhome051;cat=93com253;ord='+ a + '?';
		}		
	}
	catch(err){
	}
}


function closeGriffinWindow(){
	document.getElementById('GriffinSeo').style.display = 'none';
}
