///////Do not edit pass this line///////////////////////
     

var ie=document.all
var dom=document.getElementById



if (slideimages.length>2)
	viCount=2
else
	viCount=0


function move(whichdiv){
tdiv=eval(whichdiv)
if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){
tdiv.style.top=0+"px"
setTimeout("move(tdiv)",scrollerdelay)
setTimeout("move2(second2_obj)",scrollerdelay)
return
}
if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
tdiv.style.top=parseInt(tdiv.style.top)-5+"px"
setTimeout("move(tdiv)",50)
}
else{
tdiv.style.top=parseInt(scrollerheight)+"px"
tdiv.innerHTML=slideimages[viCount]
if (viCount==slideimages.length-1)
viCount=0
else
viCount++
}
}

function move2(whichdiv){
tdiv2=eval(whichdiv)
if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){
tdiv2.style.top=0+"px"
setTimeout("move2(tdiv2)",scrollerdelay)
setTimeout("move(first2_obj)",scrollerdelay)
return
}
if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
tdiv2.style.top=parseInt(tdiv2.style.top)-5+"px"
setTimeout("move2(second2_obj)",50)
}
else{
tdiv2.style.top=parseInt(scrollerheight)+"px"
tdiv2.innerHTML=slideimages[viCount]
if (viCount==slideimages.length-1)
viCount=0
else
viCount++
}
}

function startscroll(){
first2_obj=ie? first2 : document.getElementById("first2")
second2_obj=ie? second2 : document.getElementById("second2")
move(first2_obj)
second2_obj.style.top=scrollerheight
second2_obj.style.visibility='visible'
}

// ID of the news box
var dn_newsID='vscroll';			
// class to add when JS is available
var dn_classAdd='hasJS';		
// Message to stop scroller
var dn_stopMessage='Stop ';	
// ID of the generated paragraph
var dn_paraID='DOMnewsstopper';
function initDOMnews()
{
	var n=document.getElementById('viscroll');
	if(!n){return;}
	var newa=document.createElement('a');
	var newp=document.createElement('p');
	newp.setAttribute('id',dn_paraID);
	newa.href='#';
	newa.className = 'scrollLink';
	newa.appendChild(document.createTextNode(dn_stopMessage));
	newa.onclick=stopDOMnews;
	newp.appendChild(newa);
	n.parentNode.insertBefore(newp,n.nextSibling);

	var newab=document.createElement('a');
	var newpb=document.createElement('p');
	newpb.setAttribute('id',dn_paraID);
	newab.href='#';
	newab.className = 'scrollLink';
	newab.appendChild(document.createTextNode(' Start'));
	newab.onclick=startDOMNews;
	newpb.appendChild(newab);

	n.parentNode.insertBefore(newpb,n.nextSibling);
	n.parentNode.insertBefore(newp,n.nextSibling);


}
function stopDOMnews()
{
	var toStop = document.getElementById('first2');
	var toStop2 = document.getElementById('main2');
	toStop.style.display = 'none';
	toStop2.style.display = 'none';
}
function startDOMNews()
{
	var toStop = document.getElementById('first2');
	var toStop2 = document.getElementById('main2');
	toStop.style.display = 'block';
	toStop2.style.display = 'block';
}
