function change(id, newClass) {
	identity=document.getElementById(id);
	if (identity != null)
		identity.className=newClass;
}
function changeO(src, newClass) {
	//identity=document.getElementById(id);
	if (src != null)
		src.className=newClass;
}

function win_popup(file, name, attribs) {
	window.open (file, name, attribs); 
}

var WinNum=0;
function WindowOpen(Url,x,y) {
	var String;
	String =  "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0,copyhistory=0,";
	String += ",width=";
	String += x;
	String += ",height=";
	String += y;
	WinPic=window.open(Url,WinNum++,String);
}

function hide_sub(name, cell, i) {
	var b = document.getElementById(name);
	if (b != null) {
		b.style.display = 'none';	
	}
}

function show_sub(name, cell, i) {
	var b = document.getElementById(name);
	if (b != null) {
		b.style.display = '';	
	}
}

$(function(){
	$('#navigation li').hover(
		function(){ $(this).find('ul.flyout:first').show(); },
		function(){ $(this).find('ul.flyout:first').hide(); }
	);
});