/*Example message arrays for the two demo scrollers*/ var pausecontent2=new Array() pausecontent2[0]= '

newレイク浜松カントリークラ... 85万円  new浜松シーサイドゴルフクラ... 75万円  newキングフィールズゴルフク... 650万円

'; pausecontent2[1]= '

new東京カントリー倶楽部 65万円  new東京五日市カントリー倶楽... 60万円  newグランディ那須白河ゴルフ... 60万円

'; pausecontent2[2]= '

new江戸崎カントリー倶楽部 60万円  new東名カントリークラブ 45万円  new横浜カントリークラブ 320万円

'; pausecontent2[3]= '

newザ ナショナルカントリー... 30万円  new小名浜カントリー倶楽部 20万円  new立川国際カントリー倶楽部 170万円

'; pausecontent2[4]= '

new日本カントリークラブ 160万円  new裾野カンツリー倶楽部 135万円  new長野カントリークラブ 130万円

'; pausecontent2[5]= '

new長竹カントリークラブ 115万円  new東京国際ゴルフ倶楽部 270万円  newPGMマリアゴルフリンク... 160万円

'; pausecontent2[6]= '

new小山ゴルフクラブ 90万円  new静ヒルズカントリークラブ 8万円  new那須国際カントリークラブ 70万円

'; pausecontent2[7]= '

newサンヒルズカントリークラ... 60万円  new龍ヶ崎カントリー倶楽部 530万円  new日光カンツリー倶楽部 400万円

'; pausecontent2[8]= '

new総武カントリークラブ 380万円  new烏山城カントリークラブ 35万円  new坂東ゴルフクラブ(旧 新... 25万円

'; pausecontent2[9]= '

newシャトレーゼヴィンテージ... 20万円  new長太郎カントリークラブ 20万円  new都賀カンツリー倶楽部 20万円

'; pausecontent2[10]= '

new河口湖カントリークラブ 170万円  new塩山カントリー倶楽部 15万円  new赤城国際カントリークラブ 15万円

'; pausecontent2[11]= '

new栃木ヶ丘ゴルフ倶楽部 15万円  new希望丘カントリークラブ 15万円  newサンメンバーズカントリー... 13万円

'; pausecontent2[12]= '

new熊谷ゴルフクラブ 110万円  new富士小山ゴルフクラブ 100万円  メイプルポイントゴルフク... 600万円

'; pausecontent2[13]= '

岡部チサンカントリークラ... 30万円  GMG八王子ゴルフ場 30万円  鷹之台カンツリー倶楽部 2100万円

'; pausecontent2[14]= '

筑波国際カントリークラブ 5万円  霞南ゴルフ倶楽部 40万円  白帆カントリークラブ 40万円

'; pausecontent2[15]= '

藤ヶ谷カントリークラブ 360万円  大洗ゴルフ倶楽部 250万円  戸塚カントリー倶楽部 2470万円

'; pausecontent2[16]= '

平川カントリークラブ 210万円  常陽カントリー倶楽部 140万円  大利根カントリークラブ 1200万円

'; pausecontent2[17]= '

房総カントリークラブ 10万円  太平洋アソシエイツ 90万円  箱根カントリー倶楽部 400万円

'; pausecontent2[18]= '

立野クラシック・ゴルフ倶... 320万円  浜名湖カントリークラブ 250万円  南総カントリークラブ 250万円

'; pausecontent2[19]= '

高坂カントリークラブ 130万円  東京湾カントリークラブ 10万円  平塚富士見カントリークラ... 630万円

'; pausecontent2[20]= '

東松山カントリークラブ 240万円  山田クラブ21 20万円  富士レイクサイドカントリ... 150万円

'; pausecontent2[21]= '

美里ゴルフ倶楽部 90万円  津久井湖ゴルフ倶楽部 45万円  三甲ゴルフ俱楽部 富士コ... 60万円

'; pausecontent2[22]= '

飯能ゴルフクラブ 300万円  香取カントリークラブ 40万円  狭山ゴルフ・クラブ 360万円

'; pausecontent2[23]= '

京カントリークラブ 25万円  武蔵カントリークラブ 750万円  厚木国際カントリー倶楽部 1200万円

'; pausecontent2[24]= '

我孫子ゴルフ倶楽部 1000万円  湘南シーサイドカントリー... 110万円  富士見ヶ丘カントリー倶楽... 15万円

'; pausecontent2[25]= '

葉山国際カンツリー倶楽部 210万円  大浅間ゴルフクラブ 720万円  葛城ゴルフ倶楽部 450万円

'; pausecontent2[26]= '

ザ・カントリークラブ・ジ... 390万円  ザ ナショナルカントリー... 20万円  八王子カントリークラブ 420万円

'; pausecontent2[27]= '

飯能くすの樹カントリー倶... 60万円  ジャパンPGAゴルフクラ... 50万円  秦野カントリークラブ 10万円

'; pausecontent2[28]= '

オーク・ヒルズカントリ-... 25万円  ホロンゴルフ倶楽部 35万円  佐倉カントリー倶楽部 130万円

'; pausecontent2[29]= '

麻倉ゴルフ倶楽部 1000万円  小田原湯本カントリークラ... 8万円  沼津ゴルフクラブ 25万円

'; pausecontent2[30]= '

木更津ゴルフクラブ 120万円  東京相武カントリークラブ 60万円  長岡カントリー倶楽部 60万円

'; pausecontent2[31]= '

靜岡カントリー袋井コース 50万円  鎌倉カントリークラブ 5万円  靜岡カントリー浜岡コース... 20万円

'; pausecontent2[32]= '

サザンクロスカントリーク... 10万円  日本海カントリークラブ 10万円  松本浅間カントリークラブ 80万円

'; pausecontent2[33]= '

大宮国際カントリークラブ 8万円  芝山ゴルフ倶楽部 60万円  大多喜城ゴルフ倶楽部 60万円

'; pausecontent2[34]= '

長野京急カントリークラブ 50万円  白河高原カントリークラブ 40万円  さいたま梨花カントリーク... 30万円

'; pausecontent2[35]= '

飯田カントリー倶楽部 30万円 松ヶ峯カントリー倶楽部 10万円

'; /*********************************************** * Pausing up-down scroller- c 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)) //alert(this.visibledivtop); //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()}, 70) } else{ this.getinline(this.hiddendiv, this.visiblediv) this.swapdivs() setTimeout(function(){scrollerinstance.setmessage()}, this.delay) } */ 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()}, 70) } 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" div2.style.top=this.visibledivtop-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 }