/*image preload*/
function WM_preloadImages() {
	if (document.images) {
		if (typeof(document.WM) == 'undefined'){
			document.WM = new Object();
		}
		document.WM.loadedImages = new Array();
		var argLength = WM_preloadImages.arguments.length;
		for(arg=0;arg<argLength;arg++) {
			document.WM.loadedImages[arg] = new Image();
			document.WM.loadedImages[arg].src = WM_preloadImages.arguments[arg];
		}
	}
}

/*item detail*/
var newWindow = null;
function openWindow(contentURL, windowName, windowWidth, windowHeight) {
	 
	   widthHeight = 'width=' + windowWidth +',' + 'height=' + windowHeight + ',scrollbars=auto';
	   newWindow = window.open(contentURL, windowName, widthHeight);
	   newWindow.focus();
}

/*map*/
var newWindow = null;
function openWindow02(contentURL, windowName, windowWidth, windowHeight) {
	 
	   widthHeight = 'width=' + windowWidth +',' + 'height=' + windowHeight + ',scrollbars=auto';
	   newWindow = window.open(contentURL, windowName, widthHeight);
	   newWindow.focus();
}

/*map*/
var newWindow = null;
function openWindow03(contentURL, windowName, windowWidth, windowHeight) {
	 
	   widthHeight = 'width=' + windowWidth +',' + 'height=' + windowHeight + ',scrollbars=auto';
	   newWindow = window.open(contentURL, windowName, widthHeight);
	   newWindow.focus();
}

/*shopping guide and terms*/
var newWindow = null;
function openWindow04(contentURL, windowName, windowWidth, windowHeight) {
	 
	   widthHeight = 'width=' + windowWidth +',' + 'height=' + windowHeight + ',scrollbars=yes';
	   newWindow = window.open(contentURL, windowName, widthHeight);
	   newWindow.focus();
}




function shoh(id) { 
	
	if (document.getElementById) { // DOM3 = IE5, NS6
		if (document.getElementById(id).style.display == "none"){
			document.getElementById(id).style.display = 'block';
			
		} else {
			
			document.getElementById(id).style.display = 'none';			
		}	
	} else { 
		if (document.layers) {	
			if (document.id.display == "none"){
				document.id.display = 'block';
				
			} else {
				
				document.id.display = 'none';
			}
		} else {
			if (document.all.id.style.visibility == "none"){
				document.all.id.style.display = 'block';
			} else {
				
				document.all.id.style.display = 'none';
			}
		}
	}
}




function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}




function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}


// Shows/hides a div

	function showhide (id, disp)
	{
		var di = document.getElementById(id);
		if (di == null) return;
		if (disp)
		{
			di.style.display = 'block';
		}
		else
		{
			di.style.display = 'none';
		}
	}
