var pausecontent=new Array()
pausecontent[0] = '<b>Next WOA Meeting: 18 February 2010</b><br><table><tr><td valign="top"><font size=2><b>Location:</b></font></td><td><table><tr><td><font size=2><b>Ryans Family Buffet</b> <li>1104 East Central Texas Expressway, Killeen</font></td></tr></table></table><font size=2><b>Time:</b> 1130-1300 hrs.</font>'
pausecontent[1]='<b>Next Executive Meeting: 16 February 2010</b><br><table><tr><td valign="top"><font size=2><b>Location:</b></font></td><td><table><tr><td><font size=2>WWPX Food Court</font></td></tr></table></td></tr></table><font size=2><b>Time:</b> 1130-1300 hrs.</font>'
/*pausecontent[1]='<b>Annual Warrant Officer Association Regional Workshop and WOPD</b><table><tr><td valign="top"><font size="2"><b><u>When:</u></b></font></td><td><table><tr><td><font size="2">21 August 09, 0930 - 1545 hrs</font></td></tr></table></td></tr><tr><td valign="top"><font size="2"><b><u>Where:</u></b></font></td><td><table><tr><td><font size="2">Phantom Warrior Center</font></td></tr><tr><td><font size="2">Main Ball Room</font></td></tr><tr><td><font size="2">37<sup>th</sup> Street and 761<sup>st</sup> Tank Battalion Ave</font></td></tr><tr><td><font size="2">Bldg 194</font></td></tr></table></td></tr><tr><td valign="top"><font size="2"><b><u>Guest Speakers:</u></b></font></td><td><table><tr><td><font size="2">Post Commander / WOCC Commandant / AG-QM-OD Warrants<br /></font></td></tr></table></td></tr><tr><td valign="top"><font size="2"><b><u>Intended Audience:</u></b></font></td><td><table><tr><td><font size="2">All are welcome to attend<br /></font></td></tr></table></td></tr></table>'*/
/*pausecontent[1] = '<b>DAV BBQ: 18 Oct 2008<br></b><table><tr><td valign="top"><b><font size="2">Location:</font></b></td><td><table><tr><td><font size=2>Central Texas Veterans Health Care System</font></td></tr><tr><td><font size=2>1901 Memorial Drive</font></td></tr><tr><td><font size=2>Temple, Texas 76504</font></td></tr><tr><td><font size=2>The Picnic Area is behind the Hospital. South and over the single Railroad Tracks, on the left, facing the lake.</font></td></tr></table></td></tr></table><table><tr><td><font size=2></font></td></tr></table><font size=2><b>Time:</b> 1200 hrs til complete.</font>'*/
/*pausecontent[1]='<b>Mentorship Outreach: 21 May 2009<br>(For all aspiring warrant officers)</b><br><table><tr><td valign="top"><font size=2><b>Location:</b></font></td><td><table><tr><td><font size=2>Pattons Inn (NCO Club Lounge Area)</font></td></tr><tr><td><font size=2>Bldg 9212</font></td></tr><tr><td><font size=2>21<sup>st</sup> Street and Old Ironside Ave.</font></td></tr></table></td></tr></table><table><tr><td><font size=2>Many Fort Hood Silver Chapter members will be</font></td></tr><tr><td><font size=2>available for mentorship and WO packet review.</font></td></tr></table><font size=2><b>Time:</b> 1700-1800 hrs.</font>'*/
/*pausecontent[2]='<b>Habitat for Humanity<br>(12 week project to build a house for a local family)</b><table><tr><td valign="top"><b><font size="2">Location:</font></b></td><td><table><tr><td><font size="2">Take Rancier East towards Belton<br>(past the Youth Correctional facility)</font></td></tr><tr><td><font size="2">Turn left on Cedarhill Drive</font></td></tr><tr><td><font size="2">Turn right on Fleetwood (third intersection)</font></td></tr><tr><td><font size="2">House is on the left 1 to 1 1/2 blocks</font></td></tr></table></td></tr></table><font size=2><b>Time:</b> Saturdays only from 0800-1600 hrs.</font>'*/
/*pausecontent[1]='<b>Motorcycle Benefit Run for the<br>Wounded Warriors Project<br></b><table><tr><td valign="top"><font size="2"><b>Location:</b></font></td><td><table><tr><td><font size="2">Kays Motorcycle Mania</font></td></tr><tr><td><font size="2">Nolanville, Tx</font></td></tr></table></td></tr></table><font size="2"><b>Date & Time: </b>Saturday 01 August @ 1100-1700hrs</br>For more information<a href="images/woundedwarriorsbenefit.jpg"> click here</a></font>'*/
pausecontent[2] = '<b>All members:</b><li>Check Out the Latest Announcements for the Most Recent News and Jobs</li>'
pausecontent[3] = '<b>WOA Flapjack Breakfast<br></b>Flyers are <a href="Files/Announce/Cove_Flapjack_Fundraiser_Flyer.doc" /><b>HERE</b></a>and <a href="Files/Announce/Killeen_Flapjack_Fundraiser_Flyer.doc" /><b>HERE</b></a></font>'
/*pausecontent[3]='<b>A Message On Behalf Of The RCWO, CW5 Dahl<br></b>To Read The Message<a href="Files/IP-SWOAC Membership AAR  24 September 2009.doc" /> click here</a></font>'*/
pausecontent[4]='<b>The Link the U.S. Army Warrant Officers Association<br>37th Annual Meeting of the Members</b><b><a href="http://www.penfed.org/usawoa/AMM2009.htm"> Is Here</a></b>'
/*pausecontent[5]='<b>Take a look at Ft. Hood Silver Chapters<br>Newest Members</b><b><a href="Files/2009_NewMembers.pdf"> Click Here</a></b>'*/
/*pausecontent[6]='<b>Some of our current users are out of tollerance<br>Please check this list for your name</b><b><a href="Files/2009_OverdueRenewals.pdf"> Check Here</a></b>'*/
/*pausecontent[4]='<b>Election for the new USAWOA Fort Hood Silver Chapter President and Vice President</b><table><tr><td valign="top"><font size="2"><b><u>When:</u></b></font></td><td><table><tr><td><font size="2">21 May 2009, 1145 - 1245 hrs</font></td></tr></table></td></tr><tr><td valign="top"><font size="2"><b><u>Where:</u></b></font></td><td><table><tr><td><font size="2">Sportsmens Center Grill</font></td></tr><tr><td><font size="2">Rod and Gun Loop</font></td></tr><tr><td><font size="2">53<sup>rd</sup> Street and North Avenue</font></td></tr><tr><td><font size="2">Bldg 1937</font></td></tr></table></td></tr><tr><td valign="top"><font size="2"><b><u>By-laws<br />(Section 4) &<br />Requirements:</u></b></font></td><td><table><tr><td><font size="2">Candidates must be a member of the USAWOA <br /> Fort Hood Silver Chapter, in good standing prior to election</font></td></tr></table></td></tr><tr><td valign="top"><font size="2"><b><u>Deadline:</u></b></font></td><td><table><tr><td><font size="2">All candidates for the position of President and Vice President must submit names NLT <br /> 20 May 09 to the following e-mail address <a href="mailto:brooke.douglas.finkenbinder@us.army.mil?subject=WOA Silver Chapter Elections">HERE</a>:</font></td></tr><tr><td><font size="2">brooke.douglas.finkenbinder@us.army.mil</font></td></tr></table></td></tr></table>'*/

/***********************************************
* Pausing up-down scroller- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

function pausescroller(content, divId, divClass, delay){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}

// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------

pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}


// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------

pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
setTimeout(function(){scrollerinstance.animateup()}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}

// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------

pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}

// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scroller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}