/*
 * merged files jquery.cookie.m.js, default.m.js, benefit.m.js, swfobject.m.js, ad_loader.m.js
 * http://my2010.suzukiauto.com/_cj/(filename)
 */

/* --- jquery.cookie.m.js --- */
/*
 * minified javascript file
 * http://my2010.suzukiauto.com/_cj/jquery.cookie.js
 */


jQuery.cookie=function(name,value,options){if(typeof value!='undefined'){options=options||{};if(value===null){value='';options.expires=-1;}
var expires='';if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){var date;if(typeof options.expires=='number'){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000));}else{date=options.expires;}
expires='; expires='+date.toUTCString();}
var path=options.path?'; path='+options.path:'';var domain=options.domain?'; domain='+options.domain:'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('');}else{var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;i<cookies.length;i++){var cookie=jQuery.trim(cookies[i]);if(cookie.substring(0,name.length+1)==(name+'=')){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break;}}}
return cookieValue;}};
/* --- default.m.js --- */
/*
 * minified javascript file
 * http://my2010.suzukiauto.com/_cj/default.js
 */


$(function(){if(!($.browser.msie&&/msie 6.0/i.test(navigator.userAgent))){$.fn.bgIframe=$.fn.bgiframe=function(s){};}
if($.browser.msie){$('#top-nav-flashcontent').bind('mouseout',topNavStageMouseOut);}
$('.subnav li').hover(function(){return navlink_over_out(this,true);},function(){return navlink_over_out(this,false);});get_legal();});var topnavouttimer;function topNavStageMouseOut(){var topnavflash;if((topnavflash=getFlashMovieObject('topnav'))&&topnavflash.onStageMouseOut){topnavflash.onStageMouseOut();}else{clearTimeout(topnavouttimer);topnavouttimer=setTimeout(topNavStageMouseOut,100);}}
function setLeftNavFlashActiveItem(label){var leftNavFlash=getFlashMovieObject('leftnav');if(!leftNavFlash){setTimeout(function(){setLeftNavFlashActiveItem(label);},100);return;}
if(!leftNavFlash.leftNavSetActiveItem){setTimeout(function(){setLeftNavFlashActiveItem(label);},100);return;}
leftNavFlash.leftNavSetActiveItem(label);}
var thumbRollDelay=0;var selectThumbOffDelay=0;var selectThumbOffTimer=null;var thumbRollTimer=null;function do_select_thumb(year,mode){if(mode){clearTimeout(selectThumbOffTimer);$('#model-thumbs-'+year+'>div').addClass("select");}else{if(selectThumbOffDelay){selectThumbOffTimer=setTimeout(function(){$("#model-thumbs-"+year+">div").removeClass("select");},selectThumbOffDelay);}else{$('#model-thumbs-'+year+'>div').removeClass('select');}}}
function thumbRollModel(model){if(model){$('.thumb-specs a').removeClass("over");$('.thumb-specs .'+model).addClass("over");}}
function popupWin(page,width,height){winprops="toolbar=0,status=1,scrollbars=1,resizable=1,width="+width+", height="+height;popup=window.open(page,"popup",winprops);popup.focus();}
function only_numbers(event){var key;if(window.event){key=window.event.keyCode;}else if(event){key=event.which;}else{return true;}
if(key>=48&&key<=57||key==8||key==13){return true;}else{return false;}}
function flashPassVar(varName,varValue,movieName){var flashMovie=getFlashMovieObject(movieName)
if(flashMovie)
flashMovie.SetVariable(varName,varValue);}
function flashGetVar(varName,movieName){var flashMovie=getFlashMovieObject(movieName);return flashMovie.GetVariable(varName);}
function getFlashMovieObject(movieName)
{if(window.document[movieName]){return window.document[movieName];}
if(navigator.appName.indexOf("Microsoft Internet")==-1){if(document.embeds&&document.embeds[movieName]){return document.embeds[movieName];}}else{return document.getElementById(movieName);}}
function do_title(title,elem,align,html){elem=elem||"page-title";var so=new SWFObject(ROOT_DIR+"_m/venom/page_title.swf","flash-page-title-"+elem.replace(/^[^0-9]*/,''),"690","22","9","#cccccc");so.addVariable("page_title",title);so.addVariable("root_dir",ROOT_DIR);so.addVariable("fonts","_m/flash/fonts/all.swf");so.addVariable("align",align);so.addVariable("htmlParser",html?1:0);so.addParam("wmode","transparent");so.addParam("quality","high");so.addParam("allowScriptAccess","always");so.write(elem);}
function getCurrentUserZip(){return $.cookie('userZip');}
function resizeFlashContent(height){if(height<90)
{height=90;}
$("#topnav").attr({height:height}).css({height:height+"px"});$('#top-nav-flashcontent').bgiframe();return height;}
function resizeLeftNav(width,height){$("#leftnav").attr({height:height}).css({height:height+"px"});return height;}
function navlink_over_out(element,over){var classId=element.className.split(" ")[0];var subnavSpan=$("."+classId+" span");if(!subnavSpan.hasClass('cur_clicked')){if(over){subnavSpan.addClass('cur');}else{subnavSpan.removeClass('cur');}}}
function get_legal(){var legal_list=[];$(".legal-mark").each(function(){legal_list.push($(this).attr('name'));});if(legal_list.length){$.getJSON('/2009/_includes/_legal.php',{"legal_list[]":legal_list},fill_legal);}}
function fill_legal(json){$(".legal-mark").each(function(i){this.title=json[$(this).attr('name')][1];$(this).html("["+json[$(this).attr('name')][0]+"]");});$('#legal-glossary').html("");for(i in json){$('#legal-glossary').append("<p>["+json[i][0]+"] "+json[i][1]+"</p>");}}
/* --- benefit.m.js --- */
/*
 * minified javascript file
 * http://my2010.suzukiauto.com/_cj/benefit.js
 */


