jQuery(document).ready(function($) {


	// INITIALIZE GALLERY SUPPORT
	/*$(".gallery a").prettyPhoto({
		opacity: 0.75, 
		theme: 'dark_rounded', 
		allowresize: false,  
	});*/
	
	$(".gallery a").attr('rel', 'gallery');
	
	$("a[rel^='gallery']").prettyPhoto({
				animationSpeed: 'normal', 
				opacity: 0.75, 
				showTitle: false, 
				allowresize: true, 
				counter_separator_label: '/', 
				theme: 'dark_rounded', 
				hideflash: false, 
				modal: false, 
				changepicturecallback: function(){}, 
				callback: function(){} 
			});
	
	/*$("#main-menu a").hover(function() {
		$(this).animate({
			'backgroundPosition':'left top', 
		});
		$(this).parent().animate({
			'backgroundPosition':'bottom right', 
		});
	}, 1000);*/

	$(".main-menu-item").blend({});
	$(".main-menu-item").each(function() {
		rel = $(this).attr('rel');
		$(this).blend({target:'.main-menu-item a[rel=' + rel + ']'})
	});

	$(".main-menu-item a").hover(function() {
		rel = $(this).attr('rel');
		$('.dropdown[rel=' + rel + ']').slideDown(500);
	});
	
	$(".main-menu-item").hover(function() {
	}, function() {
		rel = $(this).attr('rel');
		$('.dropdown[rel=' + rel + ']').slideUp(500);
	});
	
	$('.dropdown').hover(function() {
	
	}, function() {
	
	});
		
	/*$(".gallery a").click(function() {
		alert('ahh');
	});*/
	
	// DROPDOWN MENU	

});
