/*
Cross browser Marquee script- © Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and Terms Of Use, visit http://www.dynamicdrive.com
Credit MUST stay intact
*/

//Specify the marquee's width (in pixels)
//Opera, Netscape 6, Netscape 4x, Mozilla 
if (window.innerWidth || window.innerHeight){ 
  docwidth = window.innerWidth; 
  docheight = window.innerHeight; 
} 
//IE, Mozilla
if (document.body.clientWidth || document.body.clientHeight){ 
  docwidth = document.body.clientWidth; 
  docheight = document.body.clientHeight; 
}
var marqueewidth=docwidth+"px"
//Specify the marquee's height
var marqueeheight="1.42em"
//Specify the marquee's marquee speed (larger is faster 1-10)
var marqueespeed=1
//configure background color:
var marqueebgcolor="transparent"
//Pause marquee onMousever (0=no. 1=yes)?
var pauseit=1

//Specify the marquee's content (don't delete <nobr> tag)
//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):

var marqueecontent='<nobr><span class="dot">&#149;</span> Welcome to the Center for Pacific Basin Studies - A program to promote cooperation among central banks in the region and enhance public understanding of major Pacific Basin monetary and economic policy issues. <a href="about.html">Learn more about CPBS.</a> <span class="dot">&#149;</span> &#2488;&#2509;&#2476;&#2494;&#2455;&#2468;&#2478; <span class="dot">&#149;</span> Maayong pag-abot <span class="dot">&#149;</span> &#27426;&#36814; <span class="dot">&#149;</span> Bienvenue <span class="dot">&#149;</span> Aloha <span class="dot">&#149;</span> &#2360;&#2381;&#2357;&#2366;&#2327;&#2340; <span class="dot">&#149;</span> Selamat datang <span class="dot">&#149;</span> &#12424;&#12358;&#12371;&#12381; <span class="dot">&#149;</span> sourm-sva-kum <span class="dot">&#149;</span> &#54872;&#50689;&#54633;&#45768;&#45796; <span class="dot">&#149;</span> Haere mai <span class="dot">&#149;</span> &#2588;&#2624; &#2566;&#2567;&#2566; &#2600;&#2626;&#2672; <span class="dot">&#149;</span> Bienvenidos <span class="dot">&#149;</span> Maligayang pagdating <span class="dot">&#149;</span> Maeva <span class="dot">&#149;</span> &#27489;&#36814; <span class="dot">&#149;</span> &#3618;&#3636;&#3609;&#3604;&#3637;&#3605;&#3657;&#3629;&#3609;&#3619;&#3633;&#3610; <span class="dot">&#149;</span> Hoan ngh&#x00EA;nh <span class="dot">&#149;</span></nobr>'

////NO NEED TO EDIT BELOW THIS LINE////////////
marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) //slow speed down by 1 for NS
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent+'</span>')
var actualwidth=''
var cross_marquee, ns_marquee

function populate(){
if (iedom){
cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
cross_marquee.style.left=parseInt(marqueewidth)+8+"px"
cross_marquee.innerHTML=marqueecontent
actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth
}
else if (document.layers){
ns_marquee=document.ns_marquee.document.ns_marquee2
ns_marquee.left=parseInt(marqueewidth)+8
ns_marquee.document.write(marqueecontent)
ns_marquee.document.close()
actualwidth=ns_marquee.document.width
}
lefttime=setInterval("scrollmarquee()",20)
}
window.onload=populate

function scrollmarquee(){
if (iedom){
if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8))
cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px"
else
cross_marquee.style.left=parseInt(marqueewidth)+8+"px"

}
else if (document.layers){
if (ns_marquee.left>(actualwidth*(-1)+8))
ns_marquee.left-=copyspeed
else
ns_marquee.left=parseInt(marqueewidth)+8
}
}
