﻿/*
	change image
*/
function imgOn(imgName) {
	if (imgName!="") { document[imgName].src = eval(imgName + "_o.src"); }
}

function imgOff(imgName) {
	if (imgName!="") { document[imgName].src = eval(imgName + "_n.src"); }
}

/*
	header
*/
function writeHeader(menuNo){
	var comp = "_n";
	its = "_n";
	softs = "_n";
	plass = "_n";
	raree = "_n";
	inq = "_n";
	
	compImg = "company";
	itsImg = "itservice";
	softsImg = "softwaresale";
	plassImg = "plasticsale";
	rareeImg = "rareearth";
	inqImg = "inquiry";

	if (menuNo=="comp"){ comp = "_s"; compImg="";
	} else if (menuNo=="its") { its = "_s"; itsImg="";
	} else if (menuNo=="softs") { softs = "_s"; softsImg="";
	} else if (menuNo=="plass") { plass = "_s"; plassImg="";
	} else if (menuNo=="raree") { raree = "_s"; rareeImg="";
	} else if (menuNo=="inq") { inq = "_s"; inqImg="";
	}
	
	document.write('<table border=0 cellspacing=0 cellpadding=0><tr><td colspan="6"><img src="../../images/banner.jpg" width="800" height="130"></td></tr><tr>');
	document.write('<td><a href="../company/company.html" onmouseover="imgOn(\'' +compImg+ '\');" onmouseout="imgOff(\'' +compImg+ '\');"><img src="../../images/company' +comp+ '.jpg" width="133" height="35" border="0" name=company ></a></td>');
	document.write('<td><a href="../itservices/technology.html" onmouseover="imgOn(\'' +itsImg+ '\');" onmouseout="imgOff(\'' +itsImg+ '\');"><img src="../../images/itservice' +its+ '.jpg" width="133" height="35" border="0" name=itservice ></a></td>');
	document.write('<td><a href="../softwaresale/softwaresale.html" onmouseover="imgOn(\'' +softsImg+ '\');" onmouseout="imgOff(\'' +softsImg+ '\');"><img src="../../images/softwaresale' +softs+ '.jpg" width="133" height="35" border="0" name=softwaresale ></a></td>');
	document.write('<td><a href="../resinsale/resinproxy.html" onmouseover="imgOn(\'' +plassImg+ '\');" onmouseout="imgOff(\'' +plassImg+ '\');"><img src="../../images/plasticsale' +plass+ '.jpg" width="133" height="35" border="0" name=plasticsale ></a></td>');
	document.write('<td><a href="../rareearth/summary.html" onmouseover="imgOn(\'' +rareeImg+ '\');" onmouseout="imgOff(\'' +rareeImg+ '\');"><img src="../../images/rareearth' +raree+ '.jpg" width="133" height="35" border="0" name=rareearth ></a></td>');
	document.write('<td><a href="../inquiry/inquiry.html" onmouseover="imgOn(\'' +inqImg+ '\');" onmouseout="imgOff(\'' +inqImg+ '\');"><img src="../../images/inquiry' +inq+ '.jpg" width="134"height="35" border="0" name=inquiry ></a></td></tr></table>');
}

function writeHeaderImageOnly(){
	document.write('<table border=0 cellspacing=0 cellpadding=0><tr><td colspan="6"><img src="../../images/banner.jpg" width="800" height="130"></td></tr></table>');
}

/*
	footer
*/
function writeFooter(){
document.write('<table class="footer">');
document.write('	<tr>');
document.write('		<td>');
document.write('			&nbsp;© 2009 <a href="../company/company.html" >BBWIT</a> All Rights Reserved');
document.write('			<a href="../common/protect.html" target="_blank">情報保護</a>');
document.write('		</td>');
document.write('	</tr>');
document.write('</table>');

}

function writeFooterImageOnly(){
document.write('<table class="footer">');
document.write('	<tr>');
document.write('		<td>');
document.write('			&nbsp;© 2009 BBWIT All Rights Reserved');
document.write('		</td>');
document.write('	</tr>');
document.write('</table>');

}

