// script type="text/javascript" language="JavaScript">
// Copyright 2002 Bontrager Connection, LLC
//

function printImage() {
// Type the number of images you are rotating.

NumberOfImagesToRotate = 6;

// Specify the first and last part of the image tag. 

FirstPart = '<img border="0" src="../images/banner';
LastPart = '.jpg" width="750" height="138">';


var r = Math.ceil(Math.random() * NumberOfImagesToRotate);
document.write(FirstPart + r + LastPart);
}


function printImageCover() {
// Type the number of images you are rotating.

NumberOfImagesToRotate = 6;

// Specify the first and last part of the image tag. 

FirstPart = '<img border="0" src="images/cover';
LastPart = '.jpg" width="750" height="346">';


var r = Math.ceil(Math.random() * NumberOfImagesToRotate);
document.write(FirstPart + r + LastPart);
}

// ************************************************************************************************************************
// Suckerfish Menu inits...
// ************************************************************************************************************************
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

// ************************************************************************************************************************
// ENGLISH MENU Script to be embedded
// ************************************************************************************************************************
builtMenu_ENG = function() {
var str01;
str01 = "<div style='position: absolute; width: 551px; height: 38px; z-index: 20; left: 216px; top: 102px' id='MainMenu'>";
str01 = str01 + "<UL id=nav>";
str01 = str01 + "  <LI id=homebutton>";
str01 = str01 + "  <DIV>";
str01 = str01 + "	<a href='../indexhome.htm'>";
str01 = str01 + "	<img border='0' src='buttons/cmdHome.jpg' width='56' height='27' align='left'></a></DIV>";
str01 = str01 + "  </LI>  ";
str01 = str01 + "  <LI id=companybutton>";
str01 = str01 + "  <DIV>";
str01 = str01 + "	<img border='0' src='buttons/cmdCompany.jpg' width='76' height='27' align='left'></DIV>";
str01 = str01 + "	<UL style='position: absolute; left: 0px; top: 27px'>";
str01 = str01 + "    <LI id=company><a href='co_aboutus.htm'>About</a></LI>";
str01 = str01 + "    <LI id=company><a href='co_vision.htm'>Vision & Mission</a></LI>";
str01 = str01 + "    <LI id=company><a href='co_award.htm'>Award & Certificate</a></LI>";	
str01 = str01 + "	</UL></LI>";
str01 = str01 + "  <LI id=coffeebutton>";
str01 = str01 + "  <DIV>";
str01 = str01 + "	<img border='0' src='buttons/cmdCoffee.jpg' width='67' height='27' align='left'></DIV>";
str01 = str01 + "	<UL style='position: absolute; left: 0px; top: 27px'>";
str01 = str01 + "    <LI id=coffee><a href='cfe_history.htm'>History</a></LI>";
str01 = str01 + "    <LI id=coffee><a href='cfe_cfe2cup.htm'>From Tree to Cup</a></LI>";
str01 = str01 + "    <LI id=coffee><a href='cfe_brew.htm'>Brewing Tips</a></LI>	";
str01 = str01 + "    <LI id=coffee><a href='recipe_01.htm'>Recipes</a></LI>";	    
str01 = str01 + "	</UL></LI>";
str01 = str01 + "  <LI id=productbutton>";
str01 = str01 + "  <DIV>";
str01 = str01 + "	<img border='0' src='buttons/cmdProduct.jpg' width='77' height='27' align='left'></DIV>";
str01 = str01 + "	<UL style='position: absolute; left: 0px; top: 27px'>";
str01 = str01 + "    <LI id=product><a href='pmcfe_main.htm'>Coffee</a></LI>";
str01 = str01 + "    <LI id=product><a href='pm_ceremix01.htm'>Cereal</a></LI>";
str01 = str01 + "    <LI id=product><a href='pm_cafe01.htm'>Café</a></LI>";	
str01 = str01 + "	</UL></LI>";
str01 = str01 + "  <LI id=newsbutton>";
str01 = str01 + "  <DIV>";
str01 = str01 + "	<img border='0' src='buttons/cmdNews.jpg' width='59' height='27' align='left'></DIV>";
str01 = str01 + "	<UL style='position: absolute; left: 0px; top: 27px'>";
str01 = str01 + "    <LI id=news><a href='news_event01.htm'>Event</a></LI>";
str01 = str01 + "    <LI id=news><a href='news_promo01.htm'>Promotion</a></LI>";
str01 = str01 + "	</UL></LI>";
str01 = str01 + "  <LI id=employmentbutton>";
str01 = str01 + "  <DIV>";
str01 = str01 + "	<img border='0' src='buttons/cmdEmployment.jpg' width='91' height='27' align='left'></DIV>";
str01 = str01 + "	<UL style='position: absolute; left: 0px; top: 27px'>";
str01 = str01 + "    <LI id=employment><a href='career_main.htm'>People</a></LI>";
str01 = str01 + "    <LI id=employment><a href=' http://202.155.105.45/registrasi/php/menu.php?lng=Eng'>Opportunity</a></LI>";
str01 = str01 + "	</UL></LI>";
str01 = str01 + "  <LI id=contactbutton>";
str01 = str01 + "  <DIV>";
str01 = str01 + "	<a href='contact_main.htm'>";
str01 = str01 + "	<img border='0' src='buttons/cmdContact.jpg' width='80' height='27' align='left'></a></DIV>";
str01 = str01 + "  </LI>";
str01 = str01 + "			</div>";
document.write (str01);
}

