	var enSlideList = ['assets/Uploads/banner/image1.jpg','assets/Uploads/banner/image2.jpg','assets/Uploads/banner/image3.jpg','assets/Uploads/banner/image4.jpg'];
	var krSlideList = ['assets/Uploads/banner/image1.jpg','assets/Uploads/banner/image2.jpg','assets/Uploads/banner/image3.jpg','assets/Uploads/banner/image4.jpg'];
	var jpSlideList = ['assets/Uploads/banner/image1.jpg','assets/Uploads/banner/image3.jpg','assets/Uploads/banner/image4.jpg'];
	var twSlideList = ['assets/Uploads/banner/image1.jpg','assets/Uploads/banner/image2.jpg','assets/Uploads/banner/image3.jpg','assets/Uploads/banner/image4.jpg'];	
	var enSlideShow = new SlideShow(enSlideList, 'feature', 3000, "enSlideShow");
	var krSlideShow = new KRSlideShow(krSlideList, 'feature', 3000, "krSlideShow");
	var jpSlideShow = new JPSlideShow(jpSlideList, 'feature', 3000, "jpSlideShow");
	var twSlideShow = new TWSlideShow(twSlideList, 'feature', 3000, "twSlideShow");

	function SlideShow(slideList, image, speed, name)          
	{
	  this.slideList = slideList;
	  this.image = image;
	  this.speed = speed;
	  this.name = name;
	  this.current = 0;
	  this.timer = 0;
	}
	SlideShow.prototype.play = SlideShow_play;  
	function SlideShow_play()       
	{
	  with(this)
	  {
		if(current++ == slideList.length-1) current = 0;
		switchImage(image, slideList[current]);
		clearTimeout(timer);
		timer = setTimeout(name+'.play()', speed);
	  }
	}
	
	function KRSlideShow(slideList, image, speed, name)          
	{
	  this.slideList = slideList;
	  this.image = image;
	  this.speed = speed;
	  this.name = name;
	  this.current = 0;
	  this.timer = 0;
	}
	KRSlideShow.prototype.play = KRSlideShow_play;  
	function KRSlideShow_play()       
	{
	  with(this)
	  {
		if(current++ == slideList.length-1) current = 0;
		switchImage(image, slideList[current]);
		clearTimeout(timer);
		timer = setTimeout(name+'.play()', speed);
	  }
	}	

	function JPSlideShow(slideList, image, speed, name)          
	{
	  this.slideList = slideList;
	  this.image = image;
	  this.speed = speed;
	  this.name = name;
	  this.current = 0;
	  this.timer = 0;
	}
	JPSlideShow.prototype.play = JPSlideShow_play;  
	function JPSlideShow_play()       
	{
	  with(this)
	  {
		if(current++ == slideList.length-1) current = 0;
		switchImage(image, slideList[current]);
		clearTimeout(timer);
		timer = setTimeout(name+'.play()', speed);
	  }
	}

	function TWSlideShow(slideList, image, speed, name)          
	{
	  this.slideList = slideList;
	  this.image = image;
	  this.speed = speed;
	  this.name = name;
	  this.current = 0;
	  this.timer = 0;
	}
	TWSlideShow.prototype.play = TWSlideShow_play;  
	function TWSlideShow_play()       
	{
	  with(this)
	  {
		if(current++ == slideList.length-1) current = 0;
		switchImage(image, slideList[current]);
		clearTimeout(timer);
		timer = setTimeout(name+'.play()', speed);
	  }
	}	
	function switchImage(imgName, imgSrc) 
	{
	  if (document.images)
	  {
		if (imgSrc != "none")
		{
		  document.images[imgName].src = imgSrc;
		}
	  }
	}
	
		function GoSite(val)
		{
			if(val=="en")
			{
				window.location.href="home";
			}
			else
			{
				window.location.href="home-kr";
			}
		}

	function ShowHide(idName)
	{
	  if (document.getElementById(idName))
	  {
			if(document.getElementById(idName).style.visibility == 'visible')
			document.getElementById(idName).style.visibility = 'hidden';
			else
			document.getElementById(idName).style.visibility =  'visible';
		  
	  }	
	}
	
	function ShowImage(imgSrc)
	{
		switchImage('productImage',imgSrc)
		ShowElement('productImage');
		
	}
	
	function ShowVideo()
	{
		HideElement('productImage');
		ShowElement('productVedio');
	}
	
	
	function ShowElement(idName)
	{
		document.getElementById(idName).style.visibility =  'visible';
	}
	function HideElement(idName)
	{
		document.getElementById(idName).style.visibility = 'hidden';
	}
	
	function SetHTML(idName, innerHTML)
	{
		document.getElementById(idName).innerHTML = innerHTML;
	}
	function SetFrame(frmNo)
	{
		var url = window.location.href;
		window.location.href = url + "DispImg/" + frmNo;
		window.location.href = url;
		
	}
	
	function SetVideo(idName)
	{
		document.getElementById(idName).innerHTML = "<object width='640' height='385'><param name='movie' value='http://www.youtube.com/v/28dG0RFMUy0&hl=en&fs=1&rel=0'></param><param name='allowFullScreen' value='false'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/28dG0RFMUy0&hl=en&fs=1&rel=0' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='false' width='640' height='385'></embed></object>";
	}

		
	function SetVideoParam(idName, videoParam)
	{
		document.getElementById(idName).innerHTML = "<object width='640' height='385'><param name='movie' value='http://www.youtube.com/v/" + videoParam + "&hl=en&fs=1&rel=0'></param><param name='allowFullScreen' value='false'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/" + videoParam + "&hl=en&fs=1&rel=0' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='false' width='640' height='385'></embed></object>";
	}
	
	function SetPicture(idName,imgSrc)
	{
		document.getElementById(idName).innerHTML = "<img src='assets/Uploads/SiteImages/" + imgSrc + "'>";
	}
	
	
	