var navHider=function(){var showNav=function(){clearTimeout(navHideTimer);$('#navigation-wrapper').slideDown("slow");};var hideNav=function(){clearTimeout(navHideTimer);navHideTimer=setTimeout(navHider,1000);};$('#header').mouseenter(showNav);$('#header a').focus(showNav);$('#header a').blur(hideNav);$('#content').mouseover(hideNav);var navHider=function(){$('#navigation-wrapper').slideUp("slow",function(){});}
$(window).scroll(function(){clearTimeout(navHideTimer);$('#navigation-wrapper').slideUp(100);});var navHideTimer=0;};


var revealContent=function(){$('#content').each(function(){$contentEl=$(this);$('>div',$contentEl).each(function(){if($(this).css("float")=="right")return true;$('>*',this).not('.dropdown-menu').each(function(){var $blockEl=$(this);var nodeSet=[this];if((!$.browser.msie||$.browser.version>7)&&this.tagName=='P')nodeSet=$('>*',this);$(nodeSet).each(function(){var $subEl=$(this);$subEl.css('visibility','hidden');$contentEl.queue(function(){$subEl.hide().css('visibility','visible').fadeIn(200,function(){$contentEl.dequeue();$subEl.css('visibility','visible');if($.browser.msie)this.style.removeAttribute("filter");});});});});});$contentEl.queue(function(){initVideo();});});}

$(document).ready(function(){
						   
			revealContent();
			// navHider();
																																																																																																																																																																																																																																																																																																																																																																																												
			// Effect of event Tabs
			$("#tabs").tabs({ fx: { opacity: 'toggle' } });
			//Effect of colorbox
			$("a[rel='single']").colorbox({width:"80%", rel:"nofollow"});
			$("a[rel='group']").colorbox({transition:"fade"});
			$(".colorbox_html").colorbox({width:"80%", height:"80%", iframe:true});
			
			
			
			$("a").hover(function(){
$(this).fadeTo(1500,1);
}, function() {
$(this).fadeTo(1500,1, function () {
$(this).stop({gotoEnd:true});
});
});
			
			
			});



	
	
		