// ************************************************************************************************************************
// INDONESIAN MENU Script to be embedded
// ************************************************************************************************************************
builtMenu_INA = function() {
var str01;
str01 = "<div style='position: absolute; width: 551px; height: 38px; z-index: 20; left: 216px; top: 102px' id='MainMenu'>";
str01 = str01 + "<UL id=nav>";
str01 = str01 + "  <LI id=homebutton>";
str01 = str01 + "  <DIV>";
str01 = str01 + "	<a href='../indexhome.htm'>";
str01 = str01 + "	<img border='0' src='buttons/cmdHome.jpg' width='60' height='27' align='left'></a></DIV>";
str01 = str01 + "  </LI>  ";
str01 = str01 + "  <LI id=companybutton>";
str01 = str01 + "  <DIV>";
str01 = str01 + "	<img border='0' src='buttons/cmdCompany.jpg' width='91' height='27' align='left'></DIV>";
str01 = str01 + "	<UL style='position: absolute; left: 0px; top: 27px'>";
str01 = str01 + "    <LI id=company><a href='co_aboutus.htm'>Tentang Perusahaan</a></LI>";
str01 = str01 + "    <LI id=company><a href='co_vision.htm'>Visi & Misi</a></LI>";
str01 = str01 + "    <LI id=company><a href='co_award.htm'>Penghargaan & Sertifikat</a></LI>";	
str01 = str01 + "	</UL></LI>";
str01 = str01 + "  <LI id=coffeebutton>";
str01 = str01 + "  <DIV>";
str01 = str01 + "	<img border='0' src='buttons/cmdCoffee.jpg' width='56' height='27' align='left'></DIV>";
str01 = str01 + "	<UL style='position: absolute; left: 0px; top: 27px'>";
str01 = str01 + "    <LI id=coffee><a href='cfe_history.htm'>Sejarah</a></LI>";
str01 = str01 + "    <LI id=coffee><a href='cfe_cfe2cup.htm'>Dari Pohon ke Cangkir</a></LI>";
str01 = str01 + "    <LI id=coffee><a href='cfe_brew.htm'>Tips Menyeduh Kopi</a></LI>	";
str01 = str01 + "    <LI id=coffee><a href='recipe_01.htm'>Resep</a></LI>";	    
str01 = str01 + "	</UL></LI>";
str01 = str01 + "  <LI id=productbutton>";
str01 = str01 + "  <DIV>";
str01 = str01 + "	<img border='0' src='buttons/cmdProduct.jpg' width='71' height='27' align='left'></DIV>";
str01 = str01 + "	<UL style='position: absolute; left: 0px; top: 27px'>";
str01 = str01 + "    <LI id=product><a href='pmcfe_main.htm'>Kopi</a></LI>";
str01 = str01 + "    <LI id=product><a href='pm_ceremix01.htm'>Sereal</a></LI>";
str01 = str01 + "    <LI id=product><a href='pm_cafe01.htm'>Kafe</a></LI>";	
str01 = str01 + "	</UL></LI>";
str01 = str01 + "  <LI id=newsbutton>";
str01 = str01 + "  <DIV>";
str01 = str01 + "	<img border='0' src='buttons/cmdNews.jpg' width='71' height='27' align='left'></DIV>";
str01 = str01 + "	<UL style='position: absolute; left: 0px; top: 27px'>";
str01 = str01 + "    <LI id=news><a href='news_event01.htm'>Kegiatan</a></LI>";
str01 = str01 + "    <LI id=news><a href='news_promo01.htm'>Promosi</a></LI>";
str01 = str01 + "	</UL></LI>";
str01 = str01 + "  <LI id=employmentbutton>";
str01 = str01 + "  <DIV>";
str01 = str01 + "	<img border='0' src='buttons/cmdEmployment.jpg' width='60' height='27' align='left'></DIV>";
str01 = str01 + "	<UL style='position: absolute; left: 0px; top: 27px'>";
str01 = str01 + "    <LI id=employment><a href='career_main.htm'>SDM</a></LI>";
str01 = str01 + "    <LI id=employment><a href=' http://202.155.105.45/registrasi/php/menu.php?lng=Ina'>Kesempatan Kerja</a></LI>";
str01 = str01 + "	</UL></LI>";
str01 = str01 + "  <LI id=contactbutton>";
str01 = str01 + "  <DIV>";
str01 = str01 + "	<a href='contact_main.htm'>";
str01 = str01 + "	<img border='0' src='buttons/cmdContact.jpg' width='97' height='27' align='left'></a></DIV>";
str01 = str01 + "  </LI>";
str01 = str01 + "			</div>";
document.write (str01);
}
