/***********************************
*   http://javascripts.vbarsan.com/
*   This notice may not be removed 
***********************************/
//-- Begin Scroller's Parameters and message -->
//scroller width: change to your own;
var swidth=166;
//scroller height: change to your own;
var sheight=143;
//background color: change to your own; 
var sbcolor="#EAEAEA";//"#ccffcc";

//scroller's speed: change to your own;
var sspeed=2;
var restart=sspeed;
rspeed=sspeed;

//text: change to your own
wholemessage = '';
//wholemessage='<div align="left" class=tabb><a class=tabb href="http://javascripts.vbarsan.com">Dhtml Vertical Scroller 7.0<br>Dhtml Horizontal Scroller 7.0<br>Dhtml Typewriter Scroller 5.0</a></div>'+
//'<br><div align="left" class=tab>This message may be as large as desired - any wider row will automatically be adjusted into as many rows as to fit the width you set for the scrolling area.</div>';

//Or you may do a slide show running up any number of images too!
//Preload is recommended (no downloading check) - otherwise you may skip this:
//preload1 = new Image();
//preload1.src = "http://...";
//preload2 = new Image();
//preload2.src = "http://...";
//preload3 = new Image();
//preload3.src = "http://...";
// ...
//if no preloading, replace below '+ preload... +' with the actual Images path "..."
//wholemessage='<img src='+preload1.src+' width=... height=... alt="..."><br>'+
//'<img src='+preload2.src+' width=... height=... alt="..."><br>'+
//'<img src='+preload3.src+' width=... height=... alt="..."><br>'+
//'<img ... >';

function goup()
{
    if(sspeed!=rspeed*8){sspeed=sspeed*2;restart=sspeed;}
}
function godown()
{
    if(sspeed>rspeed){sspeed=sspeed/2;restart=sspeed;}
}
function start()
{
    if(document.getElementById)
        ns6marquee(document.getElementById('slider'));
    else if(document.all)
        iemarquee(slider);
    else if(document.layers)ns4marquee(document.slider1.document.slider2);
}
function iemarquee(whichdiv)
{
    iediv=eval(whichdiv);
    iediv.style.pixelTop=sheight+"px";
    iediv.innerHTML=wholemessage;
    sizeup=iediv.offsetHeight;ieslide();
}
function ieslide()
{
    if(iediv.style.pixelTop>=sizeup*(-1))
    {
        iediv.style.pixelTop-=sspeed+"px";
        setTimeout("ieslide()",100);
    }
    else
    {
        iediv.style.pixelTop=sheight+"px";ieslide();
    }
}
function ns4marquee(whichlayer)
{
    ns4layer=eval(whichlayer);
    ns4layer.top=sheight;
    ns4layer.document.write(wholemessage);
    ns4layer.document.close();
    sizeup=ns4layer.document.height;
    ns4slide();
}
function ns4slide()
{
    if(ns4layer.top>=sizeup*(-1))
    {
        ns4layer.top-=sspeed;setTimeout("ns4slide()",100);
    }
    else
    {
        ns4layer.top=sheight;ns4slide();
    }
}
function ns6marquee(whichdiv)
{
    ns6div=eval(whichdiv);
    ns6div.style.top=sheight+"px";
    ns6div.innerHTML=wholemessage;
    sizeup=ns6div.offsetHeight;
    ns6slide();
}
function ns6slide()
{
    if(parseInt(ns6div.style.top)>=sizeup*(-1))
    {
        ns6div.style.top=parseInt(ns6div.style.top)-sspeed+"px";
        setTimeout("ns6slide()",100);
    }
    else
    {
        ns6div.style.top=sheight+"px";ns6slide();
    }
}


















	/************************************************************************************************************
	(C) www.dhtmlgoodies.com, November 2005
	
	This is a script from www.dhtmlgoodies.com. You will find this and a lot of other scripts at our website.	
	
	Terms of use:
	You are free to use this script as long as the copyright message is kept intact. However, you may not
	redistribute, sell or repost it without our permission.
	
	Thank you!
	
	www.dhtmlgoodies.com
	Alf Magne Kalleland
	
	************************************************************************************************************/
/*		
	var slideTimeBetweenSteps = 30;	// General speed variable (Lower = slower)
	
	
	var scrollingContainer = false;
	var scrollingContent = false;
	var containerHeight;
	var contentHeight;	
	
	var contentObjects = new Array();
	var originalslideSpeed = false;
	function slideContent(containerId)
	{
		var topPos = contentObjects[containerId]['objRef'].style.top.replace(/[^\-0-9]/g,'');
		topPos = topPos - contentObjects[containerId]['slideSpeed'];
		if(topPos/1 + contentObjects[containerId]['contentHeight']/1<0)topPos = contentObjects[containerId]['containerHeight'];
		contentObjects[containerId]['objRef'].style.top = topPos + 'px';
		setTimeout('slideContent("' + containerId + '")',slideTimeBetweenSteps);
		
	}
	
	function stopSliding()
	{
		var containerId = this.id;
		contentObjects[containerId]['slideSpeed'] = 0;	
	}
	
	function restartSliding()
	{
		var containerId = this.id;
		contentObjects[containerId]['slideSpeed'] = contentObjects[containerId]['originalSpeed'];
		
	}
	function initSlidingContent(containerId,slideSpeed)
	{
		scrollingContainer = document.getElementById(containerId);
		scrollingContent = scrollingContainer.getElementsByTagName('DIV')[0];
		
		scrollingContainer.style.position = 'relative';
		scrollingContainer.style.overflow = 'hidden';
		scrollingContent.style.position = 'relative';
		
		scrollingContainer.onmouseover = stopSliding;
		scrollingContainer.onmouseout = restartSliding;
		
		originalslideSpeed = slideSpeed;
		
		scrollingContent.style.top = '0px';
		
		contentObjects[containerId] = new Array();
		contentObjects[containerId]['objRef'] = scrollingContent;
		contentObjects[containerId]['contentHeight'] = scrollingContent.offsetHeight;
		contentObjects[containerId]['containerHeight'] = scrollingContainer.clientHeight;
		contentObjects[containerId]['slideSpeed'] = slideSpeed;
		contentObjects[containerId]['originalSpeed'] = slideSpeed;
		
		slideContent(containerId);
		
	}
*/	

	
