
//slider's width
var swidth=281

//slider's height
var sheight=230

//slider's speed
var sspeed=2

//messages: change to 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]='<div align="center"><font face=Verdana size=2 color="#315904"><b>Dr. Mohammed Roozitalab has been<br>appointed as Coordinator of the</b><br>Iran-ICARDA Program and Highlands<br>Regional Research Network<br><a target="_blank" href="http://www.aarinena.org/documents/Iran_ICARDA_Coordinator.htm"><i><font color="red">See details</i></a></div></FONT>'

singletext[1]='<div align="center"><font face=Verdana size=2 color="#315904"><b>2nd Announcement:<br>11th Iran National Congress of Soil Science</b><br>12-14 July 2009<br>Gorgan, Iran<br><a target="_blank" href="http://www.soiliran.org/Congress/11th/2nd announcement.htm"><i><font color="red">See details</i></a></div></FONT>'
singletext[1]=singletext[1]+'<br><br><br>'+'<div align="center"><font face=Verdana size=2 color="#315904">International Union of Soil Sciences <br>Elections Results 2008<br>Dr. M.H. Roozitalab elected as the Vice Chair of <br>Soils & Land Use Change Commission  <br><a target="_blank" href=" http://www.iuss.org/elections2008/elections2008.htm"><i><font color="red">See details</i></a></div></FONT>'

singletext[2]='<div align="center"><font face=Verdana size=2 color="#315904"><b>19th World Congress of Soil Science </b><br>1-6 August 2010 <br>Brisbane, Australia<br><a target="_blank" href="http://www.ccm.com.au/soil/"><i><font color="red">See details</i></a></div></FONT>'

singletext[3]='<div align="center"><font face=Verdana size=2 color="#315904">11th International Symposium on<br> Soil and Plant Analysis <br>Jul 20 - 24, 2009<br>Santa Rosa ,California ,USA <br><a target="_blank" href="http://www.spcouncil.com/symposium.htm"><i><font color="red">See details</i></a></div></FONT>'
singletext[3]=singletext[3]+'<br><br><br>'+'<div align="center"><font face=Verdana size=2 color="#315904">17th International Conference on  <br>Soil Mechanics & Geotechnical Engineering<br>Oct 05 -09,2009 <br>Alexandria ,EG <br><a target="_blank" href="http://www.2009icsmge-egypt.org"><i><font color="red">See details</i></a></div></FONT>'


if (singletext.length>1)
i=1
else
i=0
function start(){
if (document.all){
ieslider1.style.top=sheight
iemarquee(ieslider1)
}
else if (document.layers){
document.ns4slider.document.ns4slider1.top=sheight
document.ns4slider.document.ns4slider1.visibility='show'
ns4marquee(document.ns4slider.document.ns4slider1)
}
else if (document.getElementById&&!document.all){
document.getElementById('ns6slider1').style.top=sheight
ns6marquee(document.getElementById('ns6slider1'))
}
}
function iemarquee(whichdiv){
iediv=eval(whichdiv)
if (iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){
iediv.style.pixelTop=0
setTimeout("iemarquee(iediv)",100)
}
if (iediv.style.pixelTop>=sheight*-1){
iediv.style.pixelTop-=sspeed
setTimeout("iemarquee(iediv)",100)
}
else{
iediv.style.pixelTop=sheight
iediv.innerHTML=singletext[i]
if (i==singletext.length-1)
i=0
else
i++
}
}
function ns4marquee(whichlayer){
ns4layer=eval(whichlayer)
if (ns4layer.top>0&&ns4layer.top<=sspeed){
ns4layer.top=0
setTimeout("ns4marquee(ns4layer)",100)
}
if (ns4layer.top>=sheight*-1){
ns4layer.top-=sspeed
setTimeout("ns4marquee(ns4layer)",100)
}
else{
ns4layer.top=sheight
ns4layer.document.write(singletext[i])
ns4layer.document.close()
if (i==singletext.length-1)
i=0
else
i++
}
}
function ns6marquee(whichdiv){
ns6div=eval(whichdiv)
if (parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){
ns6div.style.top=0
setTimeout("ns6marquee(ns6div)",100)
}
if (parseInt(ns6div.style.top)>=sheight*-1){
ns6div.style.top=parseInt(ns6div.style.top)-sspeed
setTimeout("ns6marquee(ns6div)",100)
}
else{
ns6div.style.top=sheight
ns6div.innerHTML=singletext[i]
if (i==singletext.length-1)
i=0
else
i++
}
}
//  End 




function initArraydate()    {
   for(j=0;j<initArraydate.arguments.length; j++) this[j] = initArraydate.arguments[j];
}

var isnMonths=new initArraydate("J a n","F e b","M a r","A p r","M a y","J u n","J u l","A u g","S e p","O c t","N o v","D e c");
var isnDays= new initArraydate("S u n d a y","M o n d a y","T u e s d a y","W e d n e s d a y","T h u r s d a y","F r i d a y","S a t u r d a y","S u n d a y");
today=new Date();
function getFullYear(d) { // d is a date object
 yr = d.getYear();
 if (yr < 1000)
  yr+=1900;
 return yr;
}
////
/////////////////////////////////////////////////insert


