function MM_reloadPage(init) {  //reloads the window if Nav4 resized
	if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
	document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function calcHeight(the_iframe)
{

var the_height=document.getElementById(the_iframe).contentWindow.document.body.scrollHeight;//find the height of the internal page
document.getElementById(the_iframe).style.height=the_height;//change the height of the iframe

}

function Popup(popup_url)
{

window.open(popup_url,'miniwin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=2,resizable=0,width=517,height=520');

}

//***********************************************************************************************//

function WriteImageMap(){
	document.writeln('<map name="topbar">');
	document.writeln('<area shape="rect" coords="17,26,127,68" href="index.html" alt="JAL Computers Home Page">');
	document.writeln('<area shape="rect" coords="249,2,325,17" href="showroom.html" alt="Showroom">');
	document.writeln('<area shape="rect" coords="501,1,602,18" href="javascript:top.reviewbasket(false)" alt="Review Basket">');
	document.writeln('<area shape="rect" coords="780,4,796,15" href="mailto:info@jal.co.uk" alt="Email JAL Computers">');
	document.writeln('</map>');
}

function DrawMenu(){
	document.writeln('<center><div class="mainmenu">');
	document.writeln('<a href="index.html" class="button">JAL Home</a>');
	document.writeln('<a href="pc_systems.html" class="button">PC Systems</a>');
	document.writeln('<a href="pc_bundles.html" class="button">PC Bundles</a>');
	document.writeln('<a href="peripherals.html" class="button">Peripherals</a>');
	document.writeln('<a href="software.html" class="button">Software</a>');
	document.writeln('<a href="components.html" class="button">Components</a>');
	document.writeln('</div></center>');
}

function Footer(){
	document.writeln('<div id="section"><p>');
	document.writeln('<a class="button" id="linkbar" href="index.html">home</a>');
	document.writeln('<a class="button" id="linkbar" href="pc_systems.html">PC systems</a>');
	document.writeln('<a class="button" id="linkbar" href="pc_bundles.html">PC bundles</a>');
	document.writeln('<a class="button" id="linkbar" href="peripherals.html">peripherals</a>');
	document.writeln('<a class="button" id="linkbar" href="software.html">software</a>');
	document.writeln('<a class="button" id="linkbar" href="contact.html">contact</a>');
	document.writeln('</p></div>');
	document.writeln('<span class="smallprint">©2007 Sartac Ltd, JAL Computers. All pictures are for illustration purposes only.</span>');
	document.writeln('</div>');
	document.writeln('<img src="../images/bottombar.gif">');
	WriteImageMap();
	document.writeln('</div>');
	document.writeln('</body>');
	document.writeln('</html>');
	DrawMenu();
}

function CloseFooter(){
	document.writeln("<div id='section'><p>");
	document.writeln('<a href="javascript:void(0)" onclick="window.print()" class="button" id="linkbar">Print This Page</a>');
	document.writeln('<a href="javascript:void(0)" onclick="self.close()" class="button" id="linkbar">Close This Window</a>');
	document.writeln('<p></div>');
	document.writeln('<span class="smallprint">©2007 Sartac Ltd, JAL Computers. All pictures are for illustration purposes only.</span>');
	document.writeln('</div></div></body></html>');
}