
//yshop 바로가기
function goYSHOP(prodcode){
	if(prodcode=='main'){
		window.open('http://www.yudostar.co.kr/yshop/');
	}else{
		//window.open('http://www.yudosuns.co.kr/yshop/product/product_view.asp?pro_idx='+prodcode+'');
		alert('준비중입니다.');
	}
	
}

//yes 바로가기
function goYES(prodcode){
	if(prodcode=='main'){
		window.open('http://www.yudostar.co.kr/yes_star/');
	}else{
		//window.open('/yes_star/product/product_view.asp?prod_idx='+prodcode+'');
		alert('준비중입니다.');
	}
}

//e-catalog
function eCatalog(url){
	if(url=='url' || url==''){
		alert('준비중입니다.');
	}else{
		window.open('http://www.yudostar.co.kr'+url);//스타주소
	}

}

//그룹채용정보바로가기
function goRecruitInfo(){
	window.open('http://www.yudo.com/kor_group/Recruit/recruit_info_list.asp');
}

//footer 인트라넷 바로가기
function goIntraNet(){
	window.open('http://www.yudostar.co.kr/intra_star/');
}


//플래시출력함수
function getFlash(id,url,w,h,t,bg){
document.write("\
<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width="+w+" height="+h+" id="+id+">\
<param name='movie' value="+url+" />\
<param name='wmode' value="+t+" />\
<param name='bgcolor' value="+bg+" />\
<param name='allowScriptAccess' value='sameDomain' />\
<param name='quality' value='high' />\
<param name='menu' value='false' />\
<embed src="+url+" width="+w+" height="+h+" name="+id+" bgcolor="+bg+" swLiveConnect='true' allowScriptAccess='sameDomain' quality='high' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />\
</object>\
");
}

// 페이지 focus blur
function bluring(){
	if (event.srcElement!=null) {
		if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
	}
}
document.onfocusin=bluring;


//document.onmousedown=click;
/*
function click() {
 if((event.button==2) || (event.button==3)) {
  alert("마우스 오른쪽 버튼은 사용하실 수 없습니다");
  return false;
 }
}
function clickIE() {
	if (document.all) {
	return false;
	}
}
function clickNS(e) {
	if (document.layers||(document.getElementById&&!document.all)) {
		if (e.which==2||e.which==3) {
			return false;
		}
	}
}

if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS;
}else{
	document.onmouseup=clickNS;
	document.oncontextmenu=clickIE;
}
document.oncontextmenu=new Function("return false")
*/

//팝업 화면 중앙에 띄우기
function Win_pop(newwin,w,h) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'width='+w+',height='+h+',top='+wint+',left='+winl+',resizable=no,scrollbars=no,toolbars=no,status=no,menu=no';
win = window.open(newwin, "new1", winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

//footer
function footer() {
document.write("<div style='padding:65px 0px 0px 357px; width:900px;'>");
document.write("<div style='float:left'><img src='/kor_suns/Images/common/footer01.gif'></div>");
document.write("<div style='float:left'><a href='#'><img src='/kor_suns/Images/common/footer02.gif'></a></div>");
document.write("<div style='float:left'><img src='/kor_suns/Images/common/footer03.gif'></div>");
document.write("</div>");
}

//제품팝업
function nWCen(url){
	var top=(screen.height/2)-(100/2);
	var left=(screen.width/2)-(100/2);
	var temp01=url.split(".");
	var winname=temp01[0];
	window.open(url,winname,'width=20px,height=5px,scrollbars=yes,toolbar=no,location=no,status=yes,menubar=no,resizable=yes,left=3000,top=3000');
}
