$(document).ready(function(){

//ratings


// image animation
	$(".content-component a img").mouseover(function(){
		$(this).css({opacity:".1"}).stop().animate({opacity:"1.0"},500); 
	});
	
// hide notifications
	$('.notification, .hidden').click(
		function() {
			$(this).parent().fadeOut('slow');
			return false;
});

// hide competition entry form 
$('#submit-entry').css("display","none");

//logo animation
 var flashvars = {};
 flashvars.link = "http://www.bringitonni.info/";
 var params = {};
 params.wmode = "transparent";
 var attributes = {};
 attributes.id = "an-header";
 swfobject.embedSWF("http://www.bringitonni.info/images/site-design/BringIT_animated.swf", "an-header", "680", "150", "9.0.0", false, flashvars, params, attributes);
 
// big targets
  $("ul.video-entries p a").bigTarget();
  
// superfish
 $("ul.sf-menu").superfish();
 
// text input hint 
$('#keywords , #secondary-keywords').focus(function() {
  // See if the input field is the default
  if ($(this).val() == $(this).attr('title')) {
    $(this).val('');
  }
})
.blur(function() {
  if ($(this).val() == '') {
    $(this).val($(this).attr('title'));
  }
});

//style-switcher
$('#style-switcher').addClass("show-me");

//new window
$('a.new-window').click(function(){
 window.open(this.href);
 return false;
});

	
// favourites	
$('a.favorites-trigger') .click (function() {
$.get(this.href, function(data) {
$('div.favoritesul > p') 
.html(data);
});
return false;
});	

});