function writeCompanySideNavigator(menuNo){
	var comp = "_n";
	busi = "_n";
	revo = "_n";
	acce = "_n";
	ide = "_n";

	compImg = "sub_company";
	busiImg = "sub_business";
	revoImg = "sub_revolution";
	acceImg = "sub_access";
	ideImg = "sub_ideology";

	if (menuNo=="comp"){ comp = "_s"; compImg="";
	} else if (menuNo=="busi") { busi = "_s"; busiImg="";
	} else if (menuNo=="revo") { revo = "_s"; revoImg="";
	} else if (menuNo=="acce") { acce = "_s"; acceImg="";
	} else if (menuNo=="ide") { ide = "_s"; ideImg="";
	}
	
	document.write('<a href="company.html" onmouseover="imgOn(\'' +compImg+ '\');" onmouseout="imgOff(\'' +compImg+ '\');"><img src="../../images/sub_company' +comp+ '.jpg" border="0" name=sub_company></a><br>');
	document.write('<a href="ideology.html" onmouseover="imgOn(\'' +ideImg+ '\');" onmouseout="imgOff(\'' +ideImg+ '\');"><img src="../../images/sub_ideology' +ide+ '.jpg" border="0" name=sub_ideology></a><br>');
	document.write('<a href="business.html" onmouseover="imgOn(\'' +busiImg+ '\');" onmouseout="imgOff(\'' +busiImg+ '\');"><img src="../../images/sub_business' +busi+ '.jpg" border="0" name=sub_business></a><br>');
	document.write('<a href="history.html" onmouseover="imgOn(\'' +revoImg+ '\');" onmouseout="imgOff(\'' +revoImg+ '\');"><img src="../../images/sub_revolution' +revo+ '.jpg" border="0" name=sub_revolution></a><br>');
	document.write('<a href="address.html" onmouseover="imgOn(\'' +acceImg+ '\');" onmouseout="imgOff(\'' +acceImg+ '\');"><img src="../../images/sub_access' +acce+ '.jpg" border="0" name=sub_access></a>');		
}

function writeItserviceSideNavigator(menuNo){
	var tech = "_n";
	cus = "_n";
	dev = "_n";
	
	techImg = "sub_tech";
	cusImg = "sub_customer";
	devImg = "sub_devres";

	if (menuNo=="tech"){ tech = "_s"; techImg="";
	} else if (menuNo=="cus") { cus = "_s"; cusImg="";
	} else if (menuNo=="dev") { dev = "_s"; devImg="";
	}

	document.write('<a href="technology.html" onmouseover="imgOn(\'' +techImg+ '\');" onmouseout="imgOff(\'' +techImg+ '\');"><img src="../../images/sub_tech' +tech+ '.jpg" border="0" name=sub_tech></a><br>');
	document.write('<a href="customer.html" onmouseover="imgOn(\'' +cusImg+ '\');" onmouseout="imgOff(\'' +cusImg+ '\');"><img src="../../images/sub_customer' +cus+ '.jpg" border="0" name=sub_customer></a><br>');
	document.write('<a href="development.html" onmouseover="imgOn(\'' +devImg+ '\');" onmouseout="imgOff(\'' +devImg+ '\');"><img src="../../images/sub_devres' +dev+ '.jpg" border="0" name=sub_devres></a>');
}

function writeInquirySideNavigator(menuNo){
	var inq = "_n";
	rec = "_n";
	wall = "_n";
	
	inqImg = "sub_inq";
	recImg = "sub_recruit";
	wallImg = "sub_wallpaint";	
	
	if (menuNo=="inq"){ inq = "_s"; inqImg="";
	}else if (menuNo=="recr"){ rec = "_s"; recImg="";
	}else if (menuNo=="wall"){ wall = "_s"; wallImg="";
	}

	document.write('<a href="inquiry.html" onmouseover="imgOn(\'' +inqImg+ '\');" onmouseout="imgOff(\'' +inqImg+ '\');"><img src="../../images/sub_inq' +inq+ '.jpg" border="0" name=sub_inq></a><br>');
	document.write('<a href="recruit.html" onmouseover="imgOn(\'' +recImg+ '\');" onmouseout="imgOff(\'' +recImg+ '\');"><img src="../../images/sub_recruit' +rec+ '.jpg" border="0" name=sub_recruit></a><br>');
	document.write('<a href="wallpaint.html" onmouseover="imgOn(\'' +wallImg+ '\');" onmouseout="imgOff(\'' +wallImg+ '\');"><img src="../../images/sub_wallpaint' +wall+ '.jpg" border="0" name=sub_wallpaint></a>');
}

