/***********************************************
* 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="150px" //set default menu width.

var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT


// news menu
linkset[0]='<a href="/blogs/blog1.php">PVFC In the News</a>'
linkset[0]+='<a href="/blogs/blog1.php?disp=arcdir">Archived Information</a>'

// organization menu
linkset[1]='<a href="officers.php">Officers</a>'
linkset[1]+='<a href="dutycrews.php">Duty Crews</a>'
linkset[1]+='<a href="www.engine2tower.com">Career Staff</a>'
linkset[1]+='<a href="battalion2.php">Battalion 2</a>'
linkset[1]+='<a href="auxiliary.php">Auxiliary</a>'
linkset[1]+='<a href="memberlist.php">Unassigned</a>'

// equipment menu
linkset[2]='<a href="equipment.php">Equipment Overview</a>'
linkset[2]+='<a href="engines.php">Engines</a>'
linkset[2]+='<a href="tools.php">Tools</a>'
linkset[2]+='<a href="uniforms.php">Uniforms</a>'
linkset[2]+='<a href="miscequip.php">Miscellaneous</a>'

// training menu
linkset[3]='<a href="training.php">Training Overview</a>'
linkset[3]+='<a href="mandatorytraining.php">Mandatory Training</a>'
linkset[3]+='<a href="trainingcal.php">Training Calendar</a>'

// kid pages menu
linkset[4]='<a href="interestingacts.php">Interesting Facts</a>'
linkset[4]+='<a href="safetyinfo.php">Safety Information</a>'
linkset[4]+='<a href="games.php">Games</a>'
linkset[4]+='<a href="visitfirehouse.php">Visit the Firehouse</a>'


// new house menu
linkset[5]='<a href="newhouse.php">New Station</a>'
linkset[5]+='<a href="blueprints.php">Blue Prints</a>'
linkset[5]+='<a href="newstationcontractors.php">Contractors</a>'

// fund raising menu
linkset[6]='<a href="donations.php">Donations</a>'
linkset[6]+='<a href="treesales.php">Tree Sales</a>'
linkset[6]+='<a href="howtosponsor.php">How to Sponsor</a>'

// duty crew menu
linkset[7]='<a href="dutycrews.php">Duty Crew Info</a>'
linkset[7]+='<a href="dutycrew1.php">Duty Crew 1</a>'
linkset[7]+='<a href="dutycrew2.php">Duty Crew 2</a>'
linkset[7]+='<a href="dutycrew3.php">Duty Crew 3</a>'
linkset[7]+='<a href="dutycrew4.php">Duty Crew 4</a>'
linkset[7]+='<a href="dutycrew5.php">Duty Crew 5</a>'
linkset[7]+='<a href="dutycrew6.php">Duty Crew 6</a>'

// history menu
linkset[8]='<a href="aboutus.php">About Us</a>'
linkset[8]+='<a href="history.php">History of Locations</a>'

// administration menu
linkset[9] = '<a href="directors.php">Directors</a>'
linkset[9] += '<a href="bylaws.php">By-Laws</a>'

// operations menu
linkset[10]='<a href="apparatus.php">Apparatus</a>'
linkset[10]+='<a href="training.php">Training</a>'
linkset[10]+='<a href="/blogs/blog2.php">Incident Log</a>'
linkset[10]+='<a href="responsearea.php">Response Area</a>'


//about us menu
linkset[11]='<a href="aboutus.php">About Us</a>'
linkset[11]+='<a href="history.php">History of Location</a>'
linkset[11]+='<a href="mission.php">Mission Profile</a>'
linkset[11]+='<a href="personnel.php">Organization</a>'

//join us menu
linkset[12]='<a href="applyonline.php">On-Line Application</a>'
linkset[12]+='<a href="joinus.php">Information on Joining</a>'
linkset[12]+='<a href="faq.php">Frequently Asked Questions</a>'



// apparatus menu
linkset[14] = '<a href="ER602.php">Rescue Engine 602</a>'
linkset[14] += '<a href="engine602.php">Engine 602</a>'
linkset[14] += '<a href="tower602.php">Tower 602</A>'
linkset[14] += '<a href="tanker602.php">Tanker 602</A>'
linkset[14] += '<a href="brush2.php">Brush 602</A>'
linkset[14] += '<A href="jeep2.php">Jeep 602</A>'
linkset[14] += '<A href="serv2.php">SERV 602</A>'
linkset[14] += '<A href="retired.php">Past Apparatus</A>'

// kid games menu
linkset[15] = '<a href="crossword.php">Crossword Puzzle</a>'
linkset[15] += '<a href="stretcher.php">Burning Buildng Rescue (Easier)</A>'
linkset[15] += '<a href="stretcher2.php">Burning Buildng Rescue (Medium)</A>'
linkset[15] += '<a href="hosegame.php">Hose Game</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
//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
if (bottomedge<menuobj.contentheight)
menuobj.style.top=ie5? iecompattest().scrollTop+eventY-menuobj.contentheight+"px" : window.pageYOffset+eventY-menuobj.contentheight+"px"
else
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()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

if (ie5||ns6)
document.onclick=hidemenu


/***************************************************************
This file retrieved from the JS-Examples archives
http://www.js-examples.com
1000s of free ready to use scripts, tutorials, forums.
Author: JS-Examples - http://www.js-examples.com/ 
**************************************************************/

