
	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");
    }
}