function writeRecruitSideNavigator(menuNo){
	var rec = "_n";
	
	recImg = "sub_recruit";

	if (menuNo=="recr"){ rec = "_s"; recImg="";
	}

	document.write('<a href="recruit.html" onmouseover="imgOn(\'' +recImg+ '\');" onmouseout="imgOff(\'' +recImg+ '\');"><img src="../../images/sub_recruit' +rec+ '.jpg" border="0" name=sub_recruit></a>');
}

function writeResinsaleSideNavigator(menuNo){
	var prox = "_n";	
	food = "_n";
	drug = "_n";
	enz = "_n";
	wwat = "_n";
	soda = "_n";
	sugar = "_n";
	wat = "_n";
	con = "_n";
	prom = "_n";

	proxImg = "sub_resinproxy";	
	foodImg = "sub_resinfood";
	drugImg = "sub_resindrug";
	enzImg = "sub_resinenzyme";
	wwatImg = "sub_resinwastewater";
	sodaImg = "sub_resinsoda";
	sugarImg = "sub_resinsugar";
	watImg = "sub_resinwater";
	conImg = "sub_resincontrol";
	promImg = "sub_resinpromote";

	if (menuNo=="prox"){ prox = "_s"; proxImg="";
	} else if (menuNo=="food"){ food = "_s"; foodImg="";
	} else if (menuNo=="drug"){ drug = "_s"; drugImg="";
	} else if (menuNo=="enz"){ enz = "_s"; enzImg="";
	} else if (menuNo=="wwat"){ wwat = "_s"; wwatImg="";
	} else if (menuNo=="soda"){ soda = "_s"; sodaImg="";
	} else if (menuNo=="sugar"){ sugar = "_s"; sugarImg="";
	} else if (menuNo=="wat"){ wat = "_s"; watImg="";
	} else if (menuNo=="con"){ con = "_s"; conImg="";
	} else if (menuNo=="prom"){ prom = "_s"; promImg="";
	}

	document.write('<a href="resinproxy.html" onmouseover="imgOn(\'' +proxImg+ '\');" onmouseout="imgOff(\'' +proxImg+ '\');"><img src="../../images/sub_resinproxy' +prox+ '.jpg" border="0" name=sub_resinproxy></a><br>');
	document.write('<a href="resinpromote.html" onmouseover="imgOn(\'' +promImg+ '\');" onmouseout="imgOff(\'' +promImg+ '\');"><img src="../../images/sub_resinpromote' +prom+ '.jpg" border="0" name=sub_resinpromote></a><br>');
	document.write('<a href="resinfood.html" onmouseover="imgOn(\'' +foodImg+ '\');" onmouseout="imgOff(\'' +foodImg+ '\');"><img src="../../images/sub_resinfood' +food+ '.jpg" border="0" name=sub_resinfood></a><br>');
	document.write('<a href="resindrug.html" onmouseover="imgOn(\'' +drugImg+ '\');" onmouseout="imgOff(\'' +drugImg+ '\');"><img src="../../images/sub_resindrug' +drug+ '.jpg" border="0" name=sub_resindrug></a><br>');
	document.write('<a href="resinenzyme.html" onmouseover="imgOn(\'' +enzImg+ '\');" onmouseout="imgOff(\'' +enzImg+ '\');"><img src="../../images/sub_resinenzyme' +enz+ '.jpg" border="0" name=sub_resinenzyme></a><br>');
	document.write('<a href="resinwastewater.html" onmouseover="imgOn(\'' +wwatImg+ '\');" onmouseout="imgOff(\'' +wwatImg+ '\');"><img src="../../images/sub_resinwastewater' +wwat+ '.jpg" border="0" name=sub_resinwastewater></a><br>');
	document.write('<a href="resinsoda.html" onmouseover="imgOn(\'' +sodaImg+ '\');" onmouseout="imgOff(\'' +sodaImg+ '\');"><img src="../../images/sub_resinsoda' +soda+ '.jpg" border="0" name=sub_resinsoda></a><br>');
	document.write('<a href="resinsugar.html" onmouseover="imgOn(\'' +sugarImg+ '\');" onmouseout="imgOff(\'' +sugarImg+ '\');"><img src="../../images/sub_resinsugar' +sugar+ '.jpg" border="0" name=sub_resinsugar></a><br>');
	document.write('<a href="resinwater.html" onmouseover="imgOn(\'' +watImg+ '\');" onmouseout="imgOff(\'' +watImg+ '\');"><img src="../../images/sub_resinwater' +wat+ '.jpg" border="0" name=sub_resinwater></a><br>');
	document.write('<a href="resincontrol.html" onmouseover="imgOn(\'' +conImg+ '\');" onmouseout="imgOff(\'' +conImg+ '\');"><img src="../../images/sub_resincontrol' +con+ '.jpg" border="0" name=sub_resincontrol></a>');

}

