  var $j = jQuery.noConflict();
$j(document).ready(function() {
$j(".scrollable").scrollable(); 
$j("#scheme-markers a[title]").tooltip({ position: "bottom center", opacity: 0.9});  
 $j('.slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
	 $j('#expobanner').cycle({
		fx: 'turnDown',
		cleartypeNoBg: true
	});	

$j('.subSection').click(function() { 

                    $j(this).children('ul').slideToggle("slow"); 
                                
        });
        
$j( ".inner-content-accordion" ).accordion({active: false, clearStyle: true, autoHeight: false });
$j( ".content-accordion" ).accordion({ active: false,clearStyle: true, autoHeight: false });

$j(".rollover").hover(
	function(){
		if($j(this).attr("src").indexOf("-over") == -1) {
			var newSrc = $j(this).attr("src").replace(".png","-over.png#hover");
			$j(this).attr("src",newSrc);
		}
	},
	function(){
		if($j(this).attr("src").indexOf("-over.png#hover") != -1) {
			var oldSrc = $j(this).attr("src").replace("-over.png#hover",".png");
			$j(this).attr("src",oldSrc);
		}
	}
);

$j("#slider").easySlider({
		auto: true,
		continuous: true 
	});

//	$j("a[rel]").overlay({
//	target: '#overlay',
  //  mask: '#CCC',
		//onBeforeLoad: function() {

			// grab wrapper element inside content
			//var wrap = this.getOverlay().find(".contentWrap");

			// load the page specified in the trigger
			//wrap.load(this.getTrigger().attr("href"));
		//}

	//});
 
//$j("h3").each(function() {
//var newText = $j(this).text().split(" ").join("</span> <span>");
//newText = "<span>" + newText + "</span>";
//$j(this).html(newText).find('span').end().find(":contains('1st')").replaceWith('1<sup>st</sup>');
//});
   
});
