﻿var subnavList = new Array(	'product_introduction',	'product_tasting'	);function initProduct(){	init();	var menu = document.getElementById('menu').getElementsByTagName('A');	for (loop=0; loop<menu.length; loop++)	{		var re = new RegExp('#product_', 'g');		var id = menu[loop].hash.replace(re, '');		menu[loop].onclick = window['show' + id];	}}function showSubNav(selectedNav){	for (loop=0; loop<subnavList.length; loop++)	{		var re = new RegExp('product_', 'g');		var subnav_id = subnavList[loop].replace(re, '');		var product_id = subnavList[loop];		if (subnavList[loop] == selectedNav)		{			document.getElementById('subnav_'+subnav_id).className = 'selected';			document.getElementById(product_id).style.display = 'block';		} else {			document.getElementById('subnav_'+subnav_id).className = '';			document.getElementById(product_id).style.display = 'none';		}	}}function showintroduction(){	showSubNav('product_introduction');	this.blur();	return false;}function showtasting(){	showSubNav('product_tasting');	this.blur();	return false;}function launchMedia(obj){	target = 'media';	link = obj.href;	scrx = screen.width;	scry = screen.height;	width = 320;	height = 240;	winX = (scrx/2)-(width/2);	winY = (scry/2)-(height/2);	enlargementWin = open(link, target, 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no,scrollbars=no,width='+width+',height='+height+',left='+winX+',top='+winY+',screenX='+winX+',screenY='+winY+',resizeable=no');	enlargementWin.moveTo(winX,winY);	enlargementWin.focus();	return false;}if (document.getElementById){	document.write('<style type="text/css" media="screen">#product_introduction { display: block; } #product_tasting { display: none; }</style>');	window.onload = initProduct;}
