var pagePass;
pagePass = document.URL;

//　Level 1
function company(){
	if(pagePass.indexOf('company') !== -1){
		document.write('<li><img src="/imgs/snavi/snavi_company_act.gif" alt="Company" title="Company" width="200" height="22" /><br />');
	}else{
		document.write('<li><img src="/imgs/snavi/snavi_company.gif" alt="Company" title="Company" width="200" height="22" /><br />');
	}
}
function products(){
	if(pagePass.indexOf('products') !== -1){
		document.write('<li><img src="/imgs/snavi/snavi_products_act.gif" alt="Products" title="Products" width="200" height="22" /><br />');
	}else{
		document.write('<li><img src="/imgs/snavi/snavi_products.gif" alt="Products" title="Products" width="200" height="22" /><br />');
	}
}

//　Level 2

// company
function message(){
	if(pagePass.indexOf('message') !== -1){
		document.write('<li><a href="/company/message/" title="Message from the president"><img src="/imgs/snavi/snavi_message_act.gif" alt="Message from the president" title="Message from the president" width="200" height="22" /></a></li>');
	}else{
		document.write('<li><a href="/company/message/" title="Message from the president"><img src="/imgs/snavi/snavi_message.gif" class="imgover" alt="Message from the president" title="Message from the president" width="200" height="22" /></a></li>');
	}
}
function profile(){
	if(pagePass.indexOf('profile') !== -1){
		document.write('<li><a href="/company/profile/" title="Company　profile"><img src="/imgs/snavi/snavi_profile_act.gif" alt="Company　profile" title="Company　profile" width="200" height="22" /></a></li>');
	}else{
		document.write('<li><a href="/company/profile/" title="Company　profile"><img src="/imgs/snavi/snavi_profile.gif" class="imgover" alt="Company　profile" title="Company　profile" width="200" height="22" /></a></li>');
	}
}
function history(){
	if(pagePass.indexOf('history') !== -1){
		document.write('<li><a href="/company/history/" title="History"><img src="/imgs/snavi/snavi_history_act.gif" alt="History" title="History" width="200" height="22" /></a></li>');
	}else{
		document.write('<li><a href="/company/history/" title="History"><img src="/imgs/snavi/snavi_history.gif" class="imgover" alt="History" title="History" width="200" height="22" /></a></li>');
	}
}
function sales(){
	if(pagePass.indexOf('sales') !== -1){
		document.write('<li><a href="/company/sales/" title="Sales Data"><img src="/imgs/snavi/snavi_sales_act.gif" alt="Sales Data" title="Sales Data" width="200" height="22" /></a></li>');
	}else{
		document.write('<li><a href="/company/sales/" title="Sales Data"><img src="/imgs/snavi/snavi_sales.gif" class="imgover" alt="Sales Data" title="Sales Data" width="200" height="22" /></a></li>');
	}
}

