<!--
//scroller init values
var borderColor = "#FFFFFF"
var backgroundColor = "#FFFFFF"
var rightBgColor="#F4F3F1"
var scrollerWidth = 247;
var scrollerTop = 0;
var scrollerLeft = 0;
var scrollerHeight = 276;
var scrollerSpeed = 60;
var scrollerStep = 1;
var rightBorderWidth = 11;
var distTopEnd=scrollerHeight
var distArrows=245
var scrLineTop=10

var sufix = 0;
if (ns6) sufix = "px";

scrollStatus = 1;
oldScrollStatus = 1;
scrollDirection = 0;
scrollID = 0;

if (ns6){
	bodyW=parseInt(window.innerWidth)-20
	bodyH=parseInt(window.innerHeight)
} else if (ns){
	bodyW=parseInt(window.innerWidth)
	bodyH=parseInt(window.innerHeight)
} else {
	bodyW=parseInt(document.body.clientWidth)
	bodyH=parseInt(document.body.clientHeight)
}
scrollerLeft=parseInt((bodyW-777)/2)+514
scrollerTop=parseInt((bodyH-464)/2)+150
scrollerLeft=(scrollerLeft<514)?514:scrollerLeft
scrollerTop=(scrollerTop<150)?150:scrollerTop


var str1=""
var str2=""
if(ns4){
	str1+="<LAYER id='scrollerContainer' position=absolute visibility=hidden width="+ scrollerWidth +" height="+ scrollerHeight +" left=" + scrollerLeft + " top=" + scrollerTop + " overflow=hidden z-index=1>"
	str1+="<TABLE height="+scrollerHeight+" border=0 cellspacing=0 cellpadding=0><TR><TD bgcolor="+ borderColor +" height="+ scrollerHeight +" width="+ (scrollerWidth- rightBorderWidth) +"><IMG src='images/spacer.gif'></TD><TD width="+ rightBorderWidth +" bgcolor="+ rightBgColor +" valign=middle align=center>"
	str1+="<A href='javascript:void(null)' onmouseout='checkScroll();' onmousedown='scrollManual(1)' onmouseup='stopScrollManual()'><IMG src='images/scroll_up.gif' border=0 name='scroller_img_1'></A><BR><IMG src='images/spacer.gif' height=5 width=1><BR><IMG src='images/spacer.gif' width=1 height="+distArrows+"><BR><IMG src='images/spacer.gif' height=5 width=1><BR><A href='javascript:void(null)' onmouseout='checkScroll();' onmousedown='scrollManual(2)' onmouseup='stopScrollManual()'><IMG src='images/scroll_down.gif' border=0 name='scroller_img_3'></A></TD></TR></TABLE>"
		
		str1+="<LAYER id='scrLine' position=absolute visibility=visible width=11 height=12 left="+ (scrollerWidth - rightBorderWidth)  +" top=" + scrLineTop + " overflow=hidden clip=rect(0,0,11,12) z-index=2'><IMG src='images/scroll_indicator.gif' width=11 height=12></LAYER>"
		
		str1+="<LAYER id='scroller1' position=absolute visibility=visible width="+ (scrollerWidth - rightBorderWidth - 2) + " height="+ (scrollerHeight - 4) +" left=0 top=0 overflow=hidden clip=rect(0,0," + (scrollerWidth - rightBorderWidth - 2) + ","+ (scrollerHeight - 4) +") z-index=1>"
			str1+="<TABLE border=0 cellspacing=0 cellpadding=0><TR><TD height="+ (scrollerHeight - 4) +" width="+ (scrollerWidth - rightBorderWidth - 2)+" bgcolor="+ backgroundColor +"><IMG src='images/spacer.gif'></TD></TR></TABLE>"
			str1+="<LAYER id='scroller2' position=absolute visibility=visible width="+ (scrollerWidth - rightBorderWidth - 2)  +" left=0 top=0 z-index=100>"
				str1+="<TABLE border=0 cellspacing=0 cellpadding=0><TR><TD width="+ (scrollerWidth - rightBorderWidth -2)+" bgcolor="+ backgroundColor +">"
				//str1+=strScr
				
				str2+="</TD></TR></TABLE>"
			str2+="</LAYER>"
		str2+="</LAYER>"
	str2+="</LAYER>"
}else{
	str1+="<DIV id='scrollerContainer' style='position:absolute; visibility:hidden; width:"+ scrollerWidth +"px; height:"+ scrollerHeight +"px; left:" + scrollerLeft + "px; top:" + scrollerTop + "px; overflow:hidden;z-index:1'>"
	str1+="<TABLE height="+scrollerHeight+" border=0 cellspacing=0 cellpadding=0><TR><TD bgcolor="+ borderColor +" height="+ scrollerHeight +" width="+ (scrollerWidth-rightBorderWidth) +"><IMG src='images/spacer.gif'></TD><TD width="+ rightBorderWidth +" bgcolor="+ rightBgColor +" valign=middle align=center>"
	str1+="<A href='javascript:void(null)' onmouseout='checkScroll();' onmousedown='scrollManual(1)' onmouseup='stopScrollManual()'><IMG src='images/scroll_up.gif' border=0 name='scroller_img_1'></A><BR><IMG src='images/spacer.gif' height=5 width=1><BR><IMG src='images/spacer.gif' width=1 height="+distArrows+"><BR><IMG src='images/spacer.gif' height=5 width=1><BR><A href='javascript:void(null)' onmouseout='checkScroll();' onmousedown='scrollManual(2)' onmouseup='stopScrollManual()'><IMG src='images/scroll_down.gif' border=0 name='scroller_img_3'></A></TD></TR></TABLE>"
		
		str1+="<DIV id='scrLine' style='position:absolute; visibility:visible; width:11px; height:12px; left:"+ (scrollerWidth - rightBorderWidth)  +"px; top:" + scrLineTop + "px; overflow:hidden; clip:rect(0,11,12,0); z-index:2'><IMG src='images/scroll_indicator.gif' width=11 height=12></DIV>"
		
		str1+="<DIV id='scroller1' style='position:absolute; visibility:visible; width:"+ (scrollerWidth - rightBorderWidth - 2)  +"px; height:"+ (scrollerHeight - 4) +"px; left:0px; top:0px; overflow:hidden; clip:rect(0," + (scrollerWidth - rightBorderWidth - 2) + ","+ (scrollerHeight - 4) +",0); z-index:1'>"
			str1+="<TABLE border=0 cellspacing=0 cellpadding=0><TR><TD height="+ (scrollerHeight - 4) +" width="+ (scrollerWidth - rightBorderWidth - 2)+" bgcolor="+ backgroundColor +"><IMG src='images/spacer.gif'></TD></TR></TABLE>"
			str1+="<DIV id='scroller2' style='position:absolute; visibility:visible; width:"+ (scrollerWidth - rightBorderWidth - 2)  +"px; left:0px; top:0px; overflow:hidden;z-index:100'>"
				str1+="<TABLE border=0 cellspacing=0 cellpadding=0><TR><TD width="+ (scrollerWidth - rightBorderWidth - 2)+" bgcolor="+ backgroundColor +">"
				//str1+=strScr
				
				str2+="</TD></TR></TABLE>"
			str2+="</DIV>"
		str2+="</DIV>"
	str2+="</DIV>"
}


