<!--
	function showbigger(filename) {
		window.open(filename,'_blank','width=520, height=420');
		}

	function addfavourite(productnew, costnew, quantitynew, productselect, ordercode1, ordercode2, ordercode3, ordercode4, ordercode5, ordercode6) {
		if (quantitynew <= 0) {
			rc = alert('Please enter a correct quantity!');
		} else {
			if (confirm('Add '+productnew+' stock number '+ordercode1+' to Favourites?')) {
				idx = document.cookie.indexOf("ShoppingTrolley");
				startcnt = (document.cookie.indexOf("=", idx) + 1);
        			endcnt = document.cookie.indexOf(";", idx);
	        		if (endcnt == -1) {
        	    			endcnt = document.cookie.length;
	        		}
				expires = setexpdate();
		                document.cookie="ShoppingTrolley="+document.cookie.substring(startcnt, endcnt)+"["+productnew+"|"+costnew+"|"+ordercode1+"|"+ordercode2+"|"+ordercode3+"|"+ordercode4+"|"+ordercode5+"]" + "; expires=" + expires.toGMTString() + "; path=/";
			cookstr=document.cookie;
			}
		}
	}

	function bike_enquiry(productnew, costnew, quantitynew, productselect, ordercode1, ordercode2, ordercode3, ordercode4, ordercode5, ordercode6) {
		if (quantitynew <= 0) {
			rc = alert('Please enter a correct quantity!');
		} else {
			filename="bike_enquiry_form.pl?bike_type="+productnew+"&bike_cost="+costnew+"&bike_color="+ordercode2+"&stocknum="+ordercode1+"&picname="+ordercode5;			
			window.open(filename,'_blank','width=520, height=500');
			}
	}

	


	function setexpdate() {
		var	expdate = new Date();
		expdate.setTime (expdate.getTime() +( 1000 * 60 * 60 * 24 * 1));
		return (expdate);
	}


	function resetnow() {
		if(!(document.cookie)) {
		expires = setexpdate();
                idx = document.cookie.indexOf("ShoppingTrolley");
		document.cookie="ShoppingTrolley=." + "; expires = " + expires.toGMTString() + "; path=/";
		cookstr = document.cookie;
		}
		if (document.cookie) {
                } else {
                  alert('Cookies are disabled.\nThis shop requires cookies to process your orders, please activate cookies in your settings and press reload or refresh.');
                }

	}


//-->

var clicked=""
var gtype=".gif"
var selstate="_over"
if (typeof(loc)=="undefined" || loc==""){
	var loc=""
	if (document.body&&document.body.innerHTML){
		var tt = document.body.innerHTML.toLowerCase();
		var last = tt.indexOf("nav.js\"");
		if (last>0){
			var first = tt.lastIndexOf("\"", last);
			if (first>0 && first<last) loc = document.body.innerHTML.substr(first+1,last-first-1);
		}
	}
}

document.write("<table width=\"145\" valign=\top\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\"storepics/menufade2.jpg\"><tr><td>");
document.write("<A HREF=\"index2.htm\"><IMG SRC=\"storepics/IMI_sml_logo.gif\" alt=\"Click here for Home Page\" border=\"0\"></A><BR><BR></td>");
tr(false);
document.write("<tr><td><img src=\"storepics/spacer.gif\" border=\"0\"><img src=\"storepics/nav_spacer.gif\" border=\"0\"></td></tr>");

writeButton(loc+"../","ducati.htm","nav_b1",130,15,"Ducati Bikes","_self",0);
writeButton(loc+"../","honda.htm","nav_b2",130,15,"Honda Bikes","_self",0);
writeButton(loc+"../","kawasaki.htm","nav_b3",130,15,"kawasaki Bikes","_self",0);
writeButton(loc+"../","suzuki.htm","nav_b4",130,15,"Suzuki Bikes","_self",0);
writeButton(loc+"../","yamaha.htm","nav_b5",130,15,"Yamaha Bikes","_self",0);
writeButton(loc+"../","learner_bikes.htm","nav_b6",130,15,"Learner Bikes","_self",0);
writeButton(loc+"../","motorcross.htm","nav_b12",130,15,"Motorcross","_self",0);
writeButton(loc+"../","miscellaneous.htm","nav_b26",130,15,"Miscellaneous","_self",0);
writeButton(loc+"../","learner_packs.htm","nav_b21",130,15,"Learner Packs","_self",0);
writeButton(loc+"../","accessories.htm","nav_b13",130,15,"Accessories","_self",0);
document.write("<tr><td><img src=\"storepics/spacer.gif\" border=\"0\"><img src=\"storepics/nav_spacer.gif\" border=\"0\"></td></tr>");
document.write("<tr><td><BR></td></tr>");
document.write("<tr><td><img src=\"storepics/spacer.gif\" border=\"0\"><img src=\"storepics/nav_spacer.gif\" border=\"0\"></td></tr>");
writeButton(loc+"../","favourites.htm","nav_b15",130,15,"Favourites","_self",0);
writeButton(loc+"../","events.htm","nav_b14",130,15,"Events","_self",0);
writeButton(loc+"../","about_us.htm","nav_b16",130,15,"About us","_self",0);
writeButton(loc+"../","our_location.htm","nav_b22",130,15,"Our Location","_self",0);
writeButton(loc+"../","contact_us.htm","nav_b17",130,15,"Contact us","_self",0);
writeButton(loc+"../","links.htm","nav_b18",130,15,"Links","_self",0);
document.write("<tr><td><img src=\"storepics/spacer.gif\" border=\"0\"><img src=\"storepics/nav_spacer.gif\" border=\"0\"></td></tr>");
document.write("<tr><td><BR><BR><BR><BR><BR><BR><BR><BR></td></tr>");
tr(true);
document.write("</tr></table>")
loc="";

function tr(b){if (b) document.write("<tr>");else document.write("</tr>");}

function turn_over(name) {
	if (document.images != null && clicked != name) {
		document[name].src = document[name+"_over"].src;
	}
}

function turn_off(name) {
	if (document.images != null && clicked != name) {
		document[name].src = document[name+"_off"].src;
	}
}

function reg(gname,name)
{
if (document.images)
	{
	document[name+"_off"] = new Image();
	document[name+"_off"].src = loc+gname+gtype;
	document[name+"_over"] = new Image();
	document[name+"_over"].src = loc+gname+"_over"+gtype;
	}
}

function evs(name){ return " onmouseover=\"turn_over('"+ name + "')\" onmouseout=\"turn_off('"+ name + "')\""}

function writeButton(urld, url, name, w, h, alt, target, hsp)
{
	gname = name;
	while(typeof(document[name])!="undefined") name += "x";
	reg(gname, name);
	tr(true);
	document.write("<td><img src=\"storepics/spacer.gif\" border=\"0\">");
	if (alt != "") alt = " alt=\"" + alt + "\"";
	if (target != "") target = " target=\"" + target + "\"";
	if (w > 0) w = " width=\""+w+"\""; else w = "";
	if (h > 0) h = " height=\""+h+"\""; else h = "";	
	if (url != "") url = " href=\"" + urld + url + "\"";
	
	document.write("<a " + url + evs(name) + target + ">");	
	
	if (hsp == -1) hsp =" align=\"right\"";
	else if (hsp > 0) hsp = " hspace=\""+hsp+"\"";
	else hsp = "";
	
	document.write("<img src=\""+loc+gname+gtype+"\" name=\"" + name + "\"" + w + h + alt + hsp + " border=\"0\" /></a></td>");
	tr(false);
}
