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

new大利根カントリークラブ 930万円  new成田ヒルズカントリークラ... 90万円  new我孫子ゴルフ倶楽部 850万円

'; pausecontent2[1]= '

new八王子カントリークラブ 820万円  new江戸崎カントリー倶楽部 80万円  new玉川カントリークラブ 8万円

'; pausecontent2[2]= '

new平塚富士見カントリークラ... 750万円  new浜松シーサイドゴルフクラ... 75 万円  new箱根カントリー倶楽部 700万円

'; pausecontent2[3]= '

new米原ゴルフ倶楽部 70万円  newレイク浜松カントリークラ... 70万円  new大多喜城ゴルフ倶楽部 70万円

'; pausecontent2[4]= '

new東京カントリー倶楽部 70万円  new長岡カントリー倶楽部 70万円  new都ゴルフ倶楽部 7万円

'; pausecontent2[5]= '

newキングフィールズゴルフク... 670万円  new都留カントリー倶楽部 65万円  new芝山ゴルフ倶楽部 60万円

'; pausecontent2[6]= '

new本千葉カントリークラブ 60万円  new中津川カントリークラブ 60万円  new豊科カントリー倶楽部 60万円

'; pausecontent2[7]= '

new鹿野山ゴルフ倶楽部 60万円  new千葉カントリークラブ 560万円  newリバーサイドフェニックス... 55万円

'; pausecontent2[8]= '

new靜岡カントリー袋井コース 50万円  new大栄カントリー倶楽部 50万円  newザ・インペリアルカントリ... 50万円

'; pausecontent2[9]= '

new飯能くすの樹カントリー倶... 50万円  newジャパンPGAゴルフクラ... 50万円  new白河高原カントリークラブ 50万円

'; pausecontent2[10]= '

new習志野カントリークラブ 50万円  newおおむらさきゴルフ倶楽部 50万円  new鎌倉カントリークラブ 5万円

'; pausecontent2[11]= '

new葛城ゴルフ倶楽部 460万円  new袖ヶ浦カンツリークラブ(... 460万円  new大千葉カントリー倶楽部 45万円

'; pausecontent2[12]= '

new小金井カントリー倶楽部 4300万円  new白帆カントリークラブ 40万円  newGMG八王子ゴルフ場 40万円

'; pausecontent2[13]= '

new沼津ゴルフクラブ 40万円  newカントリークラブグリーン... 40万円  new香取カントリークラブ 40万円

'; pausecontent2[14]= '

new松本浅間カントリークラブ 40万円  newレイクウッドゴルフクラブ 3600万円  newザ・カントリークラブ・ジ... 350万円

'; pausecontent2[15]= '

new山田クラブ21 35万円  newあづみ野カントリークラブ 35万円  new白水ゴルフ倶楽部 35万円

'; pausecontent2[16]= '

new東京国際ゴルフ倶楽部 320万円  new浜野ゴルフクラブ 320万円  new南総カントリークラブ 300万円

'; pausecontent2[17]= '

new総武カントリークラブ 300万円  new飯田カントリー倶楽部 30万円  new入間カントリー倶楽部(名... 30万円

'; pausecontent2[18]= '

newグレンオークスカントリー... 30万円  new小名浜カントリー倶楽部 30万円  new相良カントリー倶楽部 30万円

'; pausecontent2[19]= '

newオーク・ヒルズカントリ-... 30万円  newホロンゴルフ倶楽部 30万円  new伊香保カントリークラブ 30万円

'; pausecontent2[20]= '

newジェイゴルフ霞ヶ浦 30万円  newセゴビアゴルフクラブ・イ... 30万円  new東松山カントリークラブ 295万円

'; pausecontent2[21]= '

new鳩山カントリークラブ 270万円  new富士レイクサイドカントリ... 270万円  new戸塚カントリー倶楽部 2550万円

'; pausecontent2[22]= '

new立川国際カントリー倶楽部 250万円  new成田ゴルフ倶楽部 250万円  new富士見ヶ丘カントリー倶楽... 25万円

'; pausecontent2[23]= '

new日高カントリークラブ 240万円  new猿島カントリー倶楽部 230万円  new河口湖カントリークラブ 200万円

'; pausecontent2[24]= '

new平川カントリークラブ 200万円  new唐沢ゴルフ倶楽部 20万円  newあさひヶ丘カントリークラ... 20 万円

'; pausecontent2[25]= '

new東千葉カントリークラブ 20万円  newさいたまゴルフクラブ 20万円  new烏山城カントリークラブ 20万円

'; pausecontent2[26]= '

newサザンヤードカントリーク... 20万円  new草津カントリークラブ 20万円  new糸魚川カントリークラブ 20万円

'; pausecontent2[27]= '

new千葉夷隅ゴルフクラブ 20万円  new長太郎カントリークラブ 20万円  new房総カントリークラブ 20万円

'; pausecontent2[28]= '

new岡部チサンカントリークラ... 20万円  new飯能グリーンカントリーク... 190万円  new桜ヶ丘カントリークラブ 1800万円

'; pausecontent2[29]= '

new常陽カントリー倶楽部 180万円  newグランディ浜名湖ゴルフク... 180万円  newニッソーカントリークラブ 18万円

'; pausecontent2[30]= '

new富嶽カントリークラブ 1550万円  new姉ヶ崎カントリー倶楽部 150万円  new取手国際ゴルフ倶楽部 150万円

'; pausecontent2[31]= '

new中央都留カントリー倶楽部 15万円  new東名厚木カントリー倶楽部... 15万円  newアバイディングクラブゴル... 15万円

'; pausecontent2[32]= '

new成田の森カントリークラブ 15万円  new東松苑ゴルフ倶楽部 15万円  new長瀞カントリークラブ 15万円

'; pausecontent2[33]= '

newノーザンカントリークラブ... 15万円  new塩原カントリークラブ 15万円  new越生ゴルフクラブ 15万円

'; pausecontent2[34]= '

newアジア取手カントリー倶楽... 15万円  new大厚木カントリークラブ 15万円  newかすみがうらゴルフクラブ 15万円

'; pausecontent2[35]= '

new都賀カンツリー倶楽部 15万円  new三井の森蓼科ゴルフ倶楽部 140万円  new鶴舞カントリー倶楽部 135万円

'; pausecontent2[36]= '

new湘南シーサイドカントリー... 125万円  new美里ゴルフ倶楽部 120万円  new金乃台カントリークラブ 120万円

'; pausecontent2[37]= '

new武蔵松山カントリークラブ 110万円  newカレドニアン・ゴルフクラ... 110万円  new多摩カントリークラブ 1050万円

'; pausecontent2[38]= '

new茨城ゴルフ倶楽部 1040万円  newレインボーカントリー倶楽... 100万円  new浜松カントリークラブ 100万円

'; pausecontent2[39]= '

new太田双葉カントリークラブ 10万円  new一の宮カントリー倶楽部 10万円  new秦野カントリークラブ 10万円

'; pausecontent2[40]= '

new大宮国際カントリークラブ 10万円  newロイヤルスターゴルフクラ... 10万円  new大日向カントリー倶楽部 10万円

'; pausecontent2[41]= '

new鹿島の杜カントリー倶楽部 10万円  new扶桑カントリー倶楽部 10万円  new佐野ゴルフクラブ 10万円

'; pausecontent2[42]= '

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