var current_href=location.href;var sslport="";pos=current_href.lastIndexOf("/");current_path=current_href.substring(0,pos+1);if(current_path.indexOf("https")!=-1){re=new RegExp("https://"+location.hostname,"gi");base_href=current_path.replace(re,"http://"+location.hostname);securebase_href=current_path}else{re=new RegExp("http://"+location.hostname,"gi");base_href=current_path;securebase_href=current_path.replace(re,"https://"+location.hostname+sslport)}base_domain="http://"+location.hostname;secure_domain="https://"+location.hostname+sslport;
