
//var loading = "<table cellpadding=0 cellspacing=0 height=650 width=743 align=center border='0'><tr><td align=center><img src='http://psdshop.com/image/design/listlayerimg/loading.gif'></td></tr></table>";
var domain = "psdshop";

function getHost() {
	var host="";
	var stdnum=0;

	host = location.href;
	hostArry = host.split("//");
	host = hostArry[1].substr(0,hostArry[1].indexOf("/"));
	
	return host;
}

function useHost(host) {
	if(host.indexOf(".co.kr") > -1) {		
		return "co.kr";
	} else if(host.indexOf(".com") > -1) {		
		return "com";
	}
}

function fcResizeFrame(name)  { 
	try {      
		var oBody = document.frames(name).document.body; 
		var oFrame = document.all(name); 
	
		oFrame.style.width = oBody.scrollWidth + (oBody.offsetWidth-oBody.clientWidth); 
		oFrame.style.height = oBody.scrollHeight + (oBody.offsetHeight-oBody.clientHeight); 
	
		if (oFrame.style.height == "0px" || oFrame.style.width == "0px") { 
			oFrame.style.width = "100%"; 
			oFrame.style.height = "100%"; 
			window.status = 'iframe resizing fail.'; 
		} else { 
			window.status = ''; 	
			
			try{
				document.getElementById("div_loading2").style.display = "none";
			} catch(e) {}
		} 
	} catch(e) { 
		window.status = 'Error: ' + e.number + ';' + e.description; 
	} 
} 

function initLoad() {
	try{
		document.getElementById("div_loading").innerHTML = loading;	
	} catch(e) {}
}
