/* Author: 

*/

$(document).ready(function(){
													 
// Drop-menu											 
$('.menu-drop ul').hide();
$('.menu-drop').hover(
		function(){
			if(!$(this).hasClass('arrow')){
				$(this).addClass('arrow');
				$('.menu-drop ul').stop(true, true).slideDown('slow');
			}
		},
		function(){
			$('.menu-drop ul').slideUp('slow');
				$(this).stop(true, true).removeClass('arrow');
		}
	);

$('#more-content').hide();
$("a.read").click(
		function() {
			$(this).addClass('arr');
			$('#more-content').slideDown('slow');
		});

$("a.read-close").click(
		function() {
			$('a.read').removeClass('arr');
			$('#more-content').slideUp('slow');
		});

//Larger thumbnail preview 

$("ul.thumb li").hover(function() {
	$(this).css({'z-index' : '10'});
	$(this).find('img').addClass("hover").stop()
		.animate({
			//marginTop: '-110px', 
			//marginLeft: '-110px', 
			marginTop: '-10px',
            marginLeft: '-10px',
			//top: '50%', 
			//left: '50%', 
			width: '221px', 
			height: '225px'
		}, 200);
	
	} , function() {
	$(this).css({'z-index' : '0'});
	$(this).find('img').removeClass("hover").stop()
		.animate({
			marginTop: '0', 
			marginLeft: '0',
			//top: '0', 
			//left: '0', 
			width: '192px', 
			height: '197px'
		}, 400);
});

//Swap Image on Click
//	$("ul.thumb li a").click(function() {
//		
//		var mainImage = $(this).attr("href"); //Find Image Name
//		$("#main_view img").attr({ src: mainImage });
//		return false;		
//	});

$('.form-popup').hide();
$("a.popup-trigger").click(
		function() {
			$('.form-popup').slideDown('slow');
			return false;
		});

$("a.popup-close").click(
		function() {
			$('.form-popup').slideUp('slow');
			return false;			
		});



 
});

























