// JavaScript Document

	function showMenu(name) 
	{

		stdBrowser = (document.getElementById) ? true : false

		menuObj = (stdBrowser) ? document.getElementById(name).style : eval("document." + name)
		menuObj.visibility = "visible"
				
	}

	
	function hideMenu(name) 
	{

		stdBrowser = (document.getElementById) ? true : false

		menuObj = (stdBrowser) ? document.getElementById(name).style : eval("document." + name)
				
		menuObj.visibility = "hidden"
	}
	
	
	
	function showSubs(name) 
	{

		stdBrowser = (document.getElementById) ? true : false

		menuObj = (stdBrowser) ? document.getElementById(name).style : eval("document." + name)
		menuObj.visibility = "visible"
				
	}

	
	function hideSubs(name) 
	{

		stdBrowser = (document.getElementById) ? true : false

		menuObj = (stdBrowser) ? document.getElementById(name).style : eval("document." + name)
				
		menuObj.visibility = "hidden"
	}
	
	function what_browser()
	{
			if(navigator.appName.indexOf('Microsoft Internet Explorer') != -1)
			{
				alert("internet Explorer");
			}
			else if(navigator.appName.indexOf('Netscape') != -1)
			{
				alert("netscape");
			}
			else{
					alert("dont know");
				}
	}
	
	function what_browser2()
	{
		
		var br=navigator.appName;
		return (br);
	}
	
	
	
	
	
	
	
	
	
	/*news*/
// **********************     News Scroller     ************************************************************
var animaeDelay = 70;
var delay = 70;
var domStyle;
var fX = null;
var fY = null;
var cY=null;
var cX=0;
var initailX=null;
var initialY=null;
var browser=null;



function findTop(objectID) {
	var domStyle = findDOM(objectID,1);
	var dom = findDOM(objectID,0);
	if (domStyle.top)
		return domStyle.top;
	if (domStyle.pixelTop)
		return domStyle.pixelTop;
	if (dom.offsetTop)
		return dom.offsetTop;
	return (null);
}			

function startAnimate(objectID) {
	fX = 0;
	fY = 330;
	
		
	
	
	initialX = 0;
	initialY = 120;
	
	cY = initialY;
	
	domStyle = findDOM(objectID,1);
	animateObject(0,cY)
}

function animateObject(cX,cY)  {

	
	
	
	if (cY != fY) 
	{
		
		if (cY > fY) 
		{ 
			cY -=1;
			
		}
		else 
		{ 
			
			
			cY +=1; 
			
		}
	}
	if (cY != fY ) 
	{
		var cY2=null;
		var ff=null;
		var ie=null;
		
		if (domStyle.pixelTop) 
			{
				domStyle.pixelTop= cY;
				
			}
			else 
			{
				cY2=cY;
				ie=cY;
				cY2== String(cY)
				cY2=cY2 + "px";
				
			}
			
			if(navigator.appName.indexOf('Microsoft Internet Explorer') != -1)
			{
				document.getElementById('news').style.top=cY;
				setTimeout ('animateObject(' + cX + ',' + cY + ')', animaeDelay);
			}
			else if(navigator.appName.indexOf('Netscape') != -1)
			{
				document.getElementById('news').style.top=cY2;
				setTimeout ('animateObject(' + cX + ',' + cY + ')', animaeDelay);
			}
			
	
		
		
	}
	else
	{	
		setTimeout ('animateObject(' + initialX + ',' + initialY + ')',animaeDelay);
		
	}
	
}// **********************   End  News Scroller     ************************************************************






var delay = 70;
var initial_position_x=0;
var initial_position_y=-200;

var current_position_x=null;
var current_position_y=null;

var final_position_x=0;
var final_position_y=240;

var object_id=null;

function initialise_scroller(objectID)
{
		
	current_position_x=initial_position_x;
	current_position_y=findTop(objectID);
	
	object_id=objectID;
	
	start_scrolling(current_position_x, current_position_y);
	
}

function start_scrolling(x, y)
{
	current_position_x=x;
	current_position_y=y;
	if(current_position_y != final_position_y)
	{
		if (current_position_y > final_position_y) 
		{ 
			current_position_y = current_position_y -1;;
		}
		else 
		{ 
			current_position_y = current_position_y +1; 
		}
	}
	
	if(current_position_y != final_position_y)
	{
			if(navigator.appName.indexOf('Microsoft Internet Explorer') != -1)
			{
				document.getElementById('news').style.top=current_position_y;
				setTimeout ('start_scrolling(' + current_position_x + ',' + current_position_y + ')', delay);
			}
			else if(navigator.appName.indexOf('Netscape') != -1)
			{
				var px=current_position_y +"px";
				document.getElementById('news').style.top=px;
				setTimeout ('start_scrolling(' + current_position_x + ',' + current_position_y + ')', delay);
				current_position_y = current_position_y +1;
			}
	}
	else
	{
			setTimeout ('start_scrolling(' + initial_position_x + ',' + initial_position_y + ')', animaeDelay);
	}
}










