var pausecontent=new Array()
pausecontent[0]=' <a href="http://www.weinitzen.com" target="new"><img src="http://www.sv-weinitzen.com/images/gemeinde_weinitzen2.png" width="175" border=0><br ><b>Gemeinde Weinitzen.</br>Besuchen Sie unsere Homepage</b><br>Gemeindeadresse: Kirchplatz 4<br> 8044 Weinitzen<br>Tel.: +43 / 3132 / 25 50<br>Fax.: +43 / 3132 / 25 50-6</a>'

pausecontent[1]='<a href="http://www.tacube.at/weinitzen" target="_new"><img src="http://www.sv-weinitzen.com/images/tourismusverband2.png" width="175" border=0><br /><b>Weinitzen Tourismusverband</b><br>Niedersch&#246;ckelstrasse 19 A <br>8044 Weinitzen<br>Tel: 0664/3506888<br> 0664/3569143</a> '

pausecontent[2]='<a href="http://www.rubinig.at" target="_new"><img src="http://www.sv-weinitzen.com/images/Rubinig2.png" width="175" border=0><br><b>Rubinig Karl Ges. m. b. H.<br>Sch&#246;naugasse 117 <br>A-8010 Graz.</b><br>Telefon: +43 (0) 316 / 82 22 28<br>Fax: Durchwahl 7</a>  '

pausecontent[3]='<a href="http://www.hse-team.at/" target="_new"><img src="http://www.sv-weinitzen.com/images/HSE.jpg" width="175" border=0><br><b>HSE-Team<br>(BAD - HEIZUNG - ELEKTROINSTALLATION)<br>Franz-Bloder Gasse 5<br>A-8200 Gleisdorf</b><br>Tel: +43 3112 29999 - 0<br>Telefax: +43 3112 29999 - 4</a> '

pausecontent[4]='<a href="http://www.exklusive-kamine.at" target="_new"><img src="http://www.sv-weinitzen.com/images/fasching.png" width="175" border=0><br><b>Exklusive Kamine Handels GmbH<br/></b>Br&#252;ckenkopfgasse 8<br>8020 Graz<br>Tel.: +43 (0) 316 723 793<br>Fax: +43 (0) 316 724 993</a> '

pausecontent[5]='<a href="http://www.malli-haus.at" target="_new"><img src="http://www.sv-weinitzen.com/images/malli-fussballtafel-1.png" width="175" border=0><br><b>Malli Baugesellschaft Gmbh<br>Gewerbering 5<br>8054 Graz-Pirka.</b><br>Tel.: 0316 - 83 11 50 -0<br>Fax.: 0316 - 83 11 50 -23</a> '

pausecontent[6]='<a href="http://www.autohaus-sauseng.at" target="_new"><img src="http://www.sv-weinitzen.com/images/sauseng.jpg" width="175" border=0><br><b>Herbert Sauseng GesmbH<br>Weizer Strasse 4<br>8044 Weinitzen-Fasslberg.</b><br>Tel.: 03132 - 3383<br>Fax.: 03132 - 21582</a> '

pausecontent[7]='<a href="http://www.stonecleaner.at/" target="new"><img src="http://www.sv-weinitzen.com/images/Stone1.png" width="175" border=0><br><b>Stonecleaner GmbH</b><br><b></b><br>W&#252;nschendorf 77<br>8200 Gleisdorf<br>Tel.: 0043 (0)3112 38 385 <br>Fax: 0043 (0)3112 38 587<br></a>'

pausecontent[8]='<a href="http://www.rasendoktor.at//" target="new"><img src="http://www.sv-weinitzen.com/images1/Rasendoktor-1.png" width="175" border=0><br><b>RASENDOKTOR</b><br>TURF Handels GmbH <br>Am Hartboden 48 <br> A-8101 Gratkorn<br>Tel.: +43 (3124) 29064 <br><br></a>'