function writeSoftwaresaleSideNavigator(menuNo){
	var softs = "_n";
	pack ="_n";

	softsImg = "sub_softwaresale";
	packImg = "sub_packetbuilder";

	if (menuNo=="softs"){ softs = "_s"; softsImg="";
	}else if (menuNo=="pack"){ pack = "_s"; packImg="";
	}

	document.write('<a href="softwaresale.html" onmouseover="imgOn(\'' +softsImg+ '\');" onmouseout="imgOff(\'' +softsImg+ '\');"><img src="../../images/sub_softwaresale' +softs+ '.jpg" border="0" name=sub_softwaresale></a><br>');
	document.write('<a href="packetbuilder.html" onmouseover="imgOn(\'' +packImg+ '\');" onmouseout="imgOff(\'' +packImg+ '\');"><img src="../../images/sub_packetbuilder' +pack+ '.jpg" border="0" name=sub_packetbuilder></a>');
}

function writeRareearthSideNavigator(menuNo){
	var summ = "_n";
	proxy = "_n";
	proi = "_n";
	serv = "_n";

	summImg = "sub_rareesummary";
	proxyImg = "sub_rareeproxy";
	proiImg = "sub_rareeproductinfo";
	servImg = "sub_rareeservice";

	if (menuNo=="summ"){ summ = "_s"; summImg="";
	} else if (menuNo=="proxy") { proxy = "_s"; proxyImg="";
	} else if (menuNo=="proi") { proi = "_s"; proiImg="";
	} else if (menuNo=="serv") { serv = "_s"; servImg="";
	}
	
	document.write('<a href="summary.html" onmouseover="imgOn(\'' +summImg+ '\');" onmouseout="imgOff(\'' +summImg+ '\');"><img src="../../images/sub_rareesummary' +summ+ '.jpg" border="0" name=sub_rareesummary></a><br>');
	document.write('<a href="proxy.html" onmouseover="imgOn(\'' +proxyImg+ '\');" onmouseout="imgOff(\'' +proxyImg+ '\');"><img src="../../images/sub_rareeproxy' +proxy+ '.jpg" border="0" name=sub_rareeproxy></a><br>');
	document.write('<a href="productinfo.html" onmouseover="imgOn(\'' +proiImg+ '\');" onmouseout="imgOff(\'' +proiImg+ '\');"><img src="../../images/sub_rareeproductinfo' +proi+ '.jpg" border="0" name=sub_rareeproductinfo></a><br>');
	document.write('<a href="service.html" onmouseover="imgOn(\'' +servImg+ '\');" onmouseout="imgOff(\'' +servImg+ '\');"><img src="../../images/sub_rareeservice' +serv+ '.jpg" border="0" name=sub_rareeservice></a>');
}

function redirectUrl()
{
	window.location.href = "./jpn/html/company/company.html";
}


