function topmenu(){
document.writeln('	<div style="background-color: #5B2109; padding: 10px; overflow:hidden;" id="t">	');
document.writeln('	<div><a href="/about-us.html"><img src="/images/logo.jpg" height="50px" /></a></div><div id="language_link" style="position: absolute; left: 800px; top: 10px; width: 100px;"></div>');
document.writeln('	</div>	');
document.writeln('	<div style="background: url(/home_banner_images/topmenubg.jpg); width: 100%; height: 40px;">	');
document.writeln('	<ul class="sf-menu"> 	');
document.writeln('	<li> 	');
document.writeln('	<a href="/about-us.html">關於我們</a> 	');
document.writeln('	<ul> 	');
document.writeln('	<li><a href="/chengfen.asp">成份字典</a></li>	');
document.writeln('	</ul> 	');
document.writeln('	</li> 	');
document.writeln('	<li> 	');
document.writeln('	<a href="/Jane%20Iredale.html">Jane Iredale 礦物彩妝</a> 	');
document.writeln('	<ul> 	');
document.writeln('	<li><a href="/Jane%20Iredale01.html">為何選用礦物質彩妝</a></li>	');
document.writeln('	<li><a href="/Jane%20Iredale.html">簡介</a></li>	');
document.writeln('	<li><a href="/Jane%20Iredale02.html">礦物彩妝產品</a></li>	');
document.writeln('	<li><a href="/Jane%20Iredale03.html">關於Jane Iredale</a></li>	');
document.writeln('	<li><a href="http://janeiredale.silverscape.org/" target="_blank">線上試妝</a></li>	');
document.writeln('	</ul> 	');
document.writeln('	</li> 	');
document.writeln('	<li> 	');
document.writeln('	<a href="/Sophyto01.html">Sophyto 有機護膚</a> 	');
document.writeln('	<ul> 	');
document.writeln('	<li><a href="/Sophyto01.html">關於Sophyto有機護膚產品</a></li> 	');
document.writeln('	<li><a href="/Sophyto02.asp">Sophyto護膚產品</a></li>	');
document.writeln('	</ul> 	');
document.writeln('	</li> 	');
document.writeln('	<li> 	');
document.writeln('	<a href="/news.asp">最新消息</a>	');
document.writeln('	</li> 	');
document.writeln('	<li> 	');
document.writeln('	<a href="/contact.html">聯絡我們</a>	');
document.writeln('	</li> 	');
document.writeln('	<li> 	');
document.writeln('	<a href="/buy.html">如何購買</a> 	');
document.writeln('	<ul> 	');
document.writeln('	<li><a href="/buy.html">香港</a></li> 	');
document.writeln('	<li><a href="/buy.html#kowloon">九龍</a></li> 	');
document.writeln('	<li><a href="/buy.html#new_t">新界</a></li> 	');
document.writeln('	<li><a href="/buy05.html">澳門</a></li> 	');
document.writeln('	</ul> 	');
document.writeln('	</li> 	');
document.writeln('	</ul> 	');
document.writeln('	</div>	');

}
function top2(){
	document.writeln('	<div style="background-color: #5B2109; padding: 10px;" id="t">	');
document.writeln('	<div><a href="/about-us-en.html"><img src="/images/logo.jpg" height="50px" /></a></div><div id="language_link" style="position: absolute; left: 800px; top: 10px; width: 100px;"></div>');
document.writeln('	</div>	');
document.writeln('	<div style="background: url(/home_banner_images/topmenubg.jpg); width: 100%; height: 40px;">	');
document.writeln('	<ul class="sf-menu"> 	');
document.writeln('	<li> 	');
document.writeln('	<a href="/about-us-en.html">About Us</a> 	');
document.writeln('	<ul> 	');
document.writeln('	<li><a href="/chengfenEN.asp">Ingredient Dictionary</a></li>	');
document.writeln('	</ul> 	');
document.writeln('	</li> 	');
document.writeln('	<li> 	');
document.writeln('	<a href="/Jane%20IredaleEN.html">Jane Iredale</a> 	');
document.writeln('	<ul> 	');
document.writeln('	<li><a href="/Jane%20IredaleEN01.html">Why Mineral</a></li>	');
document.writeln('	<li><a href="/Jane%20IredaleEN.html">Introduction</a></li>	');
document.writeln('	<li><a href="/Jane%20IredaleEN02.html">Products</a></li>	');
document.writeln('	<li><a href="/Jane%20Iredale03EN.html">About Jane</a></li>	');
document.writeln('	<li><a href="http://janeiredale.silverscape.org/" target="_blank">Makeover Room</a></li>	');
document.writeln('	</ul> 	');
document.writeln('	</li> 	');
document.writeln('	<li> 	');
document.writeln('	<a href="/Sophyto01EN.html">Sophyto Organics</a> 	');
document.writeln('	<ul> 	');
document.writeln('	<li><a href="/Sophyto01EN.html">About Sophyto Organics</a></li> 	');
document.writeln('	<li><a href="/Sophyto02EN.asp">Sophyto Products</a></li>	');
document.writeln('	</ul> 	');
document.writeln('	</li> 	');
document.writeln('	<li> 	');
document.writeln('	<a href="/newsEN.asp">News & Press</a>	');
document.writeln('	</li> 	');
document.writeln('	<li> 	');
document.writeln('	<a href="/contactEN.html">Contact Us</a>	');
document.writeln('	</li> 	');
document.writeln('	<li> 	');
document.writeln('	<a href="/buyEN02.html">Where to Buy</a> 	');
document.writeln('	<ul> 	');
document.writeln('	<li><a href="/buyEN02.html">Hong Kong</a></li> 	');
document.writeln('	<li><a href="/buyEN02.html#kowloon">Kowloon</a></li> 	');
document.writeln('	<li><a href="/buyEN02.html#new_t">New Territories</a></li> 	');
document.writeln('	<li><a href="/buyEN05.html">Macau</a></li> 	');
document.writeln('	</ul> 	');
document.writeln('	</li> 	');
document.writeln('	</ul> 	');
document.writeln('	</div>	');
}

