/* input box bg Clear */
function bg_Clear(obj) {
	obj.style.background = "url(none)";
}

/* send E-mail to friends */
function s_email() {
	document.getElementById("email_write").style.display = "block";
}

function h_email() {
	document.getElementById("email_write").style.display = "none";
}

/* Layer show/hide */
function s_layer(strLayer,strPakr) {
	if(strPakr == "park") {
		for(i=1;i<4;i++) {
			document.getElementById("layer_top" + i).style.display = "none";
		}
	}
	if (document.getElementById("playerLayer") != null) {
		document.getElementById("playerLayer").style.display = "none";
	}
	document.getElementById(strLayer).style.display = "block";
}
function h_layer(strLayer) {
	if (document.getElementById("playerLayer") != null) {
		document.getElementById("playerLayer").style.display = "block";
	}
	document.getElementById(strLayer).style.display = "none";
}

/* Image RollOver */
function imageOver(imgEl) {
	imgEl.src = imgEl.src.replace("_off.gif", "_on.gif");
}
function imageOut(imgEl) {
	imgEl.src = imgEl.src.replace("_on.gif", "_off.gif");
}

/* gnb link */
function login(park){ 
	window.open('/front/pop_login.jsp?park=' + park, 'login', 'toolbar=no,scrollbars=yes,top=0,left=0,width=400,height=380');
}
function join(site){ 
	window.open('/front/pop_join_step1.jsp?site=' + site, 'join', 'toolbar=no,scrollbars=yes,top=0,left=0,width=668,height=700');
}
function edit(site){ 
	window.open('/front/pop_modify.jsp?site=' + site, 'join', 'toolbar=no,scrollbars=yes,top=0,left=0,width=668,height=700');
}
function findemail(site) { 
	window.open('/front/pop_email.jsp?site=' + site, 'join', 'toolbar=no,scrollbars=yes,top=0,left=0,width=400,height=410');
}
function findpw(site) { 
	window.open('/front/pop_pw.jsp?site=' + site, 'join', 'toolbar=no,scrollbars=yes,top=0,left=0,width=400,height=450');
}
function store() { 
	window.open('/front/pop_shop1.jsp', 'join', 'toolbar=no,scrollbars=yes,top=0,left=0,width=765,height=610');
}

/* gnb Layer */
function s_gnb(snum){
	for(i=1;i<4;i++) {
		document.getElementById("gnb_top" + i).style.display = "none";
	}
		document.getElementById("gnb_top" + snum).style.display = "block";
}

function s_gnb_out(snum){
	document.getElementById("gnb_top" + snum).style.display = "none";
}

/* png 24*/
function setPng24(obj) {
	obj.width=obj.height=1;
	obj.className=obj.className.replace(/\bpng24\b/i,'');
	obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
	obj.src='';
	return '';
}

/********************************************************************************************************
	°øÅëPopup Á¤ÀÇ
	º¯¼ö Á¤ÀÇ : pop - ÆÄÀÏ¸í, width - °¡·Î»çÀÌÁî, height - ¼¼·Î»çÀÌÁî, flag - 0:½ºÅ©·Ñ¾øÀ½, 1:½ºÅ©·ÑÀÖÀ½
********************************************************************************************************/
function popfix(pop,tname,width,height,flag)
{
  var url = pop;
  var wd = width;
  var he = height;
  var tn = tname;

  if ((window.navigator.userAgent.indexOf("SV1") != -1) || (window.navigator.userAgent.indexOf("MSIE 7") != -1)) {
    wd = wd + 8;
    he = he + 10;
        
    if (flag == "0" )    {  
      window.open(url,tn,"toolbar=0,menubar=0,scrollbars=no,resizable=no,width=" + wd + ",height=" + he + ";");  }
    else  {  
      window.open(url,tn,"toolbar=0,menubar=0,scrollbars=yes,resizable=no,width=" + wd + ",height=" + he + ";");  }
  }
  
  else {
  if (flag == "0" )    {  
    window.open(url,tn,"toolbar=0,menubar=0,scrollbars=no,resizable=no,width=" + wd +",height=" + he + ";");  }
  else  {  
    window.open(url,tn,"toolbar=0,menubar=0,scrollbars=yes,resizable=no,width=" + wd +",height=" + he + ";");  }  
  }
}

function imgFocus(msel,mtot,mid) {
	for (i=1; i<=mtot; i++) {
		document.getElementById(mid+i).src = "img/btnnum"+i+"_off.gif";
	}
	document.getElementById(mid+msel).src = "img/btnnum"+msel+"_on.gif";
}

function layer_view(layerStr,ck) {
	if (ck == 1) {
		document.getElementById(layerStr).style.display = "block";
	}
	else { 
		document.getElementById(layerStr).style.display = "none";
	}
}

function abababab(){
		alert(1);

}

function chkCount(count_name){

//	alert(count_name);
		$.ajax({
		url				:'http://www.puma.co.kr/front/chkCount.jsp'
		,type			:"post"
		,dataType	 	:"txt"
		,data			:{"count_name" : count_name}
		,error 		: function(){}
		,success		: function(rtn){
			
		}		
	});
}


document.title = 'PUMA';
