'; var SGQuickLocale = { init: function (){ var loc = this.getCookie('localezone'); if(loc != "") { this.tweakSite(loc); } else { $.ajax({ url: '/getlocale.php', success: function (data) { SGQuickLocale.setCookie('localezone',data,300); SGQuickLocale.tweakSite(data); } }); } }, setCookie: function (cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays*24*60*60*1000)); var expires = "expires="+d.toUTCString(); document.cookie = cname + "=" + cvalue + "; " + expires + "; path=/"; }, getCookie: function(cname) { var name = cname + "="; var ca = document.cookie.split(';'); for(var i=0; iCAD$'); $('.plan-price-dollar').each( function () { var price = $(this).data('price'); if(price) { price = Math.ceil(price * 1.2); $(this).html (price) } } ); break; case 'NZ': $('.plan-dollar-sign').html('NZ$'); $('.plan-price-dollar').each( function () { var price = $(this).data('price'); if(price) { price = Math.ceil(price * 1.3); $(this).html (price) } } ); break; case 'EU': $('.plan-dollar-sign').html('€'); $('.plan-price-dollar').each( function () { var price = $(this).data('price'); if(price) { price = Math.ceil(price * 0.8); $(this).html (price) } } ); break; case 'AU': $('.plan-dollar-sign').html('A$'); $('.plan-price-dollar').each( function () { var price = $(this).data('price'); if(price) { price = Math.ceil(price * 1.2); $(this).html (price) } } ); break; } } }; $(function () { SGQuickLocale.init(); if( location.search.indexOf('cct=')>=0 ) { $('#testcc').show(); } if( location.search.indexOf('trf=')>=0 ) { $('.trfhide').hide(); $('.ppside').removeClass("col-md-5").addClass('col-md-1'); $('.ppmain').removeClass("col-md-7").addClass('col-md-11'); $('[name="sContact_Name"]').val("New User"); } });