function left_new(){
	document.writeln("<img src='/images/janeiredale_menu_tc.jpg' width='180' usemap='#leftmenumap' border='0' />");
	document.writeln('<map name="leftmenumap">');
	document.writeln('  <area shape="rect" coords="0,30,180,58" href="/Jane%20Iredale01.html" />');
	document.writeln('  <area shape="rect" coords="0,60,180,85" href="/Jane%20Iredale03.html" />');
	document.writeln('  <area shape="rect" coords="0,86,180,110" href="/Jane%20Iredale.html" />');
	document.writeln('  <area shape="rect" coords="0,111,180,134" target="_blank" href="http://janeiredale.silverscape.org/" />');
	document.writeln('  <area shape="rect" coords="0,135,180,162" href="/Jane%20Iredale02.html" />');
	document.writeln('  <area shape="rect" coords="66,162,145,180" href="/Foundations.asp" />');
	document.writeln('  <area shape="rect" coords="66,181,145,195" href="/Blushes.asp" />');
	document.writeln('  <area shape="rect" coords="66,198,145,217" href="/Lips.asp" />');
	document.writeln('  <area shape="rect" coords="66,217,145,235" href="/Eyes.asp" />');
	document.writeln('  <area shape="rect" coords="66,235,145,253" href="/Concealers.asp" />');
	document.writeln('  <area shape="rect" coords="66,253,145,272" href="/FacialSprays.asp" />');
	document.writeln('  <area shape="rect" coords="66,272,145,290" href="/Shimmers.asp" />');
	document.writeln('  <area shape="rect" coords="66,290,145,308" href="/Kits.asp" />');
	document.writeln('  <area shape="rect" coords="66,308,145,325" href="/MakeupBags.asp" />');
	document.writeln('  <area shape="rect" coords="66,325,145,345" href="/Brushes.asp" />');
	document.writeln('  <area shape="rect" coords="66,345,145,361" href="/MagicMitt.asp" />');
	document.writeln('  <area shape="rect" coords="66,361,145,379" href="/man.asp" />');
	document.writeln('</map>');
}

