// Dropdown menu init
ddsmoothmenu.init({
	mainmenuid: "top_menu", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

// jQuery start
$(document).ready(function(){

	// Pretty photo init
	$("a[rel^='prettyPhoto']").prettyPhoto();						 

	// Post boxes hover behaviour
	$('#content .post_box_inner').hover(function(){
		$(this).toggleClass('post_box_inner_hover');
	});
	$('.post_box a.read_more').hover(function(){
		$(this).prev('.post_box_inner').toggleClass('post_box_inner_hover');
	}); 

	// AJAX contact form init
	$('#contact').ajaxForm(function(data) {
		if (data == 1) {
			$('#success').fadeIn("slow");
			$('#bademail').fadeOut("slow");
			$('#badserver').fadeOut("slow");
			$('#contact').resetForm();
		} else if (data == 2) {
			$('#badserver').fadeIn("slow");
		} else if (data == 3) {
			$('#bademail').fadeIn("slow");
		}
	});
});
