
function openPopUp(popurl, mywidth, myheight){
	var winpops=window.open(popurl,"","width="+mywidth+",height="+myheight+",status,scrollbars,resizable");
}

function SelectMenuItem(){
	var myV = document.getElementById('menuid_' + js_mypageid);
	if (myV!=null) myV.className = "on";
}

jQuery(document).ready(function() {
//start

//news ticker
jQuery('#news').innerfade({
    animationtype: 'fade',
    speed: 500,
    timeout: 4000,
    type: 'sequence',
    containerheight: 'auto'
});

// Link Nudge Logo
jQuery('img.nudge').hover(function() { //mouse in
    jQuery(this).stop().animate({ paddingLeft: '2px' },100); 
}, function() { //mouse out
	jQuery(this).animate({ paddingLeft: 0 }, 50);
});

//Link Nudge BottomArea
jQuery('#ctl00_mainarea_content3 ul li a, #ctl00_mainarea_content4 ul li a ').hover(function() { //mouse in
    jQuery(this).animate({ marginLeft: '4px' },100); 
}, function() { //mouse out
	jQuery(this).animate({ marginLeft: '0px' }, 200);
});

//Link Nudge Sidemenu
jQuery('#ctl00_mainarea_sidemenu ul li a.firstnav ').hover(function() { //mouse in
    jQuery(this).animate({ paddingLeft: '23px' },100); 
}, function() { //mouse out
	jQuery(this).animate({ paddingLeft: '20px' }, 100);
});

//Horizontal nav background image fade	

jQuery('ul#nav li a')
	.css( {backgroundPosition: "0 0"} )
	.mouseover(function(){
		jQuery(this).stop().animate(
			{backgroundPosition:"(0 -39px)"}, 
			{duration:50})
		})
	.mouseout(function(){
		jQuery(this).stop().animate(
			{backgroundPosition:"(0 0)"}, 
			{duration:500})
})
});