function left_new_en(){
	document.writeln("<img src='/images/janeiredale_menu_en.jpg' width='180' usemap='#leftmenumap' border='0'  />");
	document.writeln('<map name="leftmenumap">');
	document.writeln('  <area shape="rect" coords="0,30,180,58" href="/Jane%20IredaleEN01.html" />');
	document.writeln('  <area shape="rect" coords="0,60,180,85" href="/Jane%20Iredale03EN.html" />');
	document.writeln('  <area shape="rect" coords="0,86,180,110" href="/Jane%20IredaleEN.html" />');
	document.writeln('  <area shape="rect" coords="0,111,180,134" target="_blank" href="http://janeiredale.silverscape.org/" />');
	document.writeln('  <area shape="rect" coords="0,135,180,162" href="/Jane%20IredaleEN02.html" />');
	document.writeln('  <area shape="rect" coords="66,162,145,180" href="/FoundationsEN.asp" />');
	document.writeln('  <area shape="rect" coords="66,181,145,195" href="/BlushesEN.asp" />');
	document.writeln('  <area shape="rect" coords="66,198,145,217" href="/LipsEN.asp" />');
	document.writeln('  <area shape="rect" coords="66,217,145,235" href="/EyesEN.asp" />');
	document.writeln('  <area shape="rect" coords="66,235,145,253" href="/ConcealersEN.asp" />');
	document.writeln('  <area shape="rect" coords="66,253,145,272" href="/ShimmersEN.asp" />');
	document.writeln('  <area shape="rect" coords="66,272,145,290" href="/FacialSpraysEN.asp" />');
	document.writeln('  <area shape="rect" coords="66,290,145,308" href="/KitsEN.asp" />');
	document.writeln('  <area shape="rect" coords="66,308,145,325" href="/MakeupBagsEN.asp" />');
	document.writeln('  <area shape="rect" coords="66,325,145,345" href="/BrushesEN.asp" />');
	document.writeln('  <area shape="rect" coords="66,345,145,361" href="/MagicMittEN.asp" />');
	document.writeln('  <area shape="rect" coords="66,361,145,379" href="/manEN.asp" />');
	document.writeln('</map>');
}

function facebook_icon_add(){
	document.writeln('	<div id="facebook_icon_small" style="display: none;"><a href="http://www.facebook.com/janeiredale.hk" target="_blank"><img src="/images/facebook_icon_small.png" width="25"/></a></div>	');
}

$(document).ready(function(){ 
	$("ul.sf-menu").superfish({ 
			speed:  10
        });

	$("#language_link").html($($(".mainname3")[0]).html()); 
	$("#language_link").append($($(".mainname3")[1]).html());
	$(".mainname3").hide(); 
	$("td>p>span.mainnameCopy").hide(); 
	$("#language_link .mainname3").show(); 
	$("#language_link .mainnameCopy").show(); 
	
	// facebook icon 
	// $("#language_link").append("<span id='facebook_small_icon' ><a href='http://www.facebook.com/janeiredale.hk' target='_blank'><img src='/images/facebook_icon_small.png' /></a></span>")
	// $("#language_link").css('left', '780px').css('width', '150px')
	
	$("ul.sf-menu").append("<li id='facebook_small_icon' ><a href='http://www.facebook.com/janeiredale.hk' target='_blank'><img src='/images/facebook_icon_small.png' /></a></li>")
	$('#facebook_small_icon a').css("padding", "5px")
	
	
}); 
