// JavaScript Document

/**************************************
* http://vertical-scroller.vbarsan.com/
*    This notice may not be removed 
**************************************/

//-- Begin Scroller's Parameters and messages -->
//scroller's width
var swidth=220;

//scroller's height
var sheight=80;


//scroller's speed 
var sspeed=2;
var restart=sspeed;
var rspeed=sspeed;

//scroller's pause 
var spause=2000;

//scroller's background
var sbcolor="#eeeeee";

//messages: set your own; use as many as you'd like; set up Hyperlinks to
//URLs as you normally do: <a target=... href="... URL ...">..message..</a>;
var singletext=new Array();
singletext[0]='<p class="ticker">The next <a href="/meetings/operational_meetings.html?Accordion1=0">operational management meeting</a>, will be in Berlin on the 23rd August 2010.</p>';
singletext[1]='<p class="ticker"><a href="/docs/onegeology_Newsletter_Issue_10.pdf" target="_blank">OneGeology newsletter issue 10</a>, now available.</p>';
singletext[2]='<p class="ticker">Welcome to Malaysia, the latest country to join the OneGeology initiative! </p>';
singletext[3]='<p class="ticker">Burkina Faso is the latest country to serve it\'s map data in the Portal.</p>';
singletext[4]='<p class="ticker"><a href="/wmsCookbook/home.html">OneGeology web map service (WMS) cookbook</a> is now available as a set of webpages.</p>';
singletext[5]='<p class="ticker"><a href="/extra/kids/">OneGeology kids</a> is now available in more languages!</p>';
singletext[6]='<p class="ticker">116 countries are currently participating in OneGeology initiative.</p>';
singletext[7]='<p class="ticker">More than 40 countries/regions are currently making their map data available on the Portal.</p>';
singletext[8]='<h3 class="ticker"><a href="/misc/downloads.html?Accordion1=2#guidance">Guidance for the use of OneGeology images and data</a>.</h3>';
singletext[9]='<p class="ticker">Geological surveys should contact <a href="mailto:onegeology@bgs.ac.uk">onegeology@bgs.ac.uk</a> to serve their geological map data.</p>';

var ii=0;
function goup(){if(sspeed!=rspeed*16){sspeed=sspeed*2;restart=sspeed;}}

function start(){
if(document.getElementById){ns6div=document.getElementById('iens6div');ns6div.style.top=sheight+"px";ns6div.innerHTML=singletext[0];sizeup=ns6div.offsetHeight;ns6scroll();}
else 
if(document.layers){ns4layer=document.ns4div.document.ns4div1;ns4layer.top=sheight;ns4layer.document.write(singletext[0]);ns4layer.document.close();sizeup=ns4layer.document.height;ns4scroll();}
else 
if(document.all){iediv=iens6div;iediv.style.pixelTop=sheight+"px";iediv.innerHTML=singletext[0];sizeup=iediv.offsetHeight;iescroll();}}
function iescroll()
{if(iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){iediv.style.pixelTop=0;setTimeout("iescroll()",spause);}else 
if(iediv.style.pixelTop>=sizeup*-1){iediv.style.pixelTop-=sspeed+"px";setTimeout("iescroll()",100);}else{if(ii==singletext.length-1)ii=0;else ii++;iediv.style.pixelTop=sheight+"px";iediv.innerHTML=singletext[ii];sizeup=iediv.offsetHeight;iescroll();}}
function ns4scroll()
{if(ns4layer.top>0&&ns4layer.top<=sspeed){ns4layer.top=0;setTimeout("ns4scroll()",spause);}else 
if(ns4layer.top>=sizeup*-1){ns4layer.top-=sspeed;setTimeout("ns4scroll()",100);}else{if(ii==singletext.length-1)ii=0;else ii++;ns4layer.top=sheight;ns4layer.document.write(singletext[ii]);ns4layer.document.close();sizeup=ns4layer.document.height;ns4scroll();}}
function ns6scroll()
{if(parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){ns6div.style.top=0;setTimeout("ns6scroll()",spause);}else 
if(parseInt(ns6div.style.top)>=sizeup*-1){ns6div.style.top=parseInt(ns6div.style.top)-sspeed+"px";setTimeout("ns6scroll()",100);}
else{if(ii==singletext.length-1)ii=0;else ii++;
ns6div.style.top=sheight+"px";ns6div.innerHTML=singletext[ii];sizeup=ns6div.offsetHeight;ns6scroll();}}
function outputTicker(){
if(document.layers)
	{document.write('<ilayer id="ns4div" width="'+swidth+'" height="'+sheight+'" bgcolor='+sbcolor+'"><layer class="welcome" id="ns4div1" width="'+swidth+'" height="'+sheight+'" onmouseover="sspeed=0;" onmouseout="sspeed=rspeed"></layer></ilayer>')}
if(document.getElementById||document.all)
{document.write('<div style="position:relative;overflow:hidden;width:'+swidth+'px;height:'+sheight+'px;clip:rect(0 '+swidth+'px '+sheight+'px 0);background-color:'+sbcolor+';" onmouseover="sspeed=0" onmouseout="sspeed=rspeed"><div id="iens6div" style="position:relative;width:'+swidth+'px;"></div></div>');}
}