// JavaScript Document


$(function () {
	$('.subnav').each(function () {
		$(this).parent().eq(0).hoverIntent({
		timeout: 100,
		over: function () {
			var current = $('.subnav:eq(0)', this);
			current.slideDown(100);
		},
		out: function () {
			var current = $('.subnav:eq(0)', this);
			current.fadeOut(200);
		}
	});
});
	
});
/*
$(function () {
	$('.subnav').each(function () {
		$(this).parent().eq(0).hover(function () {
			$('.subnav:eq(0)', this).show();
			}, function () {
			$('.subnav:eq(0)', this).hide();
		});
	});
});*/

function change_color(name,cls)
{
	var tar = document.getElementById(name);
	tar.className = cls;
}

function restore_color(name,cls)
{
	var tar = document.getElementById(name);
	tar.className = cls;
}

function addBookmark(title,url) {
if (window.sidebar) {
window.sidebar.addPanel(title, url,"");
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}

function submitForm()
{
	document.f1.submit();
}

function change_color(name,cls)
{
	var tar = document.getElementById(name);
	tar.className = cls;
}

function restore_color(name,cls)
{
	var tar = document.getElementById(name);
	tar.className = cls;
}


function mailto(email, domain) {
		document.location = "mailto:" + email + '@' + domain ;
}

function mailto_ccclsuo(email, domain) {
		document.location = "mailto:" + email + '@' + domain + '?cc=clsuo' + '@' + domain;
}

