function MM_reloadPage(init) {  //reloads the window if Nav4 resized;
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//¸¶¿ì½º¿À¹ö ½ºÅ©¸³Æ®

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

// ¿ÀÇÂ À©µµ¿ì
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//À©µµ¸¦ ¶ç¿î´Ù
function OpenWindow(url,width,height,scroll)
{
	if(scroll == null) scroll = "no";
	winpos = "left=" + ((window.screen.width-width)/2) + ",top=" + ((window.screen.height-height-28)/2);
	winstyle="width=" + width + ",height=" + height + ",status=no,toolbar=no,menubar=no,location=no,resizable=no,copyhistory=no,scrollbars=" + scroll + "," + winpos;
	window.open(url,'_blank',winstyle);
}

//Ã¢ÀÌ¸§À» ÁÖ¾î¼­ À©µµ¸¦ ¶ç¿î´Ù.
function OpenWindowByName(url, width, height, WindowName, scroll)
{
	if(scroll == null)
		scroll = "no";
	winpos = "left=" + ((window.screen.width - width ) / 2 ) + ",top=" + ((window.screen.height-height-28)/2);
	winstyle="width=" + width + ",height=" + height + ",status=no,toolbar=no,menubar=no,location=no,resizable=no,copyhistory=no,scrollbars=" + scroll + "," + winpos;
	window.open(url,WindowName,winstyle);
}
//
function test()
{
	OpenWindow('test.htm',340,200,0)
}
//Ä«´Þ·Î±×
function catalog01 (){
	window.open("/eu/catalogue/catalog01/VIEW.HTM", "catalog01", "scrollbars=no,toolbar=no,status=no,resizable=yes, width=300, height=235");
}
function catalog02 (){
	window.open("/eu/catalogue/catalog02/VIEW.HTM", "catalog02", "scrollbars=no,toolbar=no,status=no,resizable=yes, width=300, height=235");
}
function catalog03 (){
	window.open("/eu/catalogue/catalog03/VIEW.HTM", "catalog03", "scrollbars=no,toolbar=no,status=no,resizable=yes, width=300, height=235");
}
function catalog04 (){
	window.open("/eu/catalogue/catalog04/VIEW.HTM", "catalog04", "scrollbars=no,toolbar=no,status=no,resizable=yes, width=300, height=235");
}
// ÇÃ·¡½Ã ¸µÅ© //
function flashAction(param)
{		
	switch(param)
	{
		//»ó´Ü¸Þ´º
		//case "Ä«´Þ·Î±×"				:window.open("http://shindonew.ib-max.com/Catalogue/2007spring.htm", "_blank", "")
		// 	break;
		case "about samick"		:location.href = "/eu/about/greetings.php";
			break;
		case "greetings"		:location.href = "/eu/about/greetings.php";
			break;	
		case "history"		:location.href = "/eu/about/history.php";
			break;	
		case "CI"		:location.href = "/eu/about/ci.php";
			break;	
		case "operations"		:location.href = "/eu/about/global.php";
			break;
		case "dealers"		:location.href = "/eu/about/dealers.php";
			break;
		//products
		case "products"		:location.href = "/eu/products/pianos.php";
			break;
		case "pianos"		:location.href = "/eu/products/pianos.php";
			break;
		case "digital pianos"		:location.href = "/eu/products/digital.php";
			break;
		case "guitars"		:location.href = "/eu/products/guitars.php";
			break;
		case "the others"		:location.href = "/eu/products/others.php";
			break;
		//catalogue
		case "catalougue"		:location.href = "/eu/catalogue/catalogue.php";
			break;
		case "Catalog"		:location.href = "#";
			break;
		//news
		case "samick news"		:location.href = "/eu/news/news.php";
			break;
		case "contact"		:location.href = "/eu/contact/contact.php";
			break;
		//ÁÂÃø¸Þ´º

		case "GrandPianos"		:location.href = "/eu/products/grand_list01.php";
			break;
		case "UprightPianos"		:location.href = "/eu/products/upright_list_class.php";
			break;
		//
		case "classicuprights"		:location.href = "/eu/products/upright_list_class.php";
			break;
		case "stylishuprights"		:location.href = "/eu/products/upright_list_stylish.php";
			break;
		case "millenium"		:location.href = "/eu/products/upright_list_millenium.php";
			break;
		case "dreampiano"		:location.href = "/eu/products/dream.php";
			break;
		//
		case "PianoBuyersGuide"		:location.href = "/eu/products/chapter1.php";
			break;
			
		case "NewSAMICKGrands"		:location.href = "/eu/products/grand_list01.php?s_code=1";
			break;
		case "ConcertPianos"		:location.href = "/eu/products/grand_list_concert.php?s_code=2";
			break;
		case "StudioGrands"		:location.href = "/eu/products/grand_list_studio.php?s_code=3";
			break;
		case "GregBennett"		:location.href = "/eu/products/gregbennett.php";
			break;
		case "Introduction"		:location.href = "/eu/products/gregbennett.php";
			break;
		case "P_Introduction"		:location.href = "/eu/products/introduction.php";
			break;
		case "Electricsolidbodyguitars"		:location.href = "guitars_list.php?l_code=3&m_code=19&s_code=8";
			break;

		case "JazzandSemihollow"		:location.href = "guitars_list.php?l_code=3&m_code=19&s_code=9";
			break;
		case "electricguitars"		:location.href = "#";
			break;
		case "ClassicalGuitars"		:location.href = "guitars_list.php?l_code=3&m_code=19&s_code=18";
			break;

		case "Basses"		:location.href = "guitars_list.php?l_code=3&m_code=19&s_code=10";
			break;
		case "AcousticGuitars"		:location.href = "guitars_list.php?l_code=3&m_code=19&s_code=11";
			break;
		case "ColorCode"		:location.href = "/eu/products/colorcode.php";
			break;
		case "Artist"		:location.href = "/eu/products/artist.php";
			break;
			
		case "Samick"		:location.href = "guitars_list.php?l_code=3&m_code=20&s_code=14";
			break;
		case "AOSeries"		:location.href = "guitars_list.php?l_code=3&m_code=20&s_code=14";
			break;
		case "TASSeries"		:location.href = "guitars_list.php?l_code=3&m_code=20&s_code=15";
			break;
		case "ESeries"		:location.href = "guitars_list.php?l_code=3&m_code=20&s_code=16";
			break;
		case "HGSeries"		:location.href = "guitars_list.php?l_code=3&m_code=20&s_code=17";
			break;
		//IE 7 ¿¡¼­ ¾È¶ä Â÷ÈÄ¼öÁ¤
		case "Silvertone"	: window.open('http://www.silvertoneguitar.com');
			break;
		//others
		case "Flutes"		:location.href = "flutes_list.php?l_code=4&m_code=22";
			break;
		case "Saxophones"		:location.href = "saxophones_list.php?l_code=4&m_code=23";
			break;
		case "Clarinets"		:location.href = "clarinets_list.php?l_code=4&m_code=24";
			break;
		//digital
		case "Symphonia"		:location.href = "/eu/products/digital_list.php";
			break;
		//buyer
		case "CATALOG"		:location.href = "/eu/catalogue/buyer_catalogue.php";
			break;
		case "DOWNLOAD"		:location.href = "/eu/download/logo.php";
			break;
		case "LOGO"		:location.href = "/eu/download/logo.php";
			break;
		case "TECHNICALINFOMATION"	:location.href = "/eu/download/technical.php";
			break;
		case "VARIATION"		:location.href = "/eu/download/variation.php";
			break;
		case "BOARD"		:location.href = "/eu/board/design.php";
			break;
		case "DESIGNSAMICK"		:location.href = "/eu/board/design.php";
			break;
		case "IDEABANK"		:location.href = "/eu/board/idea.php";
			break;
		case "CONTACTUS"		:location.href = "/eu/contact/buyer_contact.php";
			break;
		/* sitemap */
		case "Sitemap"		:location.href = "/eu/sitemap/sitemap.php";
			break;
			
		
		case "samicknews"		:location.href = "/eu/news/news.php";
			break;
			
		default : alert(param);
	}
}
// join
function idcheck(){
	window.open("/eu/members/check.php", "idcheck", "scrollbars=no,toolbar=no,status=no,resizable=yes, width=300, height=200");
}
//privacy
function privacy(){
	window.open("/eu/about/privacy.php", "privacy", "scrollbars=yes,toolbar=no,status=no,resizable=yes, width=617, height=700");
}
