if (!Modernizr.input.placeholder){
		document.getElementById("thesearchbox").value = "Search";
		//setInputHint(document.getElementById('thesearchbox'),'Search');
}

	(function($){

		//cache nav
		var nav = $("#nav");

		//add indicators and hovers to submenu parents
		nav.find("li").each(function() {
			if ($(this).find("ul").length > 0) {

				//show subnav on hover
				$(this).mouseenter(function() {
					$(this).find("ul.drop").stop(true, true).slideDown();
				});

				//hide submenus on exit
				$(this).mouseleave(function() {
					$(this).find("ul.drop").stop(true, true).slideUp();
				});
			}
		});
	})(jQuery);
	
	$(document).ready( function() {
		$('.toggleL_container').hide();
		$('.activeL_container').show();
		$('.triggerL').click( function() {
			var trig = $(this);
			if ( trig.hasClass('triggerL_active') ) {
				
			} else {
				$('.triggerL_active').next('.toggleL_container').fadeToggle('fast');
				$('.triggerL_active').removeClass('triggerL_active');
				trig.next('.toggleL_container').delay(150).fadeToggle('slow');
				trig.addClass('triggerL_active');
			};
		return false;
		});
	});
		
	$(document).ready( function() {
		$('.toggleM_container').hide();
		$('.activeM_container').show();
		$('.triggerM').click( function() {
			var trig = $(this);
			if ( trig.hasClass('triggerM_active') ) {
				
			} else {
				$('.triggerM_active').next('.toggleM_container').fadeToggle('fast');
				$('.triggerM_active').removeClass('triggerM_active');
				trig.next('.toggleM_container').delay(150).fadeToggle('slow');
				trig.addClass('triggerM_active');
			};
		return false;
		});
	});
	
	$(document).ready( function() {
		$('.toggleR_container').hide();
		$('.activeR_container').show();
		$('.triggerR').click( function() {
			var trig = $(this);
			if ( trig.hasClass('triggerR_active') ) {
				
			} else {
				$('.triggerR_active').next('.toggleR_container').fadeToggle('fast');
				$('.triggerR_active').removeClass('triggerR_active');
				trig.next('.toggleR_container').delay(150).fadeToggle('slow');
				trig.addClass('triggerR_active');
			};
		return false;
		});
	});
	
	$(window).load(function() {
        $('#cubes').nivoSlider({
        	effect: 'boxRainGrow', slices: 10, boxCols: 9, boxRows: 3, animSpeed: 1000, pauseTime: 8000, controlNav: true, directionNav: false
        });
    });

	jQuery(document).ready(function(){jQuery(".rzcolorbox").colorbox({current:"{current} / {total}",opacity:"0.80",transition:"fade",speed:350,slideshowSpeed:2500,previous:"previous",next:"next",close:"close"});});
	
	jQuery(document).ready(function(){jQuery(".colorboxvideo").colorbox({iframe:true,innerWidth:930,innerHeight:607,scrolling:false, opacity:"0.80"});});
	
	jQuery(document).ready(function(){jQuery(".colorboxhigh").colorbox({iframe:true,innerWidth:930,innerHeight:762,scrolling:false, opacity:"0.80"});});
	
	jQuery(document).ready(function(){jQuery(".phoenix").colorbox({iframe:true,innerWidth:600,innerHeight:550,scrolling:false, opacity:"0.80"});});
	
	jQuery(document).ready(function(){jQuery(".cchc").colorbox({iframe:true,innerWidth:840,innerHeight:460,scrolling:false, opacity:"0.80"});});