var pausecontent2=new Array()
pausecontent2[0]=' <a href="http://www.raiffeisen.at/eBusiness/rai_template1/1019161083642-NA-NA-NA-1-NA.html" target="new"><img src="http://www.sv-weinitzen.com/images/raiba_mariatrost3.gif" width="175" border=0><br><b>Raiffeisenbank Graz-Mariatrost.</b></br><b>Mariatroster Stra&#223;e 255<br>A-8044 Graz</b><br>Tel.: ++43(0)316/39 13 61<br>Fax: ++43(0)316/39 13 61 &#8211; 37.</a> '

pausecontent2[1]=' <a href="http://www.kfz-haberl.com" target="new"><img src="http://www.sv-weinitzen.com/images/werbung_2.jpg" width="175" border=0><br><b>KFZ Spenglerei, Lackiererei, Autohandel<br></b>Niedersch&#246;ckelstr. 14<br>8045 Weinitzen<br>Tel.: 03132 4878<br>Fax: 03132 4878-4</a> '

pausecontent2[2]='<a href="http://www.bauring.at" target="new"><img src="http://www.sv-weinitzen.com/images/meinhart-logo_.jpg" width="175" border=0><br><b>Bauring Einkauf und Marketing reg. Gen.m.b.H.</b><br>Weizerstrasse 7<br>8044 Weinitzen <br>Tel: - <br>Fax: - </a> '

pausecontent2[3]='<a href="http://www.wagner.gwz.st" target="new"><img src="http://www.sv-weinitzen.com/images/Tafel-2mm.png" width="175" border=0><br><b>GAS - WASSER - HEIZUNG</b><br>Ihr Installateur<br>Keplerstrasse 14<br>8020  Graz<br>Tel:0316 718718<br>Fax: 0316 718 718-9</a> '

pausecontent2[4]='<a href=" # " target="new"><img src="http://www.sv-weinitzen.com/images/klm2.png" width="175" border=0><br><b>Karner Lickel Maschinen Ges.m.b.H.</b><br>Wiener Stra&#223;e 29-31<br>A-8020 Graz<br>Tel.: +43 / (0) 316 / 572363<br>Fax.: +43 / (0) 316 / 572376</a> '

pausecontent2[5]='<a href="http://www.lorenzhof.at" target="new"><img src="http://www.sv-weinitzen.com/images/lorenzhof.png" width="170" border=0><br><b>Lorenzhof Heuriger <br>Niederleitner </b><br>Niedersch&#246;cklstra&#223;e 35<br>A-8044 Weinitzen <br>Tel.: +43 / (0) 03132 / 20 33  </a> '

pausecontent2[6]='<a href="http://www.sportherko.at/" target="_new"><img src="http://www.sv-weinitzen.com/images/SportHERKO.png" width="175" border=0><br><b>TEAM Sports Herko<br>Biwi Herko</b> <br>Hauptstra&#223;e 48<br>8401 Kalsdorf<br>Tel: +43 3135/55384 <br>Telefax: +43 3135/54231</a> '

pausecontent2[7]='<a href="http://www.admiral.ag//" target="_new"><img src="http://www.sv-weinitzen.com/images/Admiral.png" width="175" border=0><br><b>Admiral Sportwetten</b><br> </a>'

pausecontent2[8]='<a href="http://www.tieber-kies.com/" target="_new"><img src="http://www.sv-weinitzen.com/images1/Tieber-1.png" width="175" border=0><br><b>TIEBER GmbH<br>Sand und Schotterwerk<br>Grazer Bundesstrasse 7<br>8120 Peggau<br>Tel: 03127 41500-0</b><br> </a>'


var pausecontent3=new Array()
pausecontent3[0]=' <a href="http://www.steirische-harmonika.at" target="new"><img src="http://www.sv-weinitzen.com/images/harmonika.jpg" width="175" border=0><br><b>Harmonikaerzeugung Schmidt</b><br>Weinbergweg 24<br>A-8045 Weinitzen bei Graz<br>Tel.: +43 / (0) 3132 / 2068<br>Fax.: +43 / (0) 3132 / 4361</a> '

