/* <![CDATA[ */
$(document).ready(function(){
//	Cufon
	Cufon.replace('h1, h2, h3, h4', {
	hover: {
		textShadow: '2px 2px red',
		color: '-linear-gradient(black, white)'
	}
	});
//	Hover Twitter icons to display the lastest tweet
	twitter_tooltip("a.tip","tooltip");
						 
//	Post Boxes Hover Behaviour
	jQuery('#content .postBoxInner').hover(function(){ jQuery(this).toggleClass('postBoxInnerHover');}); 
	jQuery('.postBox a.readMore').hover(function(){ jQuery(this).prev('.postBoxInner').toggleClass('postBoxInnerHover');}); 

//	Dropdown Menu
	if(!jQuery.browser.msie){jQuery("ul.menu").css({opacity:"0.95"}); }// IE  - 2nd level Fix
	jQuery(".menu > li > ul").css({display: "none"}); // Opera Fix
	jQuery("ul.sub-menu").parent().append("<div>&nbsp;</div>"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav
	jQuery("ul.menu li a").hover(function() { //When trigger is clicked...
		//Following events are applied to the subnav itself (moving subnav up and down)
		jQuery(this).parent().find("ul.sub-menu").slideDown('fast').show(400); //Drop down the subnav on hover
		jQuery(this).parent().hover(function() {
		}, function(){	
			jQuery(this).parent().find("ul.sub-menu").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		});
		//Following events are applied to the trigger (Hover events for the trigger)
		}).hover(function() { 	jQuery(this).addClass("subhover"); //On hover over, add class "subhover"
		}, function(){	//On Hover Out
			jQuery(this).removeClass("subhover"); //On hover out, remove class "subhover"
	});

//Lazy.load
	jQuery(".content img").lazyload({
		placeholder : "http://www.narga.net/images/grey.gif",
		effect      : "fadeIn",
	});
//	ColorBox
	jQuery("a#lightbox").colorbox({transition:'elastic', speed:350});
	jQuery("a#lightbox-slideshow").colorbox({slideshow:true});
	jQuery("a#lightbox-iframe").colorbox({iframe:true, innerWidth:425, innerHeight:344});
	jQuery("a#lightbox-inline").colorbox({inline:true, href:"#inline-content"});
	//Example of preserving a JavaScript event for inline calls.
	jQuery("#click").click(function(){ 
		jQuery('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
		return false;
	});
});
/* ]]> */


