<!--
function showNav(id)
{
id.style.visibility='visible';
var agent=navigator.userAgent;
//alert(document["all"]);
if (document["all"] && (agent.indexOf("Opera") == -1))  {
var iframe=document.getElementById('iframe1');
iframe.style.top=id.style.top;
iframe.style.left=id.style.left;
iframe.style.width=id.offsetWidth;
iframe.style.height=id.offsetHeight;
iframe.style.zIndex=id.style.zIndex-1;
iframe.style.display='inline';
iframe.style.visibility=id.style.visibility;
iframe.style.filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';
}



}

function hideNav(id)
{
	var agent=navigator.userAgent;
	if (document["all"] && (agent.indexOf("Opera") == -1))  {
		var iframe=document.getElementById('iframe1');
		iframe.style.display='none';
		iframe.style.visibility=id.style.visibility;
	}
	id.style.visibility='hidden';
}

function CheckEmail(e){
	e = e.toLowerCase();
	var ch="@";
	var count=0;
	var error=false;
	
	for (var i=0; i<e.length; i++){
		if(e.charAt(i)==ch || e.charAt(i)=="."){
			error = (count==0) ? true : error;
			ch = (ch==".") ? 0 : ch;
			ch = (e.charAt(i)=="@") ? "." : ch;
			count=0;
			continue;
		}
		count++;
	
		if((e.charAt(i)<"a" || e.charAt(i)>"z") && (e.charAt(i)<"0" || e.charAt(i)>"9") && e.charAt(i)!="_" && e.charAt(i)!="-"){
			error = true;
			break;
		}
	}
	error = (count==0) ? true : error;
	error = (ch==0) ? error : true;
	return !error;
}

function GoURL(url, target) {
	var w;
	if (target == "_blank") {
		w = window.open(url,"w","");
		w.focus();
	}	else {
		document.location = url;
	}
	return false;
}

function ShowPhoto(photoname, w, h) {
	url = "/showphoto/?img="+photoname;

	Win=window.open(url, 'viewPhoto',  'toolbar=0,scrollbars=0,location=0,directories=0,status=0,menubar=0,resizable=0,width='+w+',height='+h+',border=thin,top=50,left=50,help=0');
	Win.focus();
}

function Show3D(shop_domain, w, h) {
	url = "/shop/3d/";
	Win=window.open(url, 'view3D',  'toolbar=0,scrollbars=0,location=0,directories=0,status=0,menubar=0,resizable=1,width='+w+',height='+h+',border=thin,top=50,left=50,help=0');
	Win.focus();
}

function CopyToClipboard(fldname){
	document.frm[fldname].select();
	var rng = document.selection.createRange();
    clipboardData.setData("Text",rng.text);
}


function loadFlash(f,w,h){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+w+'" height="'+h+'">');
document.write('<param name="wmode" value="transparent" />');
document.write('<param name="movie" value="'+f+'">');
document.write('<param name="quality" value="high">');
document.write('<embed src="'+f+'" width="'+w+'" height="'+h+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>');
document.write('</object>');
}

function loadFlashUrl(f,w,h,url){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+w+'" height="'+h+'">');
document.write('<param name="wmode" value="transparent" />');
document.write('<param name="movie" value="'+f+'?clickTAG='+url+'">');
document.write('<param name="quality" value="high">');
document.write('<embed src="'+f+'?clickTAG='+url+'" width="'+w+'" height="'+h+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>');
document.write('</object>');
}

function loadFlashData(data1,data2){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="760" height="123">');
document.write('<param name="movie" value="/data/promo/store_open.swf?startdate1='+data1+'">');
document.write('<param name="quality" value="high">');
document.write('<param name="startdate1" value="'+data1+'">');
document.write('<embed src="/data/promo/store_open.swf?startdate1='+data2+'" width="760" height="123" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>');
document.write('</object>');
}


//-->