browser_version= parseInt(navigator.appVersion);
browser_type = navigator.appName;

if (browser_type == "Microsoft Internet Explorer" && (browser_version >= 4)) {
document.write("<link REL='stylesheet' HREF='style.css' TYPE='text/css'>");
} 

else if (browser_type == "Netscape" && (browser_version >= 4)) {
document.write("<link REL='stylesheet' HREF='netstyle.css' TYPE='text/css'>");
}

/*
Tabs Menu (mouseover)- By Dynamic Drive
For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
This credit MUST stay intact for use
*/

var submenu=new Array()

//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.
 
submenu[0]='<font size="2" face="Verdana" ><b>The complete Driver Theory Test Online Manual!</b></font>'

submenu[1]='<font size="2" face="Verdana"><b><a href="http://www.1stdrivertheorytest.com/driver-theory-test-ireland.html#testfees">Fees</a> | <a href="http://www.1stdrivertheorytest.com/driver-theory-test-ireland.html#booktest">Booking</a> | <a href="http://www.1stdrivertheorytest.com/driver-theory-test-ireland.html#testtypes">Test Types</a> | <a href="http://www.1stdrivertheorytest.com/driver-theory-test-ireland.html#testdescription">Test Description</a> | <a href="http://www.1stdrivertheorytest.com/driver-theory-test-ireland.html#nextsteps">What next</a> | <a href="http://www.1stdrivertheorytest.com/driver-theory-test-ireland.html#testcentres">Test Centres</a></b></font>'

submenu[2]='<font size="2" face="Verdana"><b><a href="http://www.1stdrivertheorytest.com/driving-licence-ireland.html#provisionallicence">Provisional Licence</a> | <a href="http://www.1stdrivertheorytest.com/driving-licence-ireland.html#fulllicence">Full Licence</a> | <a href="http://www.1stdrivertheorytest.com/driving-licence-ireland.html#internationaldrivers">International Drivers</a></b></font>'

submenu[3]='<font size="2" face="Verdana"><b><a href="http://www.1stdrivertheorytest.com/driving-tax-ireland.html#introtax">Intro</a> | <a href="http://www.1stdrivertheorytest.com/driving-tax-ireland.html#taxcosts">Costs</a> | <a href="http://www.1stdrivertheorytest.com/driving-tax-ireland.html#taxexemptions">Exemptions</a> | <a href="http://www.1stdrivertheorytest.com/driving-tax-ireland.html#changevehicle">Change of Vehicle</a> | <a href="http://www.1stdrivertheorytest.com/driving-tax-ireland.html#taxlose">Lost Disc</a> | <a href="http://www.1stdrivertheorytest.com/driving-tax-ireland.html#taxapply">Apply/Renew</a></b></font>'




submenu[4]='<font size="2" face="Verdana"><b><a href="http://www.1stdrivertheorytest.com/buying-car-ireland.html#buyintro">1st Steps</a> | <a href="http://www.1stdrivertheorytest.com/buying-car-ireland.html#vrt">VRT</a> | <a href="http://www.1stdrivertheorytest.com/buying-car-ireland.html#buyimported">Imported Vehicles</a> | <a href="http://www.1stdrivertheorytest.com/buying-car-ireland.html#taxinsurance">Tax/Insurance</a> | <a href="http://www.1stdrivertheorytest.com/buying-car-ireland.html#regplates">Reg Plates</a></b></font>'



submenu[5]='<font size="2" face="Verdana"><b><a href="http://www.1stdrivertheorytest.com/driving-insurance-ireland.html#insuranceintro">Intro</a> | <a href="http://www.1stdrivertheorytest.com/driving-insurance-ireland.html#insurancecosts">Costs</a> | <a href="http://www.1stdrivertheorytest.com/driving-insurance-ireland.html#insurancelower">Reducing Costs</a> | <a href="http://www.1stdrivertheorytest.com/driving-insurance-ireland.html#pointssystem">Points System</a> | <a href="http://www.1stdrivertheorytest.com/driving-insurance-ireland.html#roadrisks">Road Risks</a></b></font>'



//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=500

/////No need to edit beyond here

var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""

function showit(which){
clear_delayhide()
thecontent=(which==-1)? "" : submenu[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
}
}

function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("showit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",delay_hide)
}

function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
