var $j = jQuery.noConflict();


/* Start scroll & rollover */

$j(function(){
	// scroll
	$j("body").ScrollToAnchors(500, 'easeout');
	
	// rollover
	$j('.imgover').each(function(){
		this.originalSrc = $j(this).attr('src');
		this.rolloverSrc = this.originalSrc.replace(/(\.gif|\.jpg|\.png)/, "_o$1");
	}).hover(function(){
		$j(this).attr('src',this.rolloverSrc);
	},function(){
		$j(this).attr('src',this.originalSrc);
	});
});

/* End scroll & rollover */


/* Start pulldownMenu */

$(document).ready(function(){
	$("#nav-one li").hover(
		function(){ $("ul", this).fadeIn("fast"); }, 
		function() { } 
	);
if (document.all) {
	$("#nav-one li").hoverClass ("sfHover");
	}
});
  
$.fn.hoverClass = function(c) {
	return this.each(function(){
		$(this).hover( 
			function() { $(this).addClass(c);  },
			function() { $(this).removeClass(c); }
		);
	});
};	

/* End pulldownMenu */

/* top flash */

$(document).ready(function(){
		if ($('#mainVisual').size()) {
			$('#mainVisual').flash(
					{ src: 'images/visual.swf',
						width: 912,
						height: 170 },
					{ version: 8 }
			);
		}
});