//scroller object height(InnerHTML height)
var scrollerObjHeight;
//scroller div object
var scrollerObj;
//scroller cursor object:
var cursorObj;

//scroller functions
function startScroller(){
	//getting scroller object height(InnerHTML height)
	if (ns6) scrollerObjHeight = document.getElementById('scroller2').offsetHeight;
	else if (ns) scrollerObjHeight = parseInt(document.layers['scrollerContainer'].document.layers['scroller1'].document.layers['scroller2'].clip.height);
	else scrollerObjHeight = parseInt(document.all['scroller2'].clientHeight);
	//getting scroller div object
	if (ns6) scrollerObj = document.getElementById('scroller2').style;
	else if (ns) scrollerObj = document.layers['scrollerContainer'].document.layers['scroller1'].document.layers['scroller2'];
	else scrollerObj = document.all['scroller2'].style;
	//onload, the scroll bar becomes visible:
	if (ns6) document.getElementById('scrollerContainer').style.visibility="visible";
	else if (ns) document.layers['scrollerContainer'].visibility="visible";
	else document.all['scrollerContainer'].style.visibility="visible";
	
	//getting scroller cursor object
	if (ns6) cursorObj = document.getElementById('scrLine').style;
	else if (ns) cursorObj = document.layers['scrollerContainer'].document.layers['scrLine'];
	else cursorObj = document.all['scrLine'].style;
	cursorObj.top=scrLineTop
	
	scrollerObj.top = "0" + sufix;
	scrollID++; 
}

