$(document).ready(function(){
/*	$("li:last-child").addClass("lastChild");
	$("div:last-child").addClass("lastChild");
	
	// if IE
	if (jQuery.browser.msie) {
		$(".subnav a").before('[').after(']');
	}


	// Fancy image rollover effect!
	$("a img").hover(function () {
	
		$(this).fadeTo("fast", .4);
		
	});	
	$("a img").mouseout(function () {
	
		$(this).fadeTo("fast", 1);
		
	});

	// Fancy flash thumbnail rollover effect!
	$(".flash-thumbnail a").hover(function () {
	
		$(this).parent().fadeTo("fast", .4);
		
	});	
	$(".flash-thumbnail a").mouseout(function () {
	
		$(this).parent().fadeTo("fast", 1);
		
	});


*/
	
});






function fixm( inp ) {
	return inp.replace( "#" , "@" ).replace( "," , "." );
}
function listm( inp, outp ) {
	if (outp) {
		document.write( "<a href='" + "m4ilto:".replace( "4" , "a" ) + fixm( inp ) + "'>" + outp + "</a>" );
	} else {
		document.write( "<a href='" + "m4ilto:".replace( "4" , "a" ) + fixm( inp ) + "'>" + fixm( inp ) + "</a>" );
	}
}

/* Show/Hide */
function show(element) {
	document.getElementById(element).style.display = "none";
	document.getElementById(element+"-hidden").style.display = "";
}

function hide(element) {
	document.getElementById(element).style.display = "";
	document.getElementById(element+"-hidden").style.display = "none";
}
function toggle(element) {
	if (document.getElementById(element).style.display == "none") {
		document.getElementById(element).style.display = "";
	} else {
		document.getElementById(element).style.display = "none";
	}
}

function hideOnLoad(element) {
	document.getElementById(element).style.display = "none";
}
