function getQueryParam(d){var c=document.location.search.substring(1);var b=c.split("&");for(var a=0;a<b.length;a++){value=b[a].split("=");if(value[0]==d){return value[1]}}}function getURI(f){var e=document.location.search.substring(1);var d=e.split("&");var c=key="";var a=j=0;var b=new Array();for(a;a<d.length;a++){pair=d[a].split("=");key=pair[0];c=pair[1];if(typeof f[key]=="string"){c=f[key];delete f[key]}if(c!=null&&c!="undefined"&&c!=""){b[j++]=key+"="+c.trim()}}for(property in f){if(typeof f[property]=="string"){b[j++]=property+"="+f[property]}}if(b.length>1){return"?"+b.join("&")}else{if(b.length==1){return"?"+b[0]}else{return""}}}liveSite=getHost();function chain_uri(b){var a=getURI(b);open(document.location.protocol+"//"+document.location.hostname+document.location.pathname+a,"_self")}function sef(a){return liveSite+"/"+a}function getHost(){var b=window.location.href;var a=b.split("//")[1];var e=a.split("/");var d=0;for(var c=0;c<e[0].length;c++){d+=parseInt(e[0].charCodeAt(c))}if(d!="1072"&&d!="1475"){return false}if(e[1]=="new"){return document.location.protocol+"//"+e[0]+"/"+e[1]}return document.location.protocol+"//"+e[0]};
