
//slider's width
var swidth=370

//slider's height
var sheight=250

//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=Times new size=3 color="#315904"><b> شيوه نامه ارسال پايان نامه‌ به سازمان تات  <br><a target="_blank" href="http://www.agrisis.org/documents/thesis+manual.pdf"><i><font color="red">اطلاعات بیشتر</i></a></div></FONT>'
singletext[0]=singletext[0]+'<br><br><br>'+'<div align="center"><font face=Times new size=3 color="#315904"><b> فرم ثبت اطلاعات پايان‌نامه‌‌ها <br><a target="_blank" href="http://www.agrisis.org/documents/form+thesis.pdf"><i><font color="red">اطلاعات بیشتر</i></a></div></FONT>'

singletext[1]='<div align="center"><font face=Times new size=3 color="#315904"><b> گزارش برگزاری مجمع عمومي  <br>مركز اطلاعات و مدارك علمي كشاورزي  <br>  هجدهم مرداد ماه 1389 <br><a target="_blank" href="http://www.agrisis.org/database/news/detail.asp?code=255"><i><font color="red">اطلاعات بیشتر</i></a></div></FONT>'
singletext[1]=singletext[1]+'<br><br><br>'+'<div align="center"><font face=Times new size=3 color="#315904"><b> فهرست انتشارات سازمان تحقيقات ،آموزش و ترويج كشاورزي <br>از سال 1374 الي 1387 <b><br> <a target="_blank" href="http://www.agrisis.org/documents/Areeo+book+list.pdf"><i><font color="red">اطلاعات بیشتر</i></a></div></FONT>'

singletext[2]='<div align="center"><font face=Times new size=3 color="#315904"><b>تقويم مهمترين سمينارهاي بين المللي  سال 2010 ميلادي     <br>در زمينه كشاورزي و علوم وابسته  <b><br> گردآوري شده توسط   <br>مركز اطلاعات و مدارك علمي كشاورزي<br><a target="_blank" href="http://www.agrisis.org/documents/calendar+2010.asp"><i><font color="red">اطلاعات بیشتر</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