function runScroller(tmpScrollID){
	if (tmpScrollID != scrollID) return;
	if(scrollStatus == 1) {
		if (parseInt(scrollerObj.top) > -1 * scrollerObjHeight) scrollerObj.top = (parseInt(scrollerObj.top) - scrollerStep) + sufix;
		setTimeout("runScroller("+ tmpScrollID +")",scrollerSpeed);
	} else {
		if(scrollDirection > 0) {
			if(scrollDirection == 2) {
				if (parseInt(scrollerObj.top) + scrollerObjHeight > distTopEnd) {
					scrollerObj.top = (parseInt(scrollerObj.top) - scrollerStep*8) + sufix;
					
					//scroll line:
					objTop=parseInt(scrollerObj.top)
					if (scrollerObjHeight+objTop<parseInt(cursorObj.top)) cursorObj.top=scrLineTop
					else {
						//if (parseInt(cursorObj.top)<distArrows+scrLineTop)
							cursorObj.top=Math.round((distArrows/(scrollerObjHeight-scrollerHeight)*Math.abs(parseInt(objTop))))+scrLineTop;
						//else
							//cursorObj.top=distArrows-12
					}
				}
				if (parseInt(cursorObj.top)>=distArrows+scrLineTop) cursorObj.top=distArrows+scrLineTop
			} else {
				if (parseInt(scrollerObj.top) <  0) {
					scrollerObj.top = (parseInt(scrollerObj.top) + scrollerStep*8) + sufix;
					
					//scroll line:
					objTop=parseInt(scrollerObj.top)
					if (scrollerObjHeight+objTop<=parseInt(cursorObj.top)) cursorObj.top=distArrows+scrLineTop
					else {
						//if (parseInt(cursorObj.top)>scrLineTop)
							cursorObj.top=Math.round((distArrows/(scrollerObjHeight-scrollerHeight)*Math.abs(parseInt(objTop))))+scrLineTop;
						//else
							//cursorObj.top=scrLineTop
					}
					
					window.status=(scrollerObjHeight+objTop) + " < " + parseInt(cursorObj.top)
				}
				if (parseInt(cursorObj.top)<=scrLineTop) cursorObj.top=scrLineTop
			}	 
			setTimeout("runScroller("+ tmpScrollID +")",parseInt(scrollerSpeed/2));
		}	
	}
}

function changeImage(imgObjIndex,imgPathindex) {
	if ((imgObjIndex == 2) && (scrollStatus == 0)) return;
	if(ns6 || ie) eval("document.images['scroller_img_"+ imgObjIndex +"']").src = imagesObj[imgPathindex].src;
	else eval("document.layers['scrollerContainer'].document.images['scroller_img_"+ imgObjIndex +"']").src = imagesObj[imgPathindex].src;
}

function changeScrollStatus() {
	if(scrollStatus == 0) { 
		scrollStatus = 1;
		changeImage(2,4);
		scrollID++; 
		runScroller(scrollID);
	} else {
		changeImage(2,5);
		scrollStatus = 0;
	}	
}

function scrollManual(tmp_scrollDirection) {
	oldScrollStatus = scrollStatus;
	scrollStatus = 0;
	scrollDirection = tmp_scrollDirection;
	scrollID++; 
	runScroller(scrollID);
}

function stopScrollManual() {
	scrollDirection = 0;
	scrollStatus = oldScrollStatus;
	scrollID++; 
}

function checkScroll(){
	if (scrollDirection != 0) stopScrollManual();
}
//-->