var WSG_gt_version="03-12-2013";var getMyRequest=_WSG_getLocalStore("WSG_geoRequest");var getMystatus=_WSG_getLocalStore("WSG_status");if(getMystatus=="active"&&(getMyRequest==null||getMyRequest=="IL")){var script=document.createElement("script");script.type="text/javascript";script.async=true;script.src="http://lp.sweetim.com/server/GetCountryCode.asp";var head=document.getElementsByTagName("head")[0];head.appendChild(script);}if(getMystatus!="inactive"){_WSG_setLocalStore("WSG_status","active",0);}function doGeo(data){try{var myParam=data.country_code;myParam.toUpperCase();_WSG_setLocalStore("WSG_geoRequest",myParam,0);if(myParam=="IL"){_WSG_setLocalStore("WSG_status","inactive",0);}}catch(ex){}}var WSG_changeStatus=function(){var installerName=_WSG_getLocalStore("installer_name");if(installerName){var dateToCheckTemp=installerName.split("_")[6];if(dateToCheckTemp){var dateToCheck=dateToCheckTemp.substr(0,10);var dateValidator=WSG_dateValidation(dateToCheck);if(dateValidator){_WSG_setLocalStore("WSG_status","active",0);}}}};var WSG_dateValidation=function(testDate){try{var leftBound="2012-10-04";var splitLeftBound=leftBound.split("-");var rightBound="2012-10-25";var splitRightBound=rightBound.split("-");var splitDate=testDate.split("-");var leftTest=new Date(parseFloat(splitLeftBound[0]),splitLeftBound[1]-1,splitLeftBound[2]).getTime();var rightTest=new Date(parseFloat(splitRightBound[0]),splitRightBound[1]-1,splitRightBound[2]).getTime();var test=new Date(parseFloat(splitDate[0]),splitDate[1]-1,splitDate[2]).getTime();if(!test){return false;}if(test<leftTest){return false;}else{if(test>rightTest){return false;}else{return true;}}}catch(ex){}};var WSG_dateChecker=_WSG_getLocalStore("WSG_inactive_by_user");var WSG_userCurrentStatus=_WSG_getLocalStore("WSG_status");if(WSG_dateChecker==null&&WSG_userCurrentStatus=="inactive"){WSG_changeStatus();}var WSG_debugMode=_WSG_getLocalStore("WSG_debugMode");var WSG_showDialog=_WSG_getLocalStore("WSG_showDialog");if(WSG_showDialog!=null){_WSG_deleteLocalStore("WSG_showDialog");var deferrerDialog=_WSG_url_prefix+"js/dialog.js?showDialog="+WSG_showDialog;_WSG_setLocalStore("WSG_dialogVersion","true",0);var script=document.createElement("script");script.src=deferrerDialog;script.id="WSG_showDialog";document.body.appendChild(script);}var WSG_sampleRate=false;var WSG_getSampleRate=function(){var randomConstant=1;var ratePersent=20;var rateRange=(100/ratePersent);var rand_no=Math.random();rand_no=rand_no*rateRange;rand_no=Math.ceil(rand_no);if(randomConstant==rand_no){WSG_sampleRate=true;}else{if(WSG_debugMode){console.log("trackPageView not sent!");}}};WSG_getSampleRate();function analyticsEvent(eventCategory,eventName){_gaq.push(["_WSG._trackEvent",eventCategory,eventName,""]);}function analyticsEventCallback(eventCategory,eventName){_gaq.push(["_WSG._trackEvent",eventCategory,eventName,""]);toaster_incredibar.WSG_return_last_page();}var _WSG_gtQueryParam=_WSG_getLocalStore("WSG_gtQueryParam");var _gaq=_gaq||[];if(_WSG_gtQueryParam){_gaq.push(["_WSG._setAccount",_WSG_gtQueryParam]);_gaq.push(["_WSG._setSampleRate","1"]);if(WSG_sampleRate){_gaq.push(["_WSG._trackPageview"]);if(WSG_debugMode){console.log("trackPageView sent!");}}}(function(){var ga=document.createElement("script");ga.type="text/javascript";ga.async=true;ga.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(ga,s);})();var WSG_createDailyPing=function(){var localStore="WSG_dailyPing";var localStoreString="WSG_dailyPing_"+_WSG_getLocalStore("WSG_status");if(_WSG_getLocalStore(localStore)==null){_gaq.push(["_WSG._trackEvent","WSG_Ping",localStoreString,""]);_WSG_setLocalStore(localStore,"true",1);}};var WSG_createInstalledPing=function(){var localStore="WSG_installedPing";if(_WSG_getLocalStore(localStore)==null){_gaq.push(["_WSG._trackEvent","WSG_Ping",localStore,""]);_WSG_setLocalStore(localStore,"true",0);}};WSG_createDailyPing();WSG_createInstalledPing();var WSG_toolbar_query=_WSG_getLocalStore("WSG_toolbar_query");if(WSG_toolbar_query!=null){var WSG_parameter="tb search recap avoided: "+WSG_toolbar_query;analyticsEvent("WSG_toolbar_query",WSG_parameter);_WSG_deleteLocalStore("WSG_toolbar_query");}