/* jQuery.noConflict(); */
  jQuery(document).ready(function($){
	// Place Functions Below this line
	
	$('#blogFeedContainer').load('/blog/?latest=1', function()
	{
		$('#blogFeed').innerfade({
			speed: 1000,
			timeout: 10000,
			type: 'sequence',
			containerheight: '160px'
		});
	});


	// External Links
	$('a[rel=external]').click(function(){
		this.target = "_blank";
	});

	// DropDown Menu
	$(" #mainNav ul ").css({display: "none"}); // Opera Fix
	$(" #mainNav li").hover(function(){
		$(this).find('ul:first').css({visibility: "visible",display: "none"}).slideDown(200);
	},function(){
		$(this).find('ul:first').css({visibility: "hidden"});
	});

	$(" #marketSectors ul ").css({display: "none"}); // Opera Fix
	$(" #marketSectors li").hover(function(){
		$(this).find('ul:first').css({visibility: "visible",display: "none"}).slideDown(200);
	},function(){
		$(this).find('ul:first').css({visibility: "hidden"});
	});

	
	// Form Validtion
	$('#contactForm').validate();
	$('#mailingList').validate();

	// innerFade
		$('ul.innerfade').innerfade({
			speed: 1000,
			timeout: 10000,
			type: 'sequence',
			containerheight: '160px'
		});
		$('ul.innerfadeRandom').innerfade({
			speed: 500,
			timeout: 5000,
			type: 'random',
			containerheight: '160px'
		});
	// Roll Over lists
	
	$('ul.rollover li').hover(function(event)
	{
		$(this).addClass('over');
	}, 
	function(event)
	{
		$(this).removeClass('over');
	});

	$('#cmsChooser li').click(function(event)
	{
		var href = $(this).find('a:first').attr('href');
		if (!href) { return ;}
		location.href = href;
	});


// Place Functions Above this line
	}
);

