    var $j = jQuery.noConflict();
    $j(function () {
        if ($j.browser.msie && $j.browser.version < 7) return;
        
        $j('#header_menu li')
            .removeClass('highlight')
            .find('a')
            .append('<span class="hover" />').each(function () {
                    var $span = $j('> span.hover', this).css('opacity', 0);
                    $j(this).hover(function () {
                        // on hover
                        $span.stop().fadeTo(250, 1);
                    }, function () {
                        // off hover
                        $span.stop().fadeTo(1500, 0);
                    });
                });
                
    });

    $j(function () {
        if ($j.browser.msie && $j.browser.version < 7) return;
        
        $j('#menu2 li')
            .removeClass('highlight')
            .find('a')
            .append('<span class="hover" />').each(function () {
                    var $span = $j('> span.hover', this).css('opacity', 0);
                    $j(this).hover(function () {
                        // on hover
                        $span.stop().fadeTo(250, 1);
                    }, function () {
                        // off hover
                        $span.stop().fadeTo(750, 0);
                    });
                });
                
    });
    
    
    $j(function () {
        if ($j.browser.msie && $j.browser.version < 7) return;
        
        $j('#menu3 li')
            .removeClass('highlight')
            .find('a')
            .append('<span class="hover" />').each(function () {
                    var $span = $j('> span.hover', this).css('opacity', 0);
                    $j(this).hover(function () {
                        // on hover
                        $span.stop().fadeTo(250, 1);
                    }, function () {
                        // off hover
                        $span.stop().fadeTo(750, 0);
                    });
                });
                
    });
    
    $j(document).ready(function(){

	$j(".main_menu a").hover(function() {
		$j(this).stop().next("em").animate({opacity: "show", top: "335"}, "500");
	}, function() {
		$j(this).stop().next("em").animate({opacity: "hide", top: "335"}, "150");
	});


});

/* TOOLTIP */
$j(document).ready(function() {
	$j('.toolTip').hover(
		function() {
		this.tip = this.title;
		$j(this).append(
			'<div class="toolTipWrapper">'
				+'<div class="toolTipTop"></div>'
				+'<div class="toolTipMid">'
					+this.tip
				+'</div>'
				+'<div class="toolTipBtm"></div>'
			+'</div>'
		);
		this.title = "";
		this.width = $j(this).width();
		$j(this).find('.toolTipWrapper').css({left:this.width-22})
		$j('.toolTipWrapper').fadeIn(300);
	},
	function() {
		$j('.toolTipWrapper').fadeOut(100);
		$j(this).children().remove();
			this.title = this.tip;
		}
	);
});

$j(document).ready(function() {
	$j('.devTip').hover(
		function() {
		this.tip = this.title;
		$j(this).append(
			'<div class="devTipWrapper">'
				+'<div class="devTipTop"></div>'
				+'<div class="devTipMid">'
					+this.tip
				+'</div>'
				+'<div class="devTipBtm"></div>'
			+'</div>'
		);
		this.title = "";
		this.width = $j(this).width();
		$j(this).find('.devTipWrapper').css({left:this.width-110})
		$j('.devTipWrapper').fadeIn(300);
	},
	function() {
		$j('.devTipWrapper').fadeOut(100);
		$j(this).children().remove();
			this.title = this.tip;
		}
	);
});

//		$j(function()
//			{
//				// this initialises the demo scollpanes on the page.
//				$j('#pane1').jScrollPane({showArrows:true, scrollbarWidth: 17});
//				$j('#pane2').jScrollPane({showArrows:true, scrollbarWidth: 15, arrowSize: 16});
//				$j('#clinicians_pane').jScrollPane({showArrows:true, scrollbarWidth: 15, arrowSize: 16});
//				$j('#pane5').jScrollPane({showArrows:true, scrollbarWidth: 15, arrowSize: 16});
//				$j('#pane6').jScrollPane({showArrows:true, scrollbarWidth: 15, arrowSize: 16});
//				$j('#pane3').jScrollPane();
//+				$j('#pane4').jScrollPane({scrollbarOnLeft:true});
//			});
//
//	
//		$j(function() {		
//			$j("button[rel]").overlay();			
//		})


//var api = $j("#scroll").scrollable({
//	items: '#tools',
//	size: 1,
//	clickable: false
//}).navigator({api: true});
//api.onStart(function(e, i) {
//	if (i) {
//		$j("#intro").fadeOut("slow");
//	} else {
//		$j("#intro").fadeIn(1000);
//	}
//	$j("#t0").toggleClass("active", i == 0);
//});
//$j("#t0").click(function() {
//	$j("#scroll").scrollable().begin();
// 
//});