	Cufon.replace('h1,h2,.ftrLiHd, .rdlh, ul#topnav li.heading, ul#leftCol a.cu');
	Cufon.replace('.slide-txt h2, ul#topnav a.cu', {textShadow: '#0e2e47 0px -1px' } );

	 
	 $(document).ready(function(){
				
	   //table alt hover orange
	   $(".stripeMe tr, .stripeMeMast tr, .stripeMeBal tr").mouseover(function(){$(this).addClass("over");}).mouseout(function(){$(this).removeClass("over");});
	   
	   //add alternate class on normal tables
	   $(".stripeMe tr:even, .stripeMeBal tr:even").addClass("alt");
	   
	   // add alt class to mast tables
	    $(".stripeMeMast tr:nth-child(4n)").add(".stripeMeMast tr:nth-child(4n-1)").addClass("alt");
		$(".stripeMeMast tr:lt(2)").addClass("mastHeads");
		
//fancybox 
		$("a[rel=example_group], a[rel=example_group1]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'outside',
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
		});
		
		//fancy box for youtube videos	
		$("#vid").click(function() {
		$.fancybox({
				'padding'		: 0,
				'autoScale'		: false,
				'transitionIn'	: 'none',
				'transitionOut'	: 'none',
				'width'			: 680,
				'height'		: 495,
				'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
				'type'			: 'swf',
				'swf'			: {
					 'wmode'		: 'transparent',
					'allowfullscreen'	: 'true'
				}
			});
	
		return false;
		});

				
	 //search box
		$("input.search").focus(function(){
				if ( $(this).val() == "Search...")
				$(this).val('');
			});
		$("input.search").blur(function(){
				if ( $(this).val() == "")
				$(this).val('Search...');
			});	

		
		// end doc ready
	 });
	 

