function opWin(src,w,h,sc){
	var feat = 'width='+w+',height='+h;
	if(sc == 'y') feat+= ',scrollbars=yes';
	nWinn = window.open(src,'pwin',feat);
	nWinn.focus();
}

function getInternetExplorerVersion()
// Returns the version of Internet Explorer or a -1
// (indicating the use of another browser).
{
  var rv = -1; // Return value assumes failure.
  if (navigator.appName == 'Microsoft Internet Explorer')
  {
    var ua = navigator.userAgent;
    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
    if (re.exec(ua) != null)
      rv = parseFloat( RegExp.$1 );
  }
  return rv;
}

function fixMargin(){
	var ver = getInternetExplorerVersion();
	if(ver < 7) document.getElementById('lcol').style.marginLeft = '5px';
}

var animateSpeed = 1.5;
var fY = null;
var cY = null;
var dY = null;
var stepY = null;
var loop,timer;

function initAnimate(objectID,dir){
	object = document.getElementById(objectID);
	fY = object.offsetHeight;
	cY = object.offsetTop;
	dY = -(fY-184);

	stepY = animateSpeed;

	loop = true;
	if(dir == 'up'){
		animateObjectup();
	}else{
		animateObjectdown();
	}
}

function animateObjectup(){
	if(cY > dY){
		object.style.top = Math.round(cY)+'px';
		if(cY>dY) cY = cY - stepY;
		if(loop) timer = setTimeout('animateObjectup()',0);
	}else{
		loop=false;
		clearTimeout(timer);
	}
	return;
}
function animateObjectdown(){
	if(cY < 0){
		object.style.top = Math.round(cY)+'px';
		if(cY<0) cY = cY + stepY;
		if(loop) timer = setTimeout('animateObjectdown()',0);
	}else{
		loop=false;
		clearTimeout(timer);
	}
	return;
}
function stopScroll(){
	loop=false;
	if(timer) clearTimeout(timer);
}