// JavaScript Document

// ---- original functions ----------------------------------------
var name = "div#floatArea";
var speed = 7;
var menuYloc = null;

//$(document).ready(function(){   
//	menuYloc = parseInt($(name).css("top").substring(0,$(name).css("top").indexOf("px")))   
//	$(window).scroll(function () {   
//		offset = menuYloc+$(document).scrollTop()+"px";   
//		$(name).animate({top:offset},{duration:speed*100, queue:false});   
//	});   
//});   


function openWin(url) {
	window.open(url);
	return false;
}

function openNewWin(url,name,width,height){
	var n;
	var w;
	var h;
	
	if (width==undefined) {
		n = "subwin";
	} else {
		n = name;
	}
	
	if (width==undefined) {
		w = "400px";
	} else {
		w = width;
	}
	
	if (height==undefined) {
		h = "400px";
	} else {
		h = height;
	}
	
	window.open(url, n, 'width='+ w+ ',height='+ h+ ',toolbar=no,location=no,status=no,scrollbars=no');
	
	return false;
}

function dispMenu(target) {
	if (typeof(target)==="string"){
		document.getElementById(target).className = 'dispMenu';	
	} else {
		target.className = "dispMenu";
	}
}

function hideMenu(target) {
	if (typeof(target)==="string"){
		document.getElementById(target).className = 'hideMenu';	
	} else {
		target.className = "hideMenu";
	}
}


