var pausecontent=new Array()
pausecontent[0]='<p><a href="GOTS_Meetings_Kurse_2012.php5#k120120">Freiburger Knorpeltage</a><br /><span class="kleiner"> 01/20/2012-01/21/2012, Freiburg, Germany</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120120_2">The SHOULDER 2012</a><br /><span class="kleiner"> 01/20/2012-01/21/2012, Hamburg, Germany</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120120_2">M&uuml;nchner Sonografiekurse</a><br /><span class="kleiner">Grundkurs: 20.-22 Januar 2012<br />Aufbaukurs: 20.-22. April 2012<br />Abschlusskurs: 24.-25. November 2012<br />Refresherkurs Schulter: 24. November 2012<br />Munich, Germany</span> </p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120202">14. GOTS Schweiz Tagung &quot;Achillessehne&quot;</a><br /><span class="kleiner"> 02/02/2012, Basel, Switzerland</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120204">GOTS Thementag &quot;Patella und Sport&quot;</a><br /><span class="kleiner"> 02/04/2012, Hannover, Germany</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120223">Rekon-Tagung 2012 Murnau</a><br /><span class="kleiner"> 02/23/2012-02/24/2012, Murnau, Germany</span></p>'
pausecontent[1]='<p><a href="GOTS_Meetings_Kurse_2012.php5#k120301">Advanced Knee Reconstruction</a><br /><span class="kleiner"> 03/01/2012-03/02/2012, Basel, Switzerland</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120309">Kieler Arthroskopiekurs Kniegelenk 2012</a><br /><span class="kleiner"> 03/09/2012-03/10/2012, Kiel, Germany</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120310">5. Osnabr&uuml;cker Symposium</a><br /><span class="kleiner">03/10/2012, Osnabr&uuml;ck, Germany</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120317">GOTS Thementag &quot;Schulter und Sport&quot;</a><br /><span class="kleiner"> 03/17/2012, Hannover, Germany</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120322">GOTS-Treffen &Ouml;sterreich &quot;Es klemmt&quot;</a><br /><span class="kleiner">03/22/2012-03/25/2012, Heiligenblut, Austria</span></p><p><a href="#GOTS_Meetings_Kurse_2012.php5k120323">Knorpelkurs 2012</a><br /><span class="kleiner">03/24/2012-03/24/2012, M&uuml;nchen, Germany</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120324">Gelenkerhaltende Chirurgie 2012</a><br /><span class="kleiner"> 03/24/2012, Leipzig, Germany</span></p>'
pausecontent[2]='<p><a href="GOTS_Meetings_Kurse_2012.php5#k120419">2. D&uuml;sseldorfer Schultermeeting</a><br /><span class="kleiner"> 04/19/2012-04/21/2012, D&uuml;sseldorf, Germany</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120420">Sportmedizin Update 2012 Wiesbaden</a><br /><span class="kleiner"> 04/20/2012-04/21/2012, Wiesbaden, Germany</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120420_2">Sportorthop&auml;disches Symposium 2012</a><br /><span class="kleiner"> 04/20/2012-04/21/2012, Hann. M&uuml;nden, Germany</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120425">&quot;Exercise is medicine&quot;</a><br /><span class="kleiner">04/25/2012, B&uuml;ren-Ahden, Germany</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120426">Sportmedizinischer Grundkurs OTP IV</a><br /><span class="kleiner"> 04/26/2012-04/28/2012, Podersdorf, Austria</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120428">60. Jahrestagung der VSOU</a><br /><span class="kleiner"> 04/28/2012-05/01/2012, Baden-Baden, Germany</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120502">15th ESSKA Congress</a><br /><span class="kleiner"> 05/02/2012-05/05/2012, Geneva, Switzerland</span></p>'
pausecontent[3]='<p><a href="GOTS_Meetings_Kurse_2012.php5#k120510">19. Jahreskongress der DVSE</a><br /><span class="kleiner"> 05/10/2012-05/12/2012, Berlin, Germany</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120515">Handchirurgie-Symposium Bad Neustadt 2012</a><br /><span class="kleiner"> 05/15/2012-05/18/2012, Bad Neustadt, Germany</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120601">1. Truemed Symposium Berlin</a><br /><span class="kleiner"> 06/01/2012-06/02/2012, Berlin, Germany</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120602">&quot;Sinn&quot;-volle Rehabilitation</a><br /><span class="kleiner"> 06/02/2012, Bietigheim-Bissingen, Germany</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120608">21. Thüringer Unfallchirurgisch-Orthopädisches Symposium (VLOU) </a><br /><span class="kleiner"> 06/08/2012-06/09/2012, Suhl, Germany</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120614">61. Jahrestagung der NOUV</a><br /><span class="kleiner"> 06/14/2012-06/16/2012, Hamburg, Germany</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120615_0">Das Patellofemoral Gelenk</a><br /><span class="kleiner"> 06/15/2012-06/17/2012 and 07/21/2012, Stuttgart und M&uuml;nchen, Germany</span></p>'
pausecontent[4]='<p><a href="GOTS_Meetings_Kurse_2012.php5#k120615">2. Berliner Expertenmeeting Sportmedizin</a><br /><span class="kleiner"> 06/15/2012-06/17/2012, Werder, Germany</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120630">21. Unfallchirurgische Tagung Dresden</a><br /><span class="kleiner"> 06/23/2012, Dresden, Germany</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120707"> 23. M&uuml;nchner Handchirurgisches Symposium</a><br /><span class="kleiner"> 07/07/2012, M&uuml;nchen, Germany</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120912">43. Jahrestagung der DGPR&Auml;C<br />17. Jahrestagung der VD&Auml;PC</a><br /><span class="kleiner"> 09/12/2012-09/15/2012, Bremen, Germany</span></p><p><a href="GOTS_Meetings_Kurse_2012.php5#k120913">29th AGA-Congress</a> <br /><span class="kleiner"> 09/13/2012-09/15/2012, Z&uuml;rich, Siwtzerland</span></p>'
var pausecontent2=new Array()
pausecontent2[0]='<a href="http://www.news.com">News.com: Technology and business reports</a>'
pausecontent2[1]='<a href="http://www.cnn.com">CNN: Headline and breaking news 24/7</a>'
pausecontent2[2]='<a href="http://news.bbc.co.uk">BBC News: UK and international news</a>'



/***********************************************
* 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 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
}

