// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

$(document).ready(function() {
	
	$(".dropdown>div").mouseover(function(e) {
		$(this).find("ul").show();
	})
	
	$(".dropdown>div").mouseout(function(e) {
		$(this).find("ul").hide();
	})
	
	
	
})

$(document).ready(function(){
	//Examples of how to assign the ColorBox event to elements
	$("a[rel='lightbox']").colorbox();
	$("a[rel='lightbox-fade']").colorbox({transition:"fade"});
	$("a[rel='slideshow']").colorbox({slideshow:true});
	$(".single").colorbox({}, function(){
		alert('Howdy, this is an example callback.');
	});
	$(".colorbox").colorbox();
	$(".youtube").colorbox({iframe:true, width:650, height:550});
	$(".iframe").colorbox({width:"80%", height:"80%", iframe:true});
	$(".inline").colorbox({width:"50%", inline:true, href:"#inline_example1"});
	
	//Example of preserving a JavaScript event for inline calls.
	$("#click").click(function(){ 
		$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
		return false;
	});
});