function openTandCs () {
	attributeString = "width=400,height=600,top=0,left=0,scrollbars=1,toolbar=1,resizable=0,menubar=0,status=0,titlebar=0";
	window.open("/html/tandc.html","terms",attributeString);
}
function openMap () {
	attributeString = "width=500,height=460,scrollbars=1,toolbar=0,resizable=0,menubar=0,status=0,titlebar=0";
	window.open("/contact/index.htm","win_feat_ex",attributeString);
}
function openPanel (url,name,width,height) {
	winWidth = parseInt(width,10) + 20;
	winHeight = parseInt(height,10) + 60;
	url = url + "&width=" + width + "&height=" + height + "&winWidth=" + winWidth + "&winHeight=" + winHeight;
	attributeString = "width=" + winWidth + ",height=" + winHeight + ",scrollbars=0,toolbar=0,resizable=0,menubar=0,status=no,titlebar=0";
	newWin = window.open(url,name,attributeString);
	newWin.focus();
}
function openInfo (url,name,width,height) {
	winWidth = parseInt(width,10) + 20;
	winHeight = parseInt(height,10) + 60;
	attributeString = "width=" + winWidth + ",height=" + winHeight + ",scrollbars=0,toolbar=0,resizable=0,menubar=0,status=no,titlebar=0";
	newWin = window.open(url,name,attributeString);
	newWin.focus();
}
function browser() {
	agent = navigator.userAgent.toLowerCase();
	this.major = parseInt(navigator.appVersion);
	this.ns = ((agent.indexOf('mozilla') != -1) && ((agent.indexOf('spoofer') == -1) && (agent.indexOf('compatible') == -1)));
	this.ns4 = (this.ns && (this.major == 4));
	this.ns6 = (this.ns && (this.major >= 5));
	this.ie = (agent.indexOf("msie") != -1);
	this.ie3 = (this.ie && (this.major < 4));
	this.ie4 = (this.ie && (this.major == 4) && (agent.indexOf("msie 5.0") == -1));
	this.ie5 = (this.ie && (this.major == 4) && (agent.indexOf("msie 5.0") != -1));
	this.ie55 = (this.ie && (this.major == 4) && (agent.indexOf("msie 5.5") != -1));
	this.ie6 = (this.ie && (agent.indexOf("msie 6.0")!=-1) );
}

function getPos() {
	var is = new browser();
	if (window.innerHeight) {
		  pos = window.pageYOffset;
	} else if (document.documentElement && document.documentElement.scrollTop) {
		pos = document.documentElement.scrollTop;
	} else if (document.body) {
		  pos = document.body.scrollTop;
	}
	if ( is.ie4 ) {
		shop_container.SetVariable("windowOffset",pos);
	}
	if ( is.ns4 ) {
		document.shop_container.SetVariable("windowOffset",pos);
	}
	if ( is.ns6||is.ie5||is.ie55||is.ie6 ) {
		document.getElementById('shop_container').SetVariable("windowOffset",pos);
	}
}
function setFullBg() {
   if (document.layers){
	  document.bgCell.style.backgroundImage = 'url(fbbbg.gif)';
   }
   if (document.getElementById){
	  document.getElementById('bgCell').style.backgroundImage = 'url(fbbbg.gif)';
   }
   if (document.all){
	  document.getElementById('bgCell').style.backgroundImage = 'url(fbbbg.gif)';
   }
}
function flashVar(myVar){
	if(window.shopMainContent) window.document["shopMainContent"].SetVariable("jidb_cardUrl", myVar);
	if(document.shopMainContent) document.shopMainContent.SetVariable("jidb_cardUrl", myVar);
}
function flashVarMtm(myVar){
	if(window.topBar) {
		window.document["topBar"].SetVariable("p", myVar);
		//window.document["topBar"].GoToFrame(1);
		//window.document["topBar"].Play();
	}
	if(document.topBar) { 
		document.topBar.SetVariable("p", myVar);
		//document.topBar.GoToFrame(1);
		//document.topBar.Play();
	}
	
}