pausecontent3[1]=' <a href="http://www.odoerfer.com" target="_new"> <img src="http://www.sv-weinitzen.com/images/odoerfer.png" width="175" border=0><br /><b>Bad-Heizung-Haustechnik!<br>OD&#214;RFER B&#228;derausstellung <br>Herrgottwiesegasse 125<br> 8020 Graz</b><br>Tel.: 0316 / 2772-2000<br>Fax: 0316 / 2772-2277.</a> '

pausecontent3[2]='<a href="http://www.austria-email.at" target="new"><img src="http://www.sv-weinitzen.com/images/AE-Logo.jpg" width="175" border=0><br><b>www.austria-email.at</b><br></a>'

pausecontent3[3]=' <a href="http://www.sv-weinitzen.at/adabei.htm" target="new"><img src="http://www.sv-weinitzen.com/images/logo_neu_adabei.jpg" width="175" border=0><br><b>Cafe A&#180;Dabei</b><br>Niedersch&#246;ckelstr. 19<br>8044 Weinitzen<br>Tel.:03132 2390</a>  '

pausecontent3[4]='<a href="http://www.vaillant.at" target="new"><img src="http://www.sv-weinitzen.com/images/vaillant_logo.png" width="135" border=0><br><b>Vaillant Graz</b><br>Karlauer G&#252;rtel 7 <br>A-8020 Graz<br>Telefon 05 7050-8000*<br>Fax 05 7050-8199* </a> '

pausecontent3[5]='<a href="http://www.hansgrohe.at/" target="new"><img src="http://www.sv-weinitzen.com/images/hansgrohe.jpg" width="175" border=0><br><b>100 Jahre Innovationen im Bad</b><br>Die Andere Art zu duschen<br>Mit Raindance wird die Brause<br>zum Wasserfall<br></a>  '

pausecontent3[6]='<a href="http://www.herold.at/servlet/YPmap?context=YP&id=4&cd=1D6CC5DC65A1E288CE8F54788E56A0E8&count=5&sd=PWA4_12100994785110104&rd=GSO_4#geo" target="new"><img src="http://www.sv-weinitzen.com/images/Winkler.png" width="175" border=0><br><b>Winkler Kuvert GmbH</b><br>Eggenberger G&#252;rtel 45<br>8020 Graz<br>Telefon  +43 316 711190-0<br>Fax +43 316 714840-19<br></a> '

pausecontent3[7]='<a href="http://www.bridge.co.at/"><img src="http://www.sv-weinitzen.com/images/Bridge.png" width="175" border=0><br><b>Bridge <br>personal & service <br>GmbH & Co KG</b><br>Sch&#246;ckelblickstra&#223;e 26<br>A-8044 Graz-Mariatrost<br>Telefon  +43 316 39 17 741<br>Fax +43 316 39 17 742<br></a> '

pausecontent3[8]='<a href="http://www.www.bodlos.at/"><img src="http://www.sv-weinitzen.com/images1/Bodlos-1.png" width="175" border=0><br><b>BODLOS JOSEF GesmbH<br>LIEBOCH <br> Dorfstra&#223;e 6 <br> 03136 / 61288<br><hr width="50%" >PEGGAU <br> Grazer Stra&#223;e 7 <br> 03127 / 2237 <br></a> '


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()}, 1000)
}

// -------------------------------------------------------------------
// 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 , div3){
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
}



//new pausescroller(name_of_message_array, CSS_ID, CSS_classname, pause_in_miliseconds)

new pausescroller(pausecontent, "pscroller1", "someclass", 4000)
document.write("<br />")
new pausescroller(pausecontent2, "pscroller2", "someclass", 4000)
document.write("<br />")
new pausescroller(pausecontent3, "pscroller3", "someclass", 4000)