var jOverlay;var jLightbox;var lightboxWidth=490;var lightboxHeight=350;var fBenefit;var popUpID=1;var lightboxZindex=9999999;var benefitSWF;var ROOT_DIR="/";$(function(){jLightbox=$('#lightbox');jOverlay=$('<div>').attr('id','overlay').css({position:'absolute',top:0,left:0,zIndex:lightboxZindex-1,width:'100%'}).insertAfter(jLightbox);fBenefit=getFlashMovieObject('benefitFlash');});var displayLightbox=function(on){var display=on?'block':'none';var arrayPageSize=getPageSize();if(!on){if(global_type=="flash"){fBenefit.shutUp();}
jOverlay.css('display',display);jLightbox.css('display',display);return;}
var winWidth=arrayPageSize[0];var winHeight=arrayPageSize[1];var xScroll=arrayPageSize[2];var yScroll=arrayPageSize[3];var xOffset=(winWidth-lightboxWidth)/2+xScroll;var yOffset=(winHeight-lightboxHeight)/2+yScroll;jOverlay.css('height',Math.max($('#container').height(),$('body').height())).css('width',Math.max($('#container').width(),$('body').width())).unbind('click').click(function(){displayLightbox(false);return false;}).css('display',display).bgiframe();jLightbox.css('left',xOffset).css('top',yOffset).css('display',display);if(benefitSWF){setTimeout(function(){fBenefit.loadSWF(benefitSWF);},1000);}}
var benefitImagePath=ROOT_DIR+"_m/shopping_tools/benefit/resource/";var error;var benefitResponse={};var makeLinksInterval=150;var makeLinksMaxTerms=1;$(function(){if(window.benefitNoLinks)return;var path=window.location.href.substr(window.location.href.indexOf("/",8)+1);$.getJSON(ROOT_DIR+"shopping_tools/benefit/get_benefit_list.php",{url:path},function(data){makeLinks(data,0);});});var fillPopup=function(json){benefitResponse[json.id]=json;global_type=json.type;switch(json.type){case'flash':benefitSWF=benefitImagePath+json.URI;$('#benefitflashcontainer').css({display:'block'});$('#lightbox img').css({display:'none'});break;case'image':benefitSWF=false;$('#lightbox img').attr({src:benefitImagePath+json.URI,alt:json.name}).css({display:'block'});$('#benefitflashcontainer').css({display:'none'});break;default:}
$('#lightbox .name').html(json.name);$('#lightbox .description').html(json.description);jLightbox.css('width',lightboxWidth);displayLightbox(true);}
var loadBenefit=function(elem,id){if(benefitResponse[id]){fillPopup(benefitResponse[id]);return;}
$.getJSON(ROOT_DIR+"shopping_tools/benefit/get_benefit.php",{benefit:id},fillPopup);}
var makeLinks=function(json,skip){var contents=$('#inner');if(contents.get(0)==undefined){return;}
var numTerms=0;for(index in json.data){numTerms++;if(numTerms<=skip)continue;if(numTerms>(makeLinksMaxTerms*1+skip*1)){setTimeout(function(){makeLinks(json,makeLinksMaxTerms*1+skip*1);},makeLinksInterval);return;}
var dataRE=json.data[index].name
dataRE=escapeRegEx(dataRE);dataRE=dataRE.replace(/(-|[ ])/,'(-|[ ])?');dataRE=dataRE.replace(/(&reg;|&trade;|&copy;)/,'($1|[^ ])?');var end=dataRE.substring(dataRE.length-1,dataRE.length);dataRE=new RegExp("\\b("+dataRE+")"+(end.match(/^.\b$/)?"\\b":''),"i");WalkNodes(contents.get(0),dataRE,json.data[index].id);}}
function WalkNodes(oNode,rSearch,iBenefitId){var i,oNodeVal;oNodeVal=oNode.nodeValue;if(!oNode.hasChildNodes()){if(oNode.nodeType==3){var match=oNodeVal.match(rSearch);if(match){match=match[0];var startPos=oNodeVal.indexOf(match);if(startPos!=0){oNode.splitText(startPos);oNode=oNode.nextSibling;}
var endPos=match.length;if(endPos!=oNodeVal.length){oNode.splitText(endPos);}
var benefitLink=$('<span></span>').insertBefore(oNode).append(oNode).addClass("benefit").click(function(){loadBenefit(this,iBenefitId);});if($.browser.msie&&/msie 6.0/i.test(navigator.userAgent)){benefitLink.hover(function(){$(this).addClass('benefitonhover');},function(){$(this).removeClass('benefitonhover');});}}}}else if(oNode.tagName.toLowerCase()!='a'&&oNode.className.indexOf('benefit')==-1){var children=oNode.childNodes;var length=children.length;for(i=0;i<length;i++){WalkNodes(children[i],rSearch,iBenefitId);}}
return;}
function escapeRegEx(text){var sRE=/(\\|\^|\$|\*|\+|\?|\.|\(|\)|\||\{|\}|\[|\])/ig;return text.replace(sRE,"\\$1");}
function f_filterResults(n_win,n_docel,n_body){var n_result=n_win?n_win:0;if(n_docel&&(!n_result||(n_result>n_docel)))
n_result=n_docel;return n_body&&(!n_result||(n_result>n_body))?n_body:n_result;}
function getPageSize(){var windowWidth,windowHeight,xScroll,yScroll;yScroll=f_filterResults(window.pageYOffset?window.pageYOffset:0,document.documentElement?document.documentElement.scrollTop:0,document.body?document.body.scrollTop:0);xScroll=f_filterResults(window.pageXOffset?window.pageXOffset:0,document.documentElement?document.documentElement.scrollLeft:0,document.body?document.body.scrollLeft:0);windowWidth=f_filterResults(window.innerWidth?window.innerWidth:0,document.documentElement?document.documentElement.clientWidth:0,document.body?document.body.clientWidth:0);windowHeight=f_filterResults(window.innerHeight?window.innerHeight:0,document.documentElement?document.documentElement.clientHeight:0,document.body?document.body.clientHeight:0);arrayPageSize=new Array(windowWidth,windowHeight,xScroll,yScroll);return arrayPageSize;}
/* --- swfobject.m.js --- */
/*
 * minified javascript file
 * http://my2010.suzukiauto.com/_cj/swfobject.js
 */


