
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";
          // myV.innerHTML="fred";
        //alert('ok');

}

$(document).ready(function() {
//start

//news ticker
$('#news').innerfade({
    animationtype: 'fade',
    speed: 500,
    timeout: 4000,
    type: 'sequence',
    containerheight: 'auto'
});

// Link Nudge Logo
$('img.nudge').hover(function() { //mouse in
    $(this).stop().animate({ paddingLeft: '2px' },100); 
}, function() { //mouse out
	$(this).animate({ paddingLeft: 0 }, 50);
});

//Link Nudge BottomArea
$('#ctl00_mainarea_content3 ul li a, #ctl00_mainarea_content4 ul li a ').hover(function() { //mouse in
    $(this).animate({ marginLeft: '4px' },100); 
}, function() { //mouse out
	$(this).animate({ marginLeft: '0px' }, 200);
});

//Link Nudge Sidemenu
$('#ctl00_mainarea_sidemenu ul li a.firstnav ').hover(function() { //mouse in
    $(this).animate({ paddingLeft: '23px' },100); 
}, function() { //mouse out
	$(this).animate({ paddingLeft: '20px' }, 100);
});

//Horizontal nav background image fade	

$('ul#nav li a')
	.css( {backgroundPosition: "0 0"} )
	.mouseover(function(){
		$(this).stop().animate(
			{backgroundPosition:"(0 -39px)"}, 
			{duration:50})
		})
	.mouseout(function(){
		$(this).stop().animate(
			{backgroundPosition:"(0 0)"}, 
			{duration:500})
})
		
	
// form fields	
/*
	$('textarea[type="text"]').addClass("idleField");
	$('textarea[type="text"]').focus(function() {
		$(this).removeClass("idleField").addClass("focusField");
	    if (this.value == this.defaultValue){ 
	    	this.value = '';
		}
		if(this.value != this.defaultValue){
			this.select();
		}
	});
	$('textarea[type="text"]').blur(function() {
		$(this).removeClass("focusField").addClass("idleField");
	    if ($.trim(this.value) == ''){
	    	this.value = (this.defaultValue ? this.defaultValue : '');
		}
	});
	
*/

//end	
});



