/***********************************************
* Flexi Slideshow- L Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var variableslide=new Array()

//variableslide[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]

variableslide[0]=['/events/images/022401_small2.jpg', '/events/2010/022401.html', '<b>24 February 2010</b><br>International Conference: «Science and Technology Cooperation between Ukraine and EU countries: current status, benefits and perspectives»']
variableslide[1]=['/events/images/july_eng_small2.jpg', '/events/2008/july.html', '<b>July 2008</b><br>Landscape Ecology: Textbook on Application of Pressure Based Biodiversity Modelling']
variableslide[2]=['/events/images/051401_small2.jpg', '/events/2007/051401.html', '<b>14 May 2007</b><br>In the current issue of \«The Ukrainian\» magazine is published an interview with the ULRMC General director']
variableslide[3]=['/events/images/january_small2.jpg', '/events/2007/january.html', '<b>January 2007</b><br>Automatic Workplace for State Environmental Protection Inspector']
variableslide[4]=['/events/images/090901_small2.jpg', '/events/2006/090901.html', '<b>6-9 September 2006</b><br>XVI Economic Forum (Krynica, Poland)']

b1=new Image;b1.src="/events/images/022401_small2.jpg";
b2=new Image;b2.src="/events/images/july_eng_small2.jpg";
b3=new Image;b3.src="/events/images/051401_small2.jpg";
b4=new Image;b4.src="/events/images/january_small2.jpg";
b5=new Image;b5.src="/events/images/090901_small2.jpg";

//configure the below 3 variables to set the dimension/background color of the slideshow

var slidewidth='130px' //set to width of LARGEST image in your slideshow
var slideheight='188px' //set to height of LARGEST iamge in your slideshow, plus any text description
var slidebgcolor='#ffffff'

//configure the below variable to determine the delay between image rotations (in miliseconds)
var slidedelay=5000

////Do not edit pass this line////////////////

var ie=document.all
var dom=document.getElementById

for (i=0;i<variableslide.length;i++){
var cacheimage=new Image()
cacheimage.src=variableslide[i][0]
}

var currentslide=0

function rotateimages(){
contentcontainer='<center>'
if (variableslide[currentslide][1]!="")
contentcontainer+='<a href="'+variableslide[currentslide][1]+'">'
contentcontainer+='<img src="'+variableslide[currentslide][0]+'" border="0" vspace="3">'
if (variableslide[currentslide][1]!="")
contentcontainer+='</a>'
contentcontainer+='</center>'
if (variableslide[currentslide][2]!="")
contentcontainer+=variableslide[currentslide][2]

if (document.layers){
crossrotateobj.document.write(contentcontainer)
crossrotateobj.document.close()
}
else if (ie||dom)
crossrotateobj.innerHTML=contentcontainer
if (currentslide==variableslide.length-1) currentslide=0
else currentslide++
setTimeout("rotateimages()",slidedelay)
}

if (ie||dom)
document.write('<div class="news" id="slidedom" style="width:'+slidewidth+';height:'+slideheight+'; background-color:'+slidebgcolor+'"></div>')

function start_slider(){
crossrotateobj=dom? document.getElementById("slidedom") : ie? document.all.slidedom : document.slidensmain.document.slidenssub
if (document.layers)
document.slidensmain.visibility="show"
rotateimages()
}

if (ie||dom)
start_slider()
else if (document.layers)
window.onload=start_slider