var _sponsors = new Array();

function addSponsor(_sponsorHTML){
  _sponsors[_sponsors.length?_sponsors.length:0]=_sponsorHTML;
}

addSponsor("<A CLASS=sponsorlink TARGET=_blank TITLE='Nichols Hardware Information' HREF=http://maps.google.com/maps?hl=en&um=1&ie=UTF-8&q=nichols+hardware&near=Purcellville,+VA&fb=1&view=text&latlng=39137380,-77715312,12715391023688724865><B>Nichols_Hardware</B> <IMG CLASS=greenborder HEIGHT=200 WIDTH=170 ALT='Nichols Hardware in Purcellville sponsors Purcellville Fire Company' SRC=images/nichols-hardware-store.jpg></A>");
addSponsor("<A CLASS=sponsorlink TARGET=_blank TITLE='Hall Funeral HOme Page' HREF=http://www.hallfh.com><B>Hall_Funeral_Home</B> <IMG HEIGHT=200 WIDTH=170 ALT='Hall Funeral Home sponsors Purcellville Volunteer Fire Company' SRC=images/hall-funeral-home.jpg></A>");
addSponsor("<A CLASS=sponsorlink TARGET=_blank TITLE='PUrcellville Tire & Auto Home Page' HREF=http://maps.google.com/maps?f=l&view=text&hl=en&q=purcellville+tire&near=Purcellville,+VA&ie=UTF8&latlng=39136240,-77700328,1573495981459494341&ei=oeqlR6e8N4GyrQKFv50U&sig2=bs6Wy6s6oLghBOQpSEu6Uw&cd=2><B>Purcellville_Tire_&_Auto</B> <IMG CLASS=greenborder HEIGHT=200 WIDTH=170 ALT='Purcellville Tire & Auto Sponsors Purcellville Fire Company' SRC=images/purcellville-tire-auto.jpg></A>");
addSponsor("<A CLASS=sponsorlink TARGET=_blank TITLE='Browning Equipment Home Page' HREF=http://www.browningequipment.com><B>Browning_Equipment</B><IMG HEIGHT=200 WIDTH=170 ALT='Browning Equipment Sponsors Purcellville Fire Company' SRC=images/browning.gif></A>");

var sponsorDiv = new NewDiv2(window, "sponsor", _sponsors[0],0,0,50,50,500,"ABSOLUTE");
var count=0; /* which one to start with */

function placeSponsor() {
	count++;
	count%=_sponsors.length;
	sponsorDiv.setBody(_sponsors[count]);
}

setInterval('placeSponsor()',5000);
