/***********************************************
* Pop-it menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var defaultMenuWidth="300px" //set default menu width.

var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT

linkset[0]='<center><table bgcolor="red" width="300"><tr><td><center><b><font size="-1">Click the text below to open their links</font></b></center></td></tr></table></center>'
linkset[0]+='<table><tr><td><IMG src="http://www.visitsubic.com/images/discoverdive.gif" align="center"></td><td>	<a href="http://www.seahorsetours.com/discover.html" target="_blank"><font size="-2"><u><font color="blue">Scuba Diving:</font></u> The tourism office for the area calls Subic Bay the "Pearl of the Orient" and much like a pearl, it value is hidden unless you know where to look.</font></a></td></tr></table>'
linkset[0]+='<table><tr><td><IMG src="http://www.visitsubic.com/images/photography.gif" align="center"></td><td>	<a href="http://www.seaplane-philippines.com/" target="_blank"><u><font size="-2"><font color="blue">Subic Seaplane, Inc.:</font></u> Operates a non-scheduled charter seaplane service from the Subic Bay Freeport Zone in the Philippines.</font></a></td></tr></table>'
linkset[0]+='<table><tr><td> <IMG src="http://www.visitsubic.com/images/slide.gif" align="center"></td><td>		<a href="http://www.seahorsetours.com/" target="_blank"><u><font size="-2"><font color="blue">Seahorse Tours:</font></u> Subic bay has long been known for it\'s beaches and water sports, but the area has so much more to offer, all types of adventure activities, theme parks, jungles to explore, a wide range of hotels, resorts and night life.</font></a></td></tr></table>'
linkset[0]+='<table><tr><td> <IMG src="http://www.visitsubic.com/images/new_photo02.gif" align="center"></td><td>	<a href="http://www.visitsubic.com/treetop.html" target="_blank"><u><font size="-2"><font color="blue">Tree Top Adventure:</font></u> A park where the beauty of unspoiled forest presents itself as a perfect backdrop for your holiday activity.</font></a></td></tr></table>'
linkset[0]+='<table><tr><td> <IMG src="http://www.visitsubic.com/images/dolphin.gif" align="center"></td><td>		<a href="http://www.oceanadventure.com.ph/" target="_blank"><u><font size="-2"><font color="blue">Ocean Adventure Park:</font></u> Is a very good introduction to marine conservation using large marine animals. The leading stars of the shows are the False Killer whales and the dolphins.</font></a></td></tr></table>'
linkset[0]+='<table><tr><td> <IMG src="http://www.visitsubic.com/images/safariride06.gif" align="center"></td><td>	<a href="http://www.zoobic.com.ph/" target="_blank"><u><font size="-2"><font color="blue">Zoobic Safari:</font></u> Is one attraction you will find at Subic Bay Freeport\'s Forest Adventure Park. Embracing a 25 hectare land - local and foreign guests can expect an astonishing sight of diverse exotic animals roaming and frolicking in their natural habitat.</font></a></td></tr></table>'
linkset[0]+='<table><tr><td> <IMG src="http://www.visitsubic.com/images/new_photo01.gif" align="center"></td><td>	<a href="http://www.visitsubic.com/elkabayo.html" target="_blank"><u><font size="-2"><font color="blue">The EL Kabayo Equestrian Center:</font></u> In the Binictican area of SBF offers a wide range of horse related activities. The center uses horses imported from the U.S., Argentina, and Australia.</font></a></td></tr></table>'
linkset[0]+='<table><tr><td><IMG src="http://www.visitsubic.com/images/2car.gif" align="center"></td><td>		<a href="http://www.visitsubic.com/sir.html" target="_blank"><u><font size="-2"><font color="blue">The Subic International Raceway:</font></u> A 2.9 kilometer circuit with 12 turns, has been the venue for both local & international races.</font></a></td></tr></table>'
linkset[0]+='<table><tr><td> <IMG src="http://www.visitsubic.com/images/n2.tsc.gif" align="center"></td><td>		<a href="http://www.tscmovies.com/" target="_blank"><u><font size="-2"><font color="blue">Subic Bay Times Square Cinemas:</font></u> Is equipped with state of the art projection and audio equipment using Dolby Sound.</font></a></td></tr></table>'


linkset[1]='<a href="#" onclick=expandcontent("sc1") ><u><font color="blue">Barrio Barretto Bar Prices</font></u></a>'
linkset[1]+='<a href="#" onclick=expandcontent("sc2") ><u><font color="blue">Calapandayan Bar Prices</font></u></a>'

linkset[2]='<a href="AC to Subic.php"><u><font color="blue">AC to Subic</font></u></a>'
linkset[2]+='<a href="Subic Main Tour.php"><u><font color="blue">Subic Main Rd Tour</font></u></a>'
linkset[2]+='<a href="Subic Sunset.php"><u><font color="blue">Subic at Sunset</font></u></a>'
linkset[2]+='<a href="SubicBay.php"><u><font color="blue">Subic Bay on the Water</font></u></a>'



linkset[3]='<a href="http://dynamicdrive.com">Dynamic Drive</a>'
linkset[3]+='<hr>' //Optional Separator
linkset[3]+='<a href="http://www.javascriptkit.com">JavaScript Kit</a>'
linkset[3]+='<a href="http://www.codingforums.com">Coding Forums</a>'
linkset[3]+='<a href="http://www.cssdrive.com">CSS Drive</a>'
linkset[3]+='<a href="http://freewarejava.com">Freewarejava</a>'

////No need to edit beyond here

var ie5=document.all && !window.opera
var ns6=document.getElementById

if (ie5||ns6)
document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')

function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}

function showmenu(e, which, optWidth){
if (!document.all&&!document.getElementById)
return
clearhidemenu()
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=which
menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth
menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
eventX=ie5? event.clientX : e.clientX
eventY=ie5? event.clientY : e.clientY
eventY+=10
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+"px" : window.pageXOffset+eventX-menuobj.contentwidth+"px"
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX+"px" : window.pageXOffset+eventX+"px"
//same concept with the vertical position
menuobj.style.top=ie5? iecompattest().scrollTop+event.clientY+"px" : window.pageYOffset+eventY+"px"
menuobj.style.visibility="visible"
return false
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.style.visibility="hidden"
}

function dynamichide(e){
if (ie5&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("hidemenu()",250)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

if (ie5||ns6)
document.onclick=hidemenu