// products
function ochazuke(){
	if(pagePass.indexOf('ochazuke') !== -1){
		document.write('<li><a href="/products/ochazuke/" title="Ochazuke"><img src="/imgs/snavi/snavi_ochazuke_act.gif" alt="Ochazuke" title="Ochazuke" width="200" height="22" /></a></li>');
	}else{
		document.write('<li><a href="/products/ochazuke/" title="Ochazuke"><img src="/imgs/snavi/snavi_ochazuke.gif" class="imgover" alt="Ochazuke" title="Ochazuke" width="200" height="22" /></a></li>');
	}
}
function furikake(){
	if(pagePass.indexOf('furikake') !== -1){
		document.write('<li><a href="/products/furikake/" title="Furikake"><img src="/imgs/snavi/snavi_furikake_act.gif" alt="Furikake" title="Furikake" width="200" height="22" /></a></li>');
	}else{
		document.write('<li><a href="/products/furikake/" title="Furikake"><img src="/imgs/snavi/snavi_furikake.gif" class="imgover" alt="Furikake" title="Furikake" width="200" height="22" /></a></li>');
	}
}
function fried_rice_mix(){
	if(pagePass.indexOf('fried_rice_mix') !== -1){
		document.write('<li><a href="/products/fried_rice_mix/" title="Fried Rice Mix"><img src="/imgs/snavi/snavi_fried_rice_mix_act.gif" alt="Fried Rice Mix" title="Fried Rice Mix" width="200" height="22" /></a></li>');
	}else{
		document.write('<li><a href="/products/fried_rice_mix/" title="Fried Rice Mix"><img src="/imgs/snavi/snavi_fried_rice_mix.gif" class="imgover" alt="Fried Rice Mix" title="Fried Rice Mix" width="200" height="22" /></a></li>');
	}
}
function soup(){
	if(pagePass.indexOf('soup') !== -1){
		document.write('<li><a href="/products/soup/" title="Soup"><img src="/imgs/snavi/snavi_soup_act.gif" alt="Soup" title="Soup" width="200" height="22" /></a></li>');
	}else{
		document.write('<li><a href="/products/soup/" title="Soup"><img src="/imgs/snavi/snavi_soup.gif" class="imgover" alt="Soup" title="Soup" width="200" height="22" /></a></li>');
	}
}
function sushi_seasoning(){
	if(pagePass.indexOf('sushi_seasoning') !== -1){
		document.write('<li><a href="/products/sushi_seasoning/" title="Sushi seasoning"><img src="/imgs/snavi/snavi_sushi_seasoning_act.gif" alt="Sushi seasoning" title="Sushi seasoning" width="200" height="22" /></a></li>');
	}else{
		document.write('<li><a href="/products/sushi_seasoning/" title="Sushi seasoning"><img src="/imgs/snavi/snavi_sushi_seasoning.gif" class="imgover" alt="Sushi seasoning" title="Sushi seasoning" width="200" height="22" /></a></li>');
	}
}
function noodle(){
	if(pagePass.indexOf('noodle') !== -1){
		document.write('<li><a href="/products/noodle/" title="Noodle"><img src="/imgs/snavi/snavi_noodle_act.gif" alt="Noodle" title="Noodle" width="200" height="22" /></a></li>');
	}else{
		document.write('<li><a href="/products/noodle/" title="Noodle"><img src="/imgs/snavi/snavi_noodle.gif" class="imgover" alt="Noodle" title="Noodle" width="200" height="22" /></a></li>');
	}
}
function korean_package(){
	if(pagePass.indexOf('korean_package') !== -1){
		document.write('<li><a href="/products/korean_package/" title="Korean  Package"><img src="/imgs/snavi/snavi_korean_package_act.gif" alt="Korean  Package" title="Korean  Package" width="200" height="22" /></a></li>');
	}else{
		document.write('<li><a href="/products/korean_package/" title="Korean  Package"><img src="/imgs/snavi/snavi_korean_package.gif" class="imgover" alt="Korean  Package" title="Korean  Package" width="200" height="22" /></a></li>');
	}
}
function more_in_japan(){
	if(pagePass.indexOf('more_in_japan') !== -1){
		document.write('<li><a href="http://www.nagatanien.co.jp/r_category/index.php?p_index=1" title="More in Japan"><img src="/imgs/snavi/snavi_more_in_japan_act.gif" alt="More in Japan" title="More in Japan" width="200" height="22" /></a></li>');
	}else{
		document.write('<li><a href="http://www.nagatanien.co.jp/r_category/index.php?p_index=1" title="More in Japan"><img src="/imgs/snavi/snavi_more_in_japan.gif" class="imgover" alt="More in Japan" title="More in Japan" width="200" height="22" /></a></li>');
	}
}


// html
document.write('<ul class="sNavi">');
company();
document.write('<ul class="sNaviSub">');
message();
profile();
history();
sales();
document.write('</ul>');
document.write('</li>');
products();
document.write('<ul class="sNaviSub">');
sushi_seasoning();
ochazuke();
furikake();
fried_rice_mix();
noodle();
soup();
korean_package();
more_in_japan();
document.write('</ul>');
document.write('</li>');
document.write('</ul>');

