$().ready(function() {
	//$(document).pngFix(); //fixes PNG in IE6
	attachRollOverEvent(".roll");//sets rollover states
	$('#modal_notu').jqm({ajax: 'notu/index.php', trigger: 'a.mLink_notu'});//ajax modal call
	$('#modal_som').jqm({ajax: 'som/index.php', trigger: 'a.mLink_som'});//ajax modal call
	$('#modal_somLogin').jqm({ajax: 'som/login.php', trigger: 'a.mLink_somLogin'});//ajax modal call
	$('#modal_podcast').jqm({ajax: 'podcast.php', trigger: 'a.mLink_podcast'});//ajax modal call
});


//allows rollover on images
attachRollOverEvent = function(imageId){
	$(imageId).mouseover( function(){ $(this).attr("src", $(this).attr("src").split('_0').join('_1')) } );	
	$(imageId).mouseout( function(){ $(this).attr("src", $(this).attr("src").split('_1').join('_0')) } );
}
