/* JavaScript Document */
arrShopPageIDs={"GROUP3":"17","GROUP10":"36","GROUP12":"38","GROUP13":"37","GROUP14":"10","GROUP7":"40","GROUP36":"41","GROUP43":"40"};// GROUP ID : Side ID 
var arrParams=window.location.search.substr(1).split("&");
var arrQueryString={}; // Key/Value pairs
for(tempString=[],q=0;q<arrParams.length;q++){
	tempString=arrParams[q].split("=");
	arrQueryString[tempString[0]]=tempString[1];
}
function printPage(){
  uri=location.href+'&Printerfriendly=1'
  uri=uri.replace(/\.aspx\&Printerfriendly\=([0-9])$/,'.aspx?Printerfriendly=\$1');
  uri=uri.replace(/\/\&Printerfriendly\=([0-9])$/,'/?Printerfriendly=\$1');
  printWin=window.open(uri,'','');
}
function writeTearser(str,maxlen){ 
  sw=0;in_tag=false;res=""; 
  for(i=0;i<str.length;i++){ 
    if(str.charAt(i)=='<') in_tag=true;
    else if(str.charAt(i)==' ') sw=0;
    if(!in_tag&&((sw++)>maxlen)){ 
      res+='|...|'; 
      sw=0; 
    }		
  if(str.charAt(i)=='>') in_tag=false;
  res+=str.charAt(i); 
  } 
  return res; 
}
function docwriter(str){document.write(str);}
window.onload=function(){
  //expURL=new RegExp("\\?ID="+arrQueryString["ID"]+"(&GroupID="+arrQueryString["GroupID"]+")?$","");
  expURL=new RegExp(""+arrQueryString["uri"]+"$","");
  var arrSubMenus=document.getElementById("submenus").getElementsByTagName("a");
  for(a=0;a<arrSubMenus.length;a++){
    if(arrSubMenus[a].href==location.href||expURL.test(escape(arrSubMenus[a].href))) arrSubMenus[a].style.fontWeight="bold";
  }
  return true;
};