

			$(document).ready(function(){

			$("a[rel=modal]").fancybox({
				'width'		: 720,
				'height'	: 530,
				'padding'	: '35',
			        'autoScale'     : false,
			        'transitionIn'	: 'none',
				'transitionOut'	: 'none',
				'type'		: 'iframe',
				'overlayOpacity': '0.7',
				'overlayColor'  : '#000000',
				'showNavArrows' : false
			});

			$("a[rel=coursemodal]").fancybox({
				'width'		: 440,
				'height'	: 340,
				'padding'	: '25',
			        'autoScale'     : false,
			        'transitionIn'	: 'none',
				'transitionOut'	: 'none',
				'type'		: 'iframe',
				'overlayOpacity': '0.7',
				'overlayColor'  : '#000000',
				'showNavArrows' : false
			});

			$("a[rel=lecturemodal]").fancybox({
				'width'		: 450,
				'height'	: 360,
				'padding'	: '25',
			        'autoScale'     : false,
			        'transitionIn'	: 'none',
				'transitionOut'	: 'none',
				'type'		: 'iframe',
				'overlayOpacity': '0.7',
				'overlayColor'  : '#000000',
				'showNavArrows' : false
			});


			$("a[rel=contentmodal]").fancybox({
				'width'		: 580,
				'height'	: 460,
				'padding'	: '25',
			        'autoScale'     : false,
			        'transitionIn'	: 'none',
				'transitionOut'	: 'none',
				'type'		: 'iframe',
				'overlayOpacity': '0.7',
				'overlayColor'  : '#000000',
				'showNavArrows' : false
			});


			$("a[rel=pressmodal]").fancybox({
				'width'		: 660,
				'height'	: 520,
				'padding'	: '25',
			        'autoScale'     : false,
			        'transitionIn'	: 'none',
				'transitionOut'	: 'none',
				'type'		: 'iframe',
				'overlayOpacity': '0.7',
				'overlayColor'  : '#000000',
				'showNavArrows' : false
			});


			});



	function myPopwin(mypage, myname, w, h, scroll) {

	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }

	}


	function checkUncheckAll(theElement) {
     		var theForm = theElement.form, z = 0;
	 		for(z=0; z<theForm.length;z++){
     				if(theForm[z].type == 'checkbox' && theForm[z].name != 'checkall'){
	  			theForm[z].checked = theElement.checked;
	 		}
    		}
    	}


	function jemail(user, domain, suffix) {

	var user;	
	var domain;
	var suffix;

	document.write('<a style="color: #6a6a6b; font-weight: normal;" href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + user + '@' + domain + '.' + suffix + '</a>');

	}




var newsitems;
var curritem=0;
var iPause=0;

$(document).ready(function(){
    var tickerSelector = "ul#ticker li";
    newsitems = $(tickerSelector).hide().hover(
        function(){
            $(this).addClass("hovered");
            iPause=1;
        },
        function(){
            $(this).removeClass("hovered");
            iPause=0;
        }
    ).filter(":eq(0)").show().add(tickerSelector).size();
    setInterval(ticknews,15000); //time in milliseconds
});


function ticknews() {
  if (iPause==0){
    $("#ticker li:eq("+curritem+")").fadeOut("slow",function(){$(this).hide();});
    curritem = ++curritem%newsitems;
    $("#ticker li:eq("+curritem+")").fadeIn("slow");
    }
}

