function ScrollUpDown(objName, n)
{	
	t = n;
	name = objName;
	
	var div = window.document.getElementById(objName);
	div.scrollTop = div.scrollTop + t;
	
	if(t==0) return;
	setTimeout("ScrollUpDown(name, t)",80);
}

function ScrollLeftRight(objName, n)
{
	t = n;
	name = objName;
	
	var div = window.document.getElementById(objName);
	div.scrollLeft = div.scrollLeft + t;
	
	if(t==0) return;
	setTimeout("ScrollLeftRight(name, t)",80);
}


function ScrollUp(div)
{
	div.scrollTop = div.scrollTop - 50;
}

function ScrollDown(div)
{
	div.scrollTop = div.scrollTop + 50;
}

//for press release and annoucement
function ShowYearList(parentName, divName)
{
	var left,top;
	var obj = window.document.getElementById(parentName);
	var div = window.document.getElementById(divName);
	
	div.style.visibility="visible";
	left = parseInt(obj.offsetLeft);
	top = parseInt(obj.offsetTop) + parseInt(obj.offsetHeight);
	
	
	while(obj = obj.offsetParent) 
	{	
		var tagName = obj.tagName.toLowerCase();
		
		left += parseInt(obj.offsetLeft);
		top += 	parseInt(obj.offsetTop);
	}
	
	
	div.style.left = left  - 13;
	div.style.top = top;
	
}

function WriteFlash(src, width, height)
{
	var strFlash;
	strFlash = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + width + '" height="' + height + '">';
	strFlash +=	'<param name="movie" value="' + src + '">';
	strFlash += '<param name="quality" value="high">';
	strFlash += '<param name="scale" value="exactfit">';
	strFlash += '<param name="wmode" value="transparent">';
	strFlash += '<embed src="' + src + '" width="' + width + '" height="' + height + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" scale="exactfit"></embed>';
	strFlash += '</object>';
	
	window.document.write(strFlash);
}