	$(function() {  
		/* NAV DROP DOWN */			   
		$("#nav > ul > li").hover(function() {
			$(this).find('ul:first').show();
			$(this).find('div a').css('background-position', '0 -80px');
		}, function() {
			$(this).find('ul:first').hide();
			$(this).find('div a').css('background-position', '0 0');
			$(this).find('div a#nav_on').css('background-position', '0 -40px');
		});		

		/* SEARCH TEXT REPLACE */	
		$('#search input[type="text"]').focus(function() {  
			if (this.value == this.defaultValue) {  
				this.value = '';  
			}
		});

		$("#searchform").validate();	
		$("#scheduleForm").validate();
		$("#downloadForm").validate();
		$("#whitepaperForm").validate();

		$('#selectDate').datepicker({dateFormat: 'yy-mm-dd'});


		/* TAB BOXES */	
		$('#tabBox #tabs li').addClass('tabOff');
		$('#tabBox #tabs li:eq(0)').removeClass('tabOff');
		$('#tabBox #tabs li:eq(0)').addClass('tabOn');
		$('#tabBox div.tabBody:eq(0)').show();
		$('#tabBox #tabs li').bind('click', function() {
			$('#tabBox #tabs li').removeClass('tabOn');
			$('#tabBox #tabs li').addClass('tabOff');
			$(this).removeClass('tabOff');
			$(this).addClass('tabOn');
			var position = $(this).index();
			$('#tabBox div.tabBody').hide();
			$('#tabBox div.tabBody:eq(' + position + ')').show();
		});

		/* FANCY BOX */	
		$("a.lightbox").fancybox({ 'titlePosition'  : 'inside'});
	});
	
    Cufon.replace('h1', { fontFamily: 'Gotham' });
    Cufon.replace('.cufonBook, h2, h3, h4', { hover: 'true', fontFamily: 'Gotham Book' });	
    Cufon.replace('.cufonBold', { hover: 'true', fontFamily: 'Gotham' });