// JavaScript Document
function imgView(board, num, flag){
	var param = "board="+board+"&num="+num+"&flag="+flag;
	window.open("/inc/file_read.jsp?"+param,"imgView","");
}
function open_pop(url,w,h,top,left) 
{ 
	window.open('/pop/pop_'+url+'.jsp','','width='+w+',height='+h+',top='+top+',left='+left+',scrollbars=yes,location=no, toolbar=no');
}

function open_pop2(url,w,h,top,left) 
{ 
	window.open('/pop/pop_'+url+'.jsp','','width='+w+',height='+h+',top='+top+',left='+left+',scrollbars=no,location=no, toolbar=no');
}

function new_open_pop(url,w,h,top,left){ 
	window.open(url,'','width='+w+',height='+h+',top='+top+',left='+left+',scrollbars=yes,location=no, toolbar=no');
}

function open_movie(){
	var url = '/models/sls/movie.html';
	window.open(url,'','scrollbars=0,resizable=no,status=0,top=0,left=0, width=734, height=488');
}
	
function close_pop() 
{ 
 	self.close();
}

function go_url(url) 
{ 
	var hname = location.host;
	if(hname != "www.theclasshyosung.com"){
 		location.href = url+".jsp";	
	}else{
		location.href = "http://www.theclasshyosung.com"+url+".jsp";	
	}
}

//layer view & hide radio button 
function viewInfo(id){
	document.getElementById(id).style.display ="block";
}

function hideInfo(id){
	document.getElementById(id).style.display ="none";
}

//team tab view & hide 
function viewtab(id,n){
	for(i=0;n++;i<n){		
		if(id == i){
			document.getElementById('k'+id).style.display ="block";
		}
		else{
			document.getElementById('k'+id).style.display ="none";	
		}
	}
}

function hidetab(id){
	document.getElementById(id).style.display ="none";
}


//gallery view & hide 
function show_gallery(n){
	document.getElementById('gallery').src ="/images/models/myb/gallery"+n+".jpg";
	document.getElementById('input_hidden').value = n;
	
}
//gallery view & hide 
function show_gallery2(fn,n){
	document.getElementById('gallery').src ="/images/models/"+fn+"/gallery"+n+".jpg";
	document.getElementById('input_hidden').value = n;
}
// cl/design view & hide 
function show_Design(fn,cn,n){
	document.getElementById('gallery').src ="/images/models/"+fn+"/img_"+cn+n+"_top.jpg";
}

function gallery_over(n){
	document.getElementById('gallery_s'+n).className ="gallery_s_on";	
}
function gallery_out(n){
	document.getElementById('gallery_s'+n).className ="gallery_s";	
}

//color view & hide 
function show_color2(fn,n){
	document.getElementById('color1').src ="/images/models/"+fn+"/color_img"+n+".jpg";
	document.getElementById('input_hidden').value = n;
}

function color_over(n){
	document.getElementById('color_s'+n).className ="color_s_on";	
}
function color_out(n){
	document.getElementById('color_s'+n).className ="color_s";	
}

//download gallery
function down_gallery1024(fname){
	var obj = document.getElementById('input_hidden').value;
	if (obj == 1){
	window.open('/images/models/'+fname+'/gallery1_down1024.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');	
	}
	if (obj == 2){
	window.open('/images/models/'+fname+'/gallery2_down1024.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');		
	}	
	if (obj == 3){
	window.open('/images/models/'+fname+'/gallery3_down1024.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');	;
	}		
	if (obj == 4){
	window.open('/images/models/'+fname+'/gallery4_down1024.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');	
	}		
	if (obj == 5){
	window.open('/images/models/'+fname+'/gallery5_down1024.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');	
	}	
	if (obj == 6){
	window.open('/images/models/'+fname+'/gallery6_down1024.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');	
	}
	if (obj == 7){
	window.open('/images/models/'+fname+'/gallery7_down1024.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');		
	}	
	if (obj == 8){
	window.open('/images/models/'+fname+'/gallery8_down1024.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');	;
	}		
	if (obj == 9){
	window.open('/images/models/'+fname+'/gallery9_down1024.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');	
	}		
	if (obj == 10){
	window.open('/images/models/'+fname+'/gallery10_down1024.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');	
	}
	if (obj == 11){
	window.open('/images/models/'+fname+'/gallery11_down1024.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');		
	}	
	if (obj == 12){
	window.open('/images/models/'+fname+'/gallery12_down1024.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');	;
	}		
	if (obj == 13){
	window.open('/images/models/'+fname+'/gallery13_down1024.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');	
	}		
	if (obj == 14){
	window.open('/images/models/'+fname+'/gallery14_down1024.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');	
	}		
}
function down_gallery1280(fname){
	var obj = document.getElementById('input_hidden').value;
	if (obj == 1){
	window.open('/images/models/'+fname+'/gallery1_down1280.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');	
	}
	if (obj == 2){
	window.open('/images/models/'+fname+'/gallery2_down1280.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');
	}	
	if (obj == 3){
	window.open('/images/models/'+fname+'/gallery3_down1280.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');
	}		
	if (obj == 4){
	window.open('/images/models/'+fname+'/gallery4_down1280.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');
	}		
	if (obj == 5){
	window.open('/images/models/'+fname+'/gallery5_down1280.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');
	}	
	if (obj == 6){
	window.open('/images/models/'+fname+'/gallery6_down1280.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');	
	}
	if (obj == 7){
	window.open('/images/models/'+fname+'/gallery7_down1280.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');
	}	
	if (obj == 8){
	window.open('/images/models/'+fname+'/gallery8_down1280.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');
	}		
	if (obj == 9){
	window.open('/images/models/'+fname+'/gallery9_down1280.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');
	}		
	if (obj == 10){
	window.open('/images/models/'+fname+'/gallery10_down1280.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');
	}	
	if (obj == 11){
	window.open('/images/models/'+fname+'/gallery11_down1280.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');	
	}
	if (obj == 12){
	window.open('/images/models/'+fname+'/gallery12_down1280.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');
	}	
	if (obj == 13){
	window.open('/images/models/'+fname+'/gallery13_down1280.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');
	}		
	if (obj == 14){
	window.open('/images/models/'+fname+'/gallery14_down1280.jpg','','scrollbars=yes,location=no, toolbar=no,resizable=no');
	}		
}

