
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'
});

//tabs
$('.mytabcc').tabs();	

//datepicker
//$("#ctl00_mainarea_ctl02_txtTo, #ctl00_mainarea_ctl02_txtFrom, #ctl00_mainarea_ctl02_txtStateFrom, #ctl00_mainarea_ctl02_txtStateTo, #ctl00_mainarea_ctl02_txtDueDate ").datepicker({dateFormat: 'dd-mm-yy'});

//search box
$("input.searchBox").focus(function(){
	    if ( $(this).val() == "Search DATANET.CO.UK")
        $(this).val('');
	});
$("input.searchBox").blur(function(){
	    if ( $(this).val() == "")
	    $(this).val('Search DATANET.CO.UK');
	});	
	
	
	
	//Client Logos at the bottom of the page	
    if ($.browser.msie && $.browser.version < 7) return;
    
    $('#clientLogos li')
        .removeClass('highlight')
        .find('a')
        .append('<span class="hover" />').each(function () {
                var $span = $('> span.hover', this).css('opacity', 0);
                $(this).hover(function () {
                    // on hover
                    $span.stop().fadeTo(100, 1);
                }, function () {
                    // off hover
                    $span.stop().fadeTo(100, 0);
                });
    });
                
	

//end	
});




