EJV1_configCart(0); var EJEJC_CPOP = false; var EJEJC_ECOM = true; var EJEJC_INCHK = false; var EJEJC_INITCSS = true; var EJEJC_POSTCALL = false; var EJEJC_BGCOLOR = "#000"; var EJEJC_OPACITY = 60; var EJEJC_WIDTH = 700; var EJEJC_HEIGHT = 415; var EJEJC_BRDRCOLOR = "#444"; var EJEJC_BEACON = ''; var EJEJC_STATUS = ''; var EJEJC_CDOMAIN = ''; var EJEJC_CDAYS = 1; var EJEJC_DG = false; var EJEJC_DOMAIN = EJEJC_scriptDomain(); var EJEJC_PROT = "https://"; var EJEJC_ver = 28; var EJEJC_clnt; var EJEJC_ga = 'none'; var EJEJC_iframeContentIdNm = ''; var EJEJC_shw_ldng = true; var EJEJC_te = new Array(); if (typeof window.location.protocol != "undefined") { if (window.location.protocol.indexOf("http:") === 0) { EJEJC_PROT = "http://" } } ejejc_jQuery(document).ready(function() { ejejc_jQuery('a.ej_ejc_ithkbx').click(function() { return EJEJC_ilc(this) }); ejejc_jQuery('input.ej_ejc_ithkbx').click(function() { return EJEJC_ilc(this.parentNode) }); ejejc_jQuery('a.ej_ejc_jthkbx').click(function() { return EJEJC_jlc(this) }); ejejc_jQuery('input.ej_ejc_jthkbx').click(function() { return EJEJC_jlc(this.parentNode) }); ejejc_jQuery('a.ec_ejc_thkbx,input.ec_ejc_thkbx').each(function(i) { if (ejejc_jQuery(this).attr("href")) { if (!ejejc_jQuery(this).attr("onClick")) { ejejc_jQuery(this).click(function() { return EJEJC_lc(this) }) } } else { if (!ejejc_jQuery(this).attr("onClick")) { ejejc_jQuery(this).click(function() { return EJEJC_lc(this.parentNode) }) } if (this.parentNode) { if (ejejc_jQuery(this.parentNode).attr("action")) { if (!ejejc_jQuery(this.parentNode).attr("onSubmit")) { ejejc_jQuery(this.parentNode).submit(function() { return EJEJC_lc(this) }) } } } } }); if (EJEJC_ECOM) { if (typeof _gat != "undefined" && typeof ejGATracker != "undefined") { EJEJC_ga = 'ga'; EJEJC_loadContent(EJEJC_PROT + 'checkout.google.com/files/digital/ga_post.js', 'ejejcgcscript') } else if (window.urchinTracker && typeof _ulink != "undefined") { if (_ulink == "1") { EJEJC_ga = 'urchin'; EJEJC_loadContent(EJEJC_PROT + 'checkout.google.com/files/digital/urchin_post.js', 'ejejcgcscript') } } } }); function EJEJC_tev(v) { try { var e = document.getElementsByTagName('embed'); if (v == false) { EJEJC_te.length = 0; for (var i = 0; i < e.length; i++) { if (e[i].getAttribute("wmode") != 'transparent' && e[i].getAttribute("wmode") != 'opaque' && e[i].style.visibility != 'hidden' && e[i].style.display != 'none') { EJEJC_te[i] = true; e[i].style.visibility = 'hidden' } } } else { for (var i = 0; i < e.length; i++) { if (EJEJC_te[i]) { e[i].style.visibility = 'visible' } } } } catch (e) {} } function EJEJC_jlc(a) { var r; r = EJEJC_cmn(a, "j", false); if (typeof r != "undefined") { return r } } function EJEJC_ilc(a) { var r; r = EJEJC_cmn(a, "i", false); if (typeof r != "undefined") { return r } } function EJEJC_cmn(a, b, c) { var m; m = false; var n; n = navigator.appVersion.toLowerCase(); if (n.indexOf("mobile") != -1 || n.indexOf("mini") != -1 || n.indexOf("msie 5.") != -1 || n.indexOf("msie 4.") != -1 || n.indexOf("android") != -1) { m = true } if (a.href) { if (m) { window.open(a.href) } else { EJEJC_show(a.href, b, c) } try { a.blur() } catch (e) {} return false } else if (a.action) { actOnForm(m, a, b, c); return false } else if (typeof a == 'object') { a = findForm(a); if (a != false) { actOnForm(m, a, b, c); return false } else { return true } } else { if (a.indexOf('http') === 0) { if (m) { window.open(a) } else { EJEJC_show(a, b, c) } } else { return true } } } function findForm(a) { if (a.action && a.action.indexOf("gb.php") != -1) { return (a) } else { if (a.parentNode) { return findForm(a.parentNode) } else { return false } } } function actOnForm(m, a, b, c) { if (m) { a.submit() } else { var l; var i; l = a.action; //swastik - 2018-09-24 11:50:00 IST, fix for missing ? when form fields are appended to action if(l.indexOf("?") == -1) l = l+"?" for (i = 0; i < a.length; i++) { if (a.elements[i].value) { if (a.elements[i].type == 'radio' && a.elements[i].checked != true) continue; l = l + '&' + a.elements[i].name + '=' + encodeURIComponent(a.elements[i].value) } } EJEJC_show(l, b, c) } } function EJEJC_show(b, c, d) { try { var t; if (EJEJC_ga == 'urchin') { t = b.substring(7); urchinTracker(t) } else if (EJEJC_ga == 'ga') { t = b.substring(7); ejGATracker._trackPageview(t) } var f = "
Close
"; var g = "overflow-x:hidden;overflow:auto;scrollbar-face-color: #f4f4f0; scrollbar-shadow-color: #d0d0d0; scrollbar-highlight-color: #FFFFFF; scrollbar-3dlight-color: #4F4F82; scrollbar-darkshadow-color: #4F4F82; scrollbar-arrow-color: #666666; scrollbar-track-color: #CCCCCC;"; var h = ''; var i = EJEJC_OPACITY / 100; var j = EJEJC_HEIGHT - 25; var k = new Date(); if (d == true) { b = EJEJC_cartify(b) } if (document.getElementById("EJEJC_overlay") == null) { EJEJC_tev(false); if (navigator.appVersion.toLowerCase().indexOf("msie 6.") != -1) { h += "" } h += "
"; h += "
"; ejejc_jQuery("body").append(h); ejejc_jQuery("#EJEJC_overlay").click(EJEJC_remove) } EJEJC_overlaySize(); if (b.indexOf("?") === -1) { b = b + '?' } if (c == "j") { b = b + "&jsod=1&" + k.getTime(); if (document.getElementById("EJEJC_iframeContent") == null) { ejejc_jQuery("#EJEJC_window").append(f + "
") } } else { b = b + "&iframe=1&" + k.getTime(); EJEJC_iframeContentIdNm = "R" + Math.round(Math.random() * 1000) + "T" + k.getTime(); document.getElementById("EJEJC_window").innerHTML = f + "" } EJEJC_pos(); ejejc_jQuery(window).resize(function() { EJEJC_overlaySize(); EJEJC_pos() }); ejejc_jQuery(window).scroll(EJEJC_pos); ejejc_jQuery("#EJEJC_closeWindowButton").click(EJEJC_remove); document.onkeyup = function(e) { if (e == null) { var a = event.keyCode } else { var a = e.which; if (!a) { var a = e.keyCode } } if (a == 27) { EJEJC_remove() } }; if (c == "j") { EJEJC_loadContent(b, 'ejejcscript') } } catch (e) {} } function EJEJC_ldng() { var t; t = document.getElementById("EJEJC_iframeContent"); if (t) { t.innerHTML = "
Loading
"; ejejc_jQuery("#EJEJC_iframeContent").css('overflow-y', 'hidden') } } function EJEJC_remove() { ejejc_jQuery("#EJEJC_overlay").unbind(); ejejc_jQuery("#EJEJC_closeWindowButton").unbind(); ejejc_jQuery("#EJEJC_window").fadeOut("fast", function() { ejejc_jQuery('#EJEJC_window,#EJEJC_overlay,#EJEJC_HideSelect').unbind().remove() }); document.onkeyup = ""; EJEJC_tev(true); return false } function EJEJC_detectMacXFF() { var a = navigator.userAgent.toLowerCase(); if (a.indexOf('mac') != -1 && a.indexOf('firefox') != -1) { return true } } function EJEJC_overlaySize() { if (window.innerHeight && window.scrollMaxY || window.innerWidth && window.scrollMaxX) { yScroll = window.innerHeight + window.scrollMaxY; xScroll = window.innerWidth + window.scrollMaxX; var a = document.documentElement; var b = (a && a.clientWidth) || document.body.clientWidth || window.innerWidth || self.innerWidth; var c = (a && a.clientHeight) || document.body.clientHeight || window.innerHeight || self.innerHeight; xScroll -= (window.innerWidth - b); yScroll -= (window.innerHeight - c) } else if (document.body.scrollHeight > document.body.offsetHeight || document.body.scrollWidth > document.body.offsetWidth) { yScroll = document.body.scrollHeight; xScroll = document.body.scrollWidth } else { yScroll = document.body.offsetHeight; xScroll = document.body.clientWidth } ejejc_jQuery("#EJEJC_overlay").css({ "height": yScroll + "px", "width": xScroll + "px" }); if (document.getElementById("EJEJC_HideSelect") != null) { ejejc_jQuery("#EJEJC_HideSelect").css({ "height": yScroll + "px", "width": xScroll + "px" }) } } function EJEJC_pos() { var a = EJEJC_getPageSize(); var b = EJEJC_getPageScrollTop(); ejejc_jQuery("#EJEJC_window").css({ width: EJEJC_WIDTH + "px", left: (b[0] + (a[0] - EJEJC_WIDTH) / 2) + "px", top: (b[1] + (a[1] - EJEJC_HEIGHT) / 2) + "px" }) } function EJEJC_getPageScrollTop() { var a; var b; if (self.pageYOffset || self.pageXOffset) { a = self.pageYOffset; b = self.pageXOffset } else if (document.documentElement && document.documentElement.scrollTop || document.documentElement.scrollLeft) { a = document.documentElement.scrollTop; b = document.documentElement.scrollLeft } else if (document.body) { a = document.body.scrollTop; b = document.body.scrollLeft } arrayPageScroll = new Array(b, a); return arrayPageScroll } function EJEJC_getPageSize() { var a = document.documentElement; var w = document.body.clientWidth || window.innerWidth || self.innerWidth || (a && a.clientWidth); var h = window.innerHeight || self.innerHeight || (a && a.clientHeight) || document.body.clientHeight; arrayPageSize = new Array(w, h); return arrayPageSize } function EJEJC_setCookie(a, b) { var t = new Date(); t.setTime(t.getTime()); var e = new Date(t.getTime() + (EJEJC_CDAYS * 24 * 60 * 60 * 1000)); var d; d = document.domain; var c; c = EJEJC_CDOMAIN; if (c == 'true') {} else if (c) { if (c.indexOf(".") > 0) { c = c.toLowerCase(); if (d.indexOf(c) + c.length == d.length) { d = c } } else {} } else { d = EJEJC_baseDomain(d) } document.cookie = a + "=" + encodeURIComponent(b) + ";expires=" + e.toGMTString() + ";path=/;domain=" + d + ";" } function EJEJC_gc(a) { var b = a + "="; var d = document.cookie.split(';'); for (var i = 0; i < d.length; i++) { var c = d[i]; while (c.charAt(0) == ' ') c = c.substring(1, c.length); if (c.indexOf(b) == 0) return c.substring(b.length, c.length) } return null } function EJEJC_scriptDomain() { var d; var e; var i; var a; var b; b = 'wwww.e-junkie.com'; try { var e = document.getElementsByTagName('script'); for (var i = 0; i < e.length; i++) { if (e[i]) { d = e[i].src.split(/\//); if (d) { if (d.length == 5) { if ((d[3] == 'ecom') && (d[4].substring(0, 3) == 'box')) { a = EJEJC_baseDomain(d[2]); if (a == 'e-junkie.com' || a == 'fatfreecart.com' || a == 'fatfreecartpro.com') { b = d[2]; break } } } else if (d.length == 4) { if ((d[2] == 'ecom') && (d[3].substring(0, 3) == 'box')) { a = EJEJC_baseDomain(d[1]); if (a == 'e-junkie.com' || a == 'fatfreecart.com' || a == 'fatfreecartpro.com') { b = d[1]; break } } } } } } } catch (e) {} return (b) } function EJEJC_baseDomain(d) { var e; var s; var l; e = d.split(/\./); l = e.length; if (l <= 2) { s = d } else { s = e[l - 2] + "." + e[l - 1]; if (e[l - 1].length == 2 || s == "blogspot.com" || s == "wordpress.com") { s = e[l - 3] + "." + s } } return (s) } function EJEJC_loadContent(a, b) { if (typeof(b) == "undefined") { b = 'ejejcscript' } if (EJEJC_shw_ldng) EJEJC_ldng(); var c = document.getElementsByTagName('head').item(0); try { var d = document.getElementById(b); if (d) { if (navigator.appVersion.toLowerCase().indexOf("msie 6.") != -1) { if (EJEJC_getbase() == null) { c.removeChild(d) } } else { c.removeChild(d) } } } catch (e) {} script = document.createElement('script'); script.src = a; script.type = 'text/javascript'; script.id = b; c.appendChild(script) } function EJEJC_getbase() { var a = document.all.tags('BASE'); return ((a && a.length) ? a[0].href : null) } if (window.EJEJC_config) EJEJC_config(); if (EJEJC_INITCSS) { ejejc_jQuery("html").css('min-height', '100%').css('height', 'auto').css('height', '100%').css('padding', '0').css('margin', '0'); ejejc_jQuery("body").css('min-height', '100%').css('height', 'auto').css('height', '100%').css('padding', '0').css('margin', '0') } try { if (EJEJC_baseDomain(document.domain) == 'pediasleep.com') { EJEJC_DG = true } } catch (e) {} if (EJEJC_ECOM) { //EJEJC_loadContent(EJEJC_PROT + EJEJC_DOMAIN + '/ecom/boxec28_enc.js', 'ejejcecomscript'); var ejejc_multi=new Array(); var ejejc_multi_pos=0; ejejc_jQuery.fn.highlightFade = function(settings) { var o = (settings && settings.constructor == String) ? {start: settings} : settings || {}; var d = ejejc_jQuery.highlightFade.defaults; var i = o['interval'] || d['interval']; var a = o['attr'] || d['attr']; var ts = { 'linear': function(s,e,t,c) { return parseInt(s+(c/t)*(e-s)); }, 'sinusoidal': function(s,e,t,c) { return parseInt(s+Math.sin(((c/t)*90)*(Math.PI/180))*(e-s)); }, 'exponential': function(s,e,t,c) { return parseInt(s+(Math.pow(c/t,2))*(e-s)); } }; var t = (o['iterator'] && o['iterator'].constructor == Function) ? o['iterator'] : ts[o['iterator']] || ts[d['iterator']] || ts['linear']; if (d['iterator'] && d['iterator'].constructor == Function) t = d['iterator']; return this.each(function() { if (!this.highlighting) this.highlighting = {}; var e = (this.highlighting[a]) ? this.highlighting[a].end : ejejc_jQuery.highlightFade.getBaseValue(this,a) || [255,255,255]; var c = ejejc_jQuery.highlightFade.getRGB(o['start'] || o['colour'] || o['color'] || d['start'] || [255,255,128]); var s = ejejc_jQuery.speed(o['speed'] || d['speed']); var r = o['final'] || (this.highlighting[a] && this.highlighting[a].orig) ? this.highlighting[a].orig : ejejc_jQuery.curCSS(this,a); if (o['end'] || d['end']) r = ejejc_jQuery.highlightFade.asRGBString(e = ejejc_jQuery.highlightFade.getRGB(o['end'] || d['end'])); if (typeof o['final'] != 'undefined') r = o['final']; if (this.highlighting[a] && this.highlighting[a].timer) window.clearInterval(this.highlighting[a].timer); this.highlighting[a] = { steps: ((s.duration) / i), interval: i, currentStep: 0, start: c, end: e, orig: r, attr: a }; ejejc_jQuery.highlightFade(this,a,o['complete'],t); }); }; ejejc_jQuery.highlightFade = function(e,a,o,t) { e.highlighting[a].timer = window.setInterval(function() { var newR = t(e.highlighting[a].start[0],e.highlighting[a].end[0],e.highlighting[a].steps,e.highlighting[a].currentStep); var newG = t(e.highlighting[a].start[1],e.highlighting[a].end[1],e.highlighting[a].steps,e.highlighting[a].currentStep); var newB = t(e.highlighting[a].start[2],e.highlighting[a].end[2],e.highlighting[a].steps,e.highlighting[a].currentStep); ejejc_jQuery(e).css(a,ejejc_jQuery.highlightFade.asRGBString([newR,newG,newB])); if (e.highlighting[a].currentStep++ >= e.highlighting[a].steps) { ejejc_jQuery(e).css(a,e.highlighting[a].orig || ''); window.clearInterval(e.highlighting[a].timer); e.highlighting[a] = null; if (o && o.constructor == Function) o.call(e); } },e.highlighting[a].interval); }; ejejc_jQuery.highlightFade.defaults = { start: [255,255,128], interval: 50, speed: 400, attr: 'backgroundColor' }; ejejc_jQuery.highlightFade.getRGB = function(c,d) { return ([255,255,128]); }; ejejc_jQuery.highlightFade.asRGBString = function(a) { return "rgb(" + a.join(",") + ")"; }; ejejc_jQuery.highlightFade.getBaseValue = function(e,a,b) { return ([241,241,241]); }; // pblic function EJEJC_lc(th){ // crt var r; r = EJEJC_cmn(th,"j",true); if (typeof r != "undefined") { return r; } } // earlier pblc|now prvt.|kpt 4 compat.|dont use function EJEJC_frm(th) { return EJEJC_lc(th); } // custom function EJEJC_cartify(url) { var ej_ejc_cart_id; var ej_ejc_cart_md5; var ej_ejc_cart_currency; var client_id; var qs = url.replace("?","&"); // don't modify the url as we use it as it is below and replace ? with & will break it try { url = url.replace(/\;/g,"&"); // some ppl use non-js version of code with js view cart. we can handle that but due to myspace non js button urls have ; instead of & } catch (e) { // } qs = url.split('&'); // get client id for(var i=0;i < qs.length;i++) { var c = qs[i]; if (c.substring(0,3)=='cl=') { client_id=c.substring(3); break; } } EJEJC_clnt=client_id; // cookie is set escaped, shld be unescaped when read.. but no point as we then passing them in the URL and we'll need to re escape thm ej_ejc_cart_id=EJEJC_gc('ej_ejc_cart_id'+client_id); ej_ejc_cart_md5=EJEJC_gc('ej_ejc_cart_md5'+client_id); ej_ejc_cart_currency=EJEJC_gc('ej_ejc_cart_currency'+client_id); ej_ejc_to_country=EJEJC_gc('ej_ejc_to_country'+client_id); ej_ejc_zipcode=EJEJC_gc('ej_ejc_zipcode'+client_id); if (ej_ejc_cart_id) { // extend cookie life EJEJC_setCookie('ej_ejc_cart_id'+client_id,ej_ejc_cart_id); EJEJC_setCookie('ej_ejc_cart_md5'+client_id,ej_ejc_cart_md5); EJEJC_setCookie('ej_ejc_cart_currency'+client_id,ej_ejc_cart_currency); EJEJC_setCookie('ej_ejc_to_country'+client_id,ej_ejc_to_country); EJEJC_setCookie('ej_ejc_zipcode'+client_id,decodeURIComponent(ej_ejc_zipcode));//unescape } url = url + '&cart_md5=' + ej_ejc_cart_md5 + '&cart_id=' + ej_ejc_cart_id + '&cart_currency=' + ej_ejc_cart_currency + '&to_country=' + ej_ejc_to_country + '&zipcode=' + ej_ejc_zipcode; return(url); } function EJEJC_implode () { var st1; var st2; var st4; var st5; var i=0; st1=st2=st4=st5=''; while (document.ej_ejc_frm_1['ci_id_array['+i+']']) { st1 = st1 + document.ej_ejc_frm_1['ci_id_array['+i+']'].value; st2 = st2 + document.ej_ejc_frm_1['quantity_array['+i+']'].value.replace(",",""); st5 = st5 + document.ej_ejc_frm_1['cart_item_price_array['+i+']'].value.replace(",","."); if (document.ej_ejc_frm_1['remove_array['+i+']'].checked == false) { st4 = st4 + "0"; } else { st4 = st4 + "1"; } if (document.ej_ejc_frm_1['ci_id_array['+(i+1)+']']) { st1 = st1 + ','; st2 = st2 + ','; st4 = st4 + ','; st5 = st5 + ','; } i++; } return ('&cilist=' + st1 + '&qlist=' + st2 + '&rlist=' + st4 + '&ciplist=' + st5 ); } //checkout function EJEJC_checkout(qs,pp,playarea) { // playarea will include 2 for sandbox and ff for ffc // pp is pmnt processor var site; var auser; var astring; var adata; var abeacon; var h='/'+EJEJC_DOMAIN+'/ecom/'; // what shows up in analytics var fch='/'+EJEJC_DOMAIN+'/ecom/checkout'; // what shows up in analytics - ffc var chk; auser=astring=adata=''; EJEJC_f=new Object(); EJEJC_f.action="https://"+EJEJC_DOMAIN+"/ecom/rp.php"; // BEACON will be set by merchant abeacon=encodeURIComponent(EJEJC_BEACON); // ecom trck. > gc - on by def. if analyt presnt if (pp=='gc') { // loaded GA-GC script .. ecom tracking if (window.getUrchinFieldValue) { if (EJEJC_ga=='urchin') { // got this from source code - frm setUrchinInputCode function, getUrchinInputCode & urchindata seem to be not in use there .. don't know why there are there try { adata=getUrchinFieldValue(); } catch (e) { // } } else if (EJEJC_ga=='ga' && window.setUrchinInputCode) { try { setUrchinInputCode(ejGATracker); adata=getUrchinFieldValue(); } catch (e) { // } } } } try { qs+='&ec_url='+encodeURIComponent(top.location.href);//escape //encodeURI } catch (e) { // domain sec. issue in framed site; } if (pp=='cc') { //if (EJEJC_DOMAIN=='wwww.e-junkie.com') { // so no matter what (wther buyer is e-junkie, or a ffcpro sub domains, in case of cc pmnts, we use www.ffcpro.com (HTTPS- for obvious reasons, WWW - so seals show up right, FFCPRO - so buyers don't get freaked out by e-j domain) site='https://www.fatfreecartpro.com'; /*} else { // user already seems to be using oneof ffcpro subdomains, so just enforce SSL site='https://'+EJEJC_DOMAIN; }*/ } else if (pp=='ej') { site='https://'+EJEJC_DOMAIN; } else { site=EJEJC_PROT+EJEJC_DOMAIN; } if (playarea=='ff') { if (EJEJC_ga=='urchin') { try { urchinTracker(fch); } catch (e) { // } } else if (EJEJC_ga=='ga') { try { ejGATracker._trackPageview(fch); } catch (e) { // } } EJEJC_loadContent(site+'/ecom/ffstandard.php?'+qs+'&adata='+adata,'ejejcscript'); } else { // show checkout, if no errors if (EJEJC_chktCheck2()) { EJEJC_ldng(); // conv. trck. if (EJEJC_ga=='urchin' && window.__utmLinkPost) { try { __utmLinkPost(EJEJC_f); astring=encodeURIComponent(EJEJC_f.action.substring(37));//encodeURI does not work here :( //escape auser=_uacct; } catch (e) { //alert(e); } } else if (EJEJC_ga=='ga' && typeof ejGATracker._linkByPost!="undefined") { try { ejGATracker._linkByPost(EJEJC_f); astring=encodeURIComponent('gajs=true&'+EJEJC_f.action.substring(37));//encodeURI does not work here :( //escape auser=ejGATracker._getAccount(); } catch (e) { //alert(e); } } //alert(astring); //alert(auser); if (pp=='gc') { // generic click tracking chk='GoogleCheckout'; if (EJEJC_ga=='urchin') { try { urchinTracker(h+chk); } catch (e) { // } } else if (EJEJC_ga=='ga') { // ---------------------------------------------------------------------------------------------------------------------------- if GA.JS tracking FAILS, this could one of the reasons .. maybe GA.JS scans CURRENT pages, finds the gc buttons and freaks our .. as they say that gc buttons should be loaded before .. although, we are passing a virtual url to track page view .. so we should be good try { ejGATracker._trackPageview(h+chk); } catch (e) { // } } EJEJC_goto(site+'/gc'+playarea+'/CheckoutShoppingCart.php?'+qs+'&adata='+adata+'&auser='+auser+'&astring='+astring+'&abeacon='+abeacon,EJEJC_CPOP); } else if (pp=='ec' || pp=='ecdg') { chk='PayPalExpressCheckout'; if (EJEJC_ga=='urchin') { try { urchinTracker(h+chk); } catch (e) { // } } else if (EJEJC_ga=='ga') { try { ejGATracker._trackPageview(h+chk); } catch (e) { // } } //alert(site+'/ecom/express'+playarea+'.php?'+qs+'&auser='+auser+'&astring='+astring+'&abeacon='+abeacon); if (pp=='ecdg' && EJEJC_DG==true) { EJEJC_loadContent(site+'/ecom/express2'+playarea+'.php?'+qs+'&auser='+auser+'&astring='+astring+'&abeacon='+abeacon,'ejejcscript'); //<-- only once expressppdg goes live } else { EJEJC_goto(site+'/ecom/express'+playarea+'.php?'+qs+'&auser='+auser+'&astring='+astring+'&abeacon='+abeacon,EJEJC_CPOP); } } else if (pp=='cc' || pp=='ej') { if (pp=='cc') chk='CreditCardCheckout'; else chk='GiftCheckout'; if (EJEJC_ga=='urchin') { try { urchinTracker(h+chk); } catch (e) { // } } else if (EJEJC_ga=='ga') { try { ejGATracker._trackPageview(h+chk); } catch (e) { // } } var ccurl = site+'/ecom/'+pp+playarea+'.php?'+qs+(EJEJC_INCHK?'&inchk=1':'')+'&auser='+auser+'&astring='+astring+'&abeacon='+abeacon; if (EJEJC_INCHK) { // checkout in the box, need to use iframe and not jsod as we need to show security seals EJEJC_ilc(ccurl); } else { EJEJC_goto(ccurl,EJEJC_CPOP); } } else { if (EJEJC_CPOP) { EJEJC_remove(); qs += "&pptarget=_blank"; } if (pp=='tp') { if (EJEJC_ga=='urchin') { try { urchinTracker(h+'TrialPayCheckout'); } catch (e) { // } } else if (EJEJC_ga=='ga') { try { ejGATracker._trackPageview(h+'TrialPayCheckout'); } catch (e) { // } } EJEJC_loadContent(site+'/ecom/tp'+playarea+'.php?'+qs+'&auser='+auser+'&astring='+astring+'&abeacon='+abeacon,'ejejcscript'); } else { // pp if (EJEJC_ga=='urchin') { try { urchinTracker(h+'PayPalCheckout'); } catch (e) { // } } else if (EJEJC_ga=='ga') { try { ejGATracker._trackPageview(h+'PayPalCheckout'); } catch (e) { // } } // as this is a form, not checkout page EJEJC_loadContent(site+'/ecom/standard'+playarea+'.php?'+qs+'&auser='+auser+'&astring='+astring+'&abeacon='+abeacon,'ejejcscript'); } } } } } function EJEJC_goto(l,p) { if (p) { EJEJC_remove(); window.open(l); } else { // frames frm diff. domn. try { top.location.href=l; } catch (e) { EJEJC_remove(); window.open(l); } } } // post render function EJEJC_callshown() { if (EJEJC_POSTCALL==true) { if (typeof EJEJC_shown!="undefined") { EJEJC_shown(); } } if (document.getElementById("EJEJC_iframeContent").offsetHeight) { // table smaller than div // 63-logo ht., 4-whtspce blw tabl if ((document.getElementById("ejejctable").offsetHeight+63+4)