//°­³²Àü½ÃÀå
function view_out(n, tot){	
	document.getElementById('k_out').src ="/images/purchase/k_out"+n+".jpg";
	for (i=1;i<tot+1;i++)
	{
		if (i == n)
		{
			document.getElementById('kthum'+i).src ="/images/purchase/kthum_out"+i+"_on.jpg";
		}
		else
		{
			document.getElementById('kthum'+i).src ="/images/purchase/kthum_out"+i+".jpg";
		}
	}
}

function view_in(n, tot){	
	document.getElementById('k_in').src ="/images/purchase/k_in"+n+".jpg";	
	for (i=1;i<tot+1;i++)
	{
		if (i == n)
		{
			document.getElementById('kthum'+i).src ="/images/purchase/kthum_in"+i+"_on.jpg";
		}
		else
		{
			document.getElementById('kthum'+i).src ="/images/purchase/kthum_in"+i+".jpg";
		}
	}
}

function view_customer(n,tot){	
	document.getElementById('k_customer').src ="/images/purchase/k_customer"+n+".jpg";	
	for (i=1;i<tot+1;i++)
	{
		if (i == n)
		{
			document.getElementById('kthum'+i).src ="/images/purchase/kthum_customer"+i+"_on.jpg";
		}
		else
		{
			document.getElementById('kthum'+i).src ="/images/purchase/kthum_customer"+i+".jpg";
		}
	}
}

//ºÐ´çÀü½ÃÀå
function view_out2(n, tot){	
	document.getElementById('k_out').src ="/images/purchase/b_out"+n+".jpg";
	for (i=1;i<tot+1;i++ )
	{
		if (i == n)
		{
			document.getElementById('kthum'+i).src ="/images/purchase/bthum_out"+i+"_on.jpg";
		}
		else
		{
			document.getElementById('kthum'+i).src ="/images/purchase/bthum_out"+i+".jpg";
		}
	}
}

function view_in2(n, tot){	
	document.getElementById('k_in').src ="/images/purchase/b_in"+n+".jpg";	
	for (i=1;i<tot+1;i++)
	{
		if (i == n)
		{
			document.getElementById('kthum'+i).src ="/images/purchase/bthum_in"+i+"_on.jpg";
		}
		else
		{
			document.getElementById('kthum'+i).src ="/images/purchase/bthum_in"+i+".jpg";
		}
	}
}
//ºÐ´çÀü½ÃÀå
function view_out3(n, tot){	
	document.getElementById('k_out').src ="/images/purchase/s_out"+n+".jpg";
	for (i=1;i<tot+1;i++ )
	{
		if (i == n)
		{
			document.getElementById('kthum'+i).src ="/images/purchase/sthum_out"+i+"_on.jpg";
		}
		else
		{
			document.getElementById('kthum'+i).src ="/images/purchase/sthum_out"+i+".jpg";
		}
	}
}

//¾È¾çÀü½ÃÀå
function view_out4(n, tot){	
	document.getElementById('a_out').src ="/images/purchase/a_out"+n+".jpg";
	for (i=1;i<tot+1;i++ )
	{
		if (i == n)
		{
			document.getElementById('athum'+i).src ="/images/purchase/athum_out"+i+"_on.jpg";
		}
		else
		{
			document.getElementById('athum'+i).src ="/images/purchase/athum_out"+i+".jpg";
		}
	}
}

function view_in3(n,tot){	
	document.getElementById('k_in').src ="/images/purchase/s_in"+n+".jpg";	
	for (i=1;i<tot+1;i++)
	{
		if (i == n)
		{
			document.getElementById('kthum'+i).src ="/images/purchase/sthum_in"+i+"_on.jpg";
		}
		else
		{
			document.getElementById('kthum'+i).src ="/images/purchase/sthum_in"+i+".jpg";
		}
	}
}

//Áß°íÂ÷ »ç¾÷ºÎ
function old_car(n,tot){	
	document.getElementById('oldcar').src ="/images/purchase/old"+n+".jpg";	
	for (i=1;i<tot+1;i++)
	{
		if (i == n)
		{
			document.getElementById('kthum'+i).src ="/images/purchase/oldthum"+i+"_on.jpg";
		}
		else
		{
			document.getElementById('kthum'+i).src ="/images/purchase/oldthum"+i+".jpg";
		}
	}
}



//png
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 '';
 }
////////////
