/*Example message arrays for the two demo scrollers*/ var pausecontent2=new Array() pausecontent2[0]='Russ Blatt:
Asst. GM - Chico Outlaws (Golden Baseball League)' pausecontent2[1]='Steve Gallaugher:
Los Angeles Dodgers' pausecontent2[2]='Eric Satterwhite:
Asst. GM of the Sacramento Heatwaves (ABA)' pausecontent2[3]='Liberty Sufiya:
Luton Town FC Scout-England' pausecontent2[4]='John Ross:
Portland Trailblazers' pausecontent2[5]='Landen Garner:
Orem Owis, Anaheim Angels' pausecontent2[6]='Paul Epstein:
THG Worldwide' pausecontent2[7]='Carson Greer:
St. Louis Blues' pausecontent2[8]='Niki Jones:
Las Vegas Speedway' pausecontent2[9]='Bill Jordan:
Cleveland Browns' pausecontent2[10]='Chris OKeefe:
Minnesota Twins' pausecontent2[11]='Matt Ebbs:
International Scouting Services' pausecontent2[12]='Renata Pellino-Porter:
Seattle Sonics-Storm' pausecontent2[13]='Augusto Rojas:
Pawtucket Red Sox Baseball (Boston Red Sox AAA affiliate)' pausecontent2[14]='Ashley Holstrom:
Pheonix Coyotes' pausecontent2[15]='William Jordan:
BizofBaseball.com & BizofFootball.com' pausecontent2[16]='Phil Nestler:
New York Mets' pausecontent2[17]='Tracey Graham:
Synergy Sports' pausecontent2[18]='Patrick Custer:
Seattle Sonics' pausecontent2[19]='Jake Sanders:
Kansas City Royals' pausecontent2[20]='Dave Cadelli:
Scout for the Sioux City Musketeers (USHL)' pausecontent2[21]='Justin Capetillo:
Houston Rockets Stadium Operations' pausecontent2[22]='Elizabeth Stone:
Oakland Raiders' pausecontent2[23]='Patrick O\'Herron:
Butte Daredevils- CBA' pausecontent2[24]='Thomas Hallin:
Atlanta Braves' pausecontent2[25]='Amanda Stout:
Lowes Motor Speedway' pausecontent2[26]='Dan Budreika:
Washington Nationals' pausecontent2[27]='Jeremy Burn:
Washington Wizards' pausecontent2[28]='Matt Hirsch:
Florida Marlins' pausecontent2[29]='Brett Breece:
Tacoma Rainiers' pausecontent2[30]='Bart Madden:
Sacramento Kings (NBA)' pausecontent2[31]='Marc Oliver:
TSN- Canada' pausecontent2[32]='Ben Foster:
Los Angeles Clippers' pausecontent2[33]='Alexis Levi:
Las Vegas Stars' pausecontent2[34]='Fabian Banchiero:
Red Bulls' pausecontent2[35]='Rob Child:
The Scouting Network - England' pausecontent2[36]='Wes Brown:
Utah Jazz' pausecontent2[37]='Chad Pennick:
Denver Nuggets' pausecontent2[38]='Joey Seymour:
Los Angeles Kings' pausecontent2[39]='Kari Christensen:
Orca Bay' pausecontent2[40]='Kyle Kosior:
United States Hockey League' pausecontent2[41]='Steven Deitch:
Las Vegas Gladiators' pausecontent2[42]='Mandy Love:
Houston Rockets & Comets' pausecontent2[43]='Devon Teeple:
Plymouth River City Eels' pausecontent2[44]='Andy Hollander:
Norfolk State Athletics' pausecontent2[45]='Nick Sinclair:
Toronto Blue Jays' pausecontent2[46]='David Allendorf:
Spokane Shock' pausecontent2[47]='Josh Bannister:
Augusta Lynx' pausecontent2[48]='Ryan Polito:
Omaha Knights' pausecontent2[49]='BJ Cardin:
Orlando Sharks' pausecontent2[50]='Will Osgood:
Synergy Sports' pausecontent2[51]='Chris Russell:
Indoor Football Scouting Bureau' pausecontent2[52]='Alex Sherman Ash:
Baseball Info Solutions' pausecontent2[53]='Chris Corder:
Texas Tech Athletics' pausecontent2[54]='KD Lakiss:
The Scouting Network - Maryland' pausecontent2[55]='Brian Adams:
Boston Celtics' pausecontent2[56]='Ben Johnson:
Kansas City Royals Scout' pausecontent2[57]='Russ Rankin:
Kootenay Ice' pausecontent2[58]='Derrick Nunziante:
Myrtle Beach Pelicans' pausecontent2[59]='Preston Bailey:
Integrity Sports Broadcasting - Tampa Bay Storm & Devil Rays' pausecontent2[60]='Alex Nuschke:
Las Vegas Gladiators' pausecontent2[61]='Kent Ridley:
Ridley Scouting Services' pausecontent2[62]='Joseph Della Cella:
University of San Francisco Baseball' pausecontent2[63]='Travis Howe:
International Scouting Services' pausecontent2[64]='Jake Squyres:
Atlanta Hawks' pausecontent2[65]='Stephen Samoyedny:
Texas Wildcatters' pausecontent2[66]='Raj Thompson:
Indoor Football Scouting' pausecontent2[67]='Amy Noble:
Trenton Thunder' pausecontent2[68]='Brian Orth:
Cowichan Valley Capitals Junior A Hockey' pausecontent2[69]='Jermaine Blackwood:
Integrity Sports Management - England' pausecontent2[70]='Damon Shoultz:
Joliet Jackhammers' pausecontent2[71]='Cyprian Khumalo:
Maryland United Football Club' pausecontent2[72]='Dustin Pierson:
Joliet Jackhammers' pausecontent2[73]='Chad Mart:
Synergy Sports' pausecontent2[74]='Michael McDonald:
Atlanta Braves' pausecontent2[75]='Tucker Brollier:
Oklahmoma City Redhawks' pausecontent2[76]='Jordan Anderson:
Los Angeles Galaxy' pausecontent2[77]='Loretta Abrams:
Houston Texans' pausecontent2[78]='Josh Stoller:
Milwaukee Brewers' pausecontent2[79]='Jeff Holmes:
Synergy Sports' pausecontent2[80]='Dave Robinson:
Hamilton Bulldogs' pausecontent2[81]='Shawn Bishop:
World Soccer Management-South Africa' pausecontent2[82]='Ryan Latham:
Boston Red Sox' pausecontent2[83]='Ari L. Faneuil:
New Orleans Hornets NBA' pausecontent2[84]='Vidar Bjarnason:
The Scouting Network-Denmark' pausecontent2[85]='Jeff Rucker:
Colorado Avalanche' pausecontent2[86]='Nick Mazzella:
Los Angeles Lakers' pausecontent2[87]='Eric Stockman:
Atlanta Hawks-Thrashers' pausecontent2[88]='Jamie Martin:
Toronto Marlies' pausecontent2[89]='Robert Ajayi:
Philidelphia 76ers & Flyers' pausecontent2[90]='Ben Wolfe:
Baseball Prospectus' pausecontent2[91]='Jeff Differding:
Biz of Baseball' pausecontent2[92]='Kwasi Moses:
Indoor Football Scouting Bureau' pausecontent2[93]='Michael Laurent:
www.iplayers.net - France' pausecontent2[94]='Jeff Eskow:
Integity Sports Broadcasting-San Diego Padres' pausecontent2[95]='Ryan Markham:
Manitoba Moose' pausecontent2[96]='John Borgard:
Stl Louis Bandits' pausecontent2[97]='Ernie Distefano:
Global Scouting Bureau' pausecontent2[98]='Brian Gioia:
Chicago Bulls' pausecontent2[99]='Leon Hughes:
Pro Football Central' pausecontent2[100]='Eric Anang:
The Scouting Network-London' pausecontent2[101]='Phillip Nicoletti:
Cleveland Indians' pausecontent2[102]='Andrew Lavoie:
Halifax Wolverines Junior A Hockey Club' /*********************************************** * 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('
'+content[0]+'
') 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 scoller, 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 }