if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;var _99=document.title;n.innerHTML=this.getSWFHTML();document.title=_99;return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return"";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
/* --- ad_loader.m.js --- */
/*
 * minified javascript file
 * http://my2010.suzukiauto.com/_cj/ad_loader.js
 */


AdLoader.prototype=new Object();AdLoader.prototype.constructor=AdLoader;AdLoader.prototype.addScriptTrigger=function(newJavascriptFile){this.scriptFileQueue.push(newJavascriptFile);}
AdLoader.prototype.addFunctionTrigger=function(newFunction){this.functionQueue.push(newFunction);}
AdLoader.prototype.waitForMedia=function(){var imagesLoaded=SWFsLoaded=true;images=document.getElementsByTagName('img');for(i=0;i<images.length;i++){if(images[i].complete==false){suAutoJSLoader.suAutoImageMaxWait++;if(suAutoJSLoader.suAutoImageMaxWait<=8){imagesLoaded=false;}}}
if(suAutoJSLoader.swfCount>0){suAutoJSLoader.suAutoSWFMaxWait++;if(suAutoJSLoader.suAutoSWFMaxWait<=20){SWFsLoaded=false;}}
if(imagesLoaded==false||SWFsLoaded==false){setTimeout("suAutoJSLoader.waitForMedia()",200);}else{suAutoJSLoader.event_LoadAdverts();}}
AdLoader.prototype.event_LoadAdverts=function(){for(i=0;i<suAutoJSLoader.functionQueue.length;i++){suAutoJSLoader.functionQueue[i]();}
for(i=0;i<suAutoJSLoader.scriptFileQueue.length;i++){jQuery.getScript(suAutoJSLoader.scriptFileQueue[i]);}}
AdLoader.prototype.initNumSWFs=function(){suAutoJSLoader.swfCount=2;if(!$('#mats').size()&&!$('#flash-homepage').size()){suAutoJSLoader.swfCount++;}}
AdLoader.prototype.loadAdverts=function(jQueryReference){suAutoJSLoader.initNumSWFs();suAutoJSLoader.waitForMedia();}
function suAutoMenuLoaded(type){suAutoJSLoader.swfCount--;}
function AdLoader(){this.functionQueue=new Array();this.scriptFileQueue=new Array();this.suAutoSWFMaxWait=0;this.suAutoImageMaxWait=0;this.swfCount=0;function AdLoader(){}}
var suAutoJSLoader=new AdLoader();$(document).ready(suAutoJSLoader.loadAdverts);
