// JavaScript Document
function $(ds)
{
	return document.getElementById(ds);
}

	function findPos(obj) {
	var curleft = curtop = 0;
		if (obj.offsetParent) {
			curleft = obj.offsetLeft
			curtop = obj.offsetTop
			while (obj = obj.offsetParent) {
				curleft += obj.offsetLeft
				curtop += obj.offsetTop
			}
		}
		alert(curleft);
		return [curleft];
	}
	
	var di =9;
		var menus = [
		new ypSlideOutMenu("drop1", "down", 47, -20, 152, 335),
		new ypSlideOutMenu("drop2", "down", 80, -15, 152, 335),
		new ypSlideOutMenu("drop3", "down", 163, -15, 152, 335),
		new ypSlideOutMenu("drop4", "down", 245, -15, 152, 335),
		new ypSlideOutMenu("drop5", "down", 328, -15, 152, 335),
		new ypSlideOutMenu("drop6", "down", 373, -15, 152, 335)]








//specify speed of scroll (greater=faster)
var speed=5

iens6 = document.all||document.getElementById
firefox = document.getElementById && !document.all
 
var crossobj;
var contentwidth;
 
function movedown(a){

if (document.getElementById(a) != null )
{
crossobj=document.getElementById(a) 
if (iens6){
contentwidth=crossobj.offsetWidth 
}
if (firefox){
contentwidth=crossobj.offsetWidth + 537
}
}
if (iens6&&parseInt(crossobj.style.left)>=(contentwidth*(-1)+637))  /* IE Fix */
crossobj.style.left=parseInt(crossobj.style.left)-speed+"px"
movedownvar=setTimeout("movedown('a')",20)
}

function moveup(a){
if (document.getElementById(a) != null )
{
crossobj=document.getElementById(a) 
contentwidth=crossobj.offsetWidth
}
if (iens6&&parseInt(crossobj.style.left)<=0)
crossobj.style.left=parseInt(crossobj.style.left)+speed+"px"
moveupvar=setTimeout("moveup('a')",20)
}

