var imgView = new Image;
var imgEdit = new Image;
var imgDelete = new Image;
var imgSub_Arrow = new Image;
var imgSub_Divider = new Image;

imgView.src = "/images/btnView.gif";
imgEdit.src = "/images/btnEdit.gif";
imgDelete.src = "/images/btnKill.gif";
imgSub_Arrow.src = "/admin/images/sub_arrow.gif";
imgSub_Divider.src = "/admin/images/sub_divider.jpg";

function softIntercept(webSiteId, url, name, target, lang, intercept, breadcrumb){
	url = url.replace("?", "[asp_query_symbol]");
	url = url.replace("&", "[asp_concatenator_symbol]");

	var winHeight=320;
	if(intercept == 'True'){
			window.open("/includes/soft_intercept.asp?ws_id=" + webSiteId + "&ref=" + document.location.pathname + "&url="+ unescape(url) + "&name=" + name + "&target=" + target + "&lang=" + lang,"NewWindow","scrollbars=no,toolbar=no,titlebar=YES,width=460,height="+winHeight+",left=200,top=50");
	}else{
		if (target == 'new'){
			window.open(unescape(url),"NewWindow","scrollbars=YES,resizable=YES,toolbar=YES,titlebar=YES,width=600,height=600,left=200, top=10");
		}else{
			document.location.href = unescape(url);		
		}
	}
}

function ltrim (s){
return s.replace(/^\s*/, "")
}

function rtrim (s){
return s.replace(/\s*$/, "");
}

function trim (s){
return rtrim(ltrim(s));
}

function open_window(url) 
{
	window.open(url, "Living",'toolbar=yes,location=1,directories=0,status=0,menubar=no,scrollbars=1,resizable=1,width=640,height=395')
}

function open_Window_b(url) 
{
	popupWin = window.open(url, 'tutorial', 'toolbar=no,location=0,directories=0,status=0,menubar=no,scrollbars=no,resizable=0,width=410,height=590,top=10,left=550')
}

function open_Window_a(url) 
{
	window.open(url, 'feature', 'scrollbars,width=640,height=395,left=10,top=10,toolbar,menubar,status,location,resizable')
}	

function open_Window_contact(url) 
{
	window.open(url, 'map', 'scrollbars,width=770,height=581,left=10,top=10,toolbar,menubar,status,location,resizable')
}

function emailThisPage(thisURL, thisTitle, thisLanguage) 
{
	window.open('/includes/email_this_page.asp?lang='+thisLanguage+'&url='+thisURL+'&title='+thisTitle, 'emailThisPage', 'toolbar=no,location=0,directories=0,status=0,menubar=no,scrollbars=no,resizable=0,width=450,height=295,top=10,left=10')
}

  if(!((parseInt(navigator.appVersion)<4) && (navigator.appName.toLowerCase().indexOf("microsoft")>-1))) {
  if (parseInt(navigator.appVersion)<3)
    J11=false;
  else
    J11=true;
  }
  else
    J11=false;
	
  var imHeads;

  var swapIm = new Array();
  var old = "";
  var oldSrc = "";
  var old2 = "";
  var oldSrc2 = "";

 var Im= new Array(	"/images/spacer.gif");

 if(J11) {
   for(i in Im) {
      swapIm[i] = new Image();
	  swapIm[i].src = Im[i];
   }
 } 

