jQuery(document).ready(function(){


//DROPDOWN MENU INIT
try {
  
  function generate_menu_drop_down(id) {
    jQuery("#"+id+" li ul").parent().mouseenter(function() { 
      jQuery(this).find("ul").css("display","block").css("visibility","visible");
    });
    jQuery("#"+id+" li ul").parent().mouseleave(function() {
      jQuery(this).find("ul").css("display","none").css("visibility","hidden");
    });
    jQuery("#"+id+" li ul").mouseenter(function(){
      jQuery(this).parent().find("a").addClass("current_hover");
    });
    jQuery("#"+id+" li ul").mouseleave(function(){
      jQuery(this).parent().find("a").removeClass("current_hover");
      //jQuery(this).css("display","none").css("visibility","hidden");
    });
  }
  generate_menu_drop_down("mainMenu");
  /*
  ddsmoothmenu.init({
  mainmenuid: "mainMenu", //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"]
  });
  */
}
catch(e) {
  alert(e);
}


try {
	// PRETTY PHOTO INIT
	jQuery("a[rel^='prettyPhoto']").prettyPhoto();
}
catch(e) {}


// SHOW/HIDE FOOTER ACTIONS
jQuery('#showHide').click(function(){	
	if (jQuery("#footerActions").is(":hidden")) {
		jQuery(this).css('background-position','0 0');
		jQuery("#footerActions").slideDown("slow");
		
		} else {
		jQuery(this).css('background-position','0 -16px') 
		jQuery("#footerActions").hide();
		jQuery("#footerActions").slideUp("slow");
		}
	return false;			   
});		

// TOP SEARCH 
jQuery('#s').focus(function() {
		jQuery(this).animate({width: "215"}, 300 );	
		jQuery(this).val('')
});

jQuery('#s').blur(function() {
		jQuery(this).animate({width: "100"}, 300 );
		jQuery(this).val('type your search');
});

// QUICK CONTACT

jQuery('#quickName').val('your name');
jQuery('#quickEmail').val('your email');
jQuery('#quickComment').val('your message');

jQuery('#quickName').focus(function() {
		jQuery(this).val('');	
});

jQuery('#quickEmail').focus(function() {
		jQuery(this).val('');	
});

jQuery('#quickComment').focus(function() {
		jQuery(this).val('');	
});

//SHARE LINKS
jQuery('#shareLinks a.share').click(function() {
		if (jQuery("#shareLinks #icons").is(":hidden")) {
		jQuery('#shareLinks').animate({width: "625"}, 500 );
		jQuery('#shareLinks #icons').fadeIn();
		jQuery(this).text('[-] Share & Bookmark');
		return false;
		}else {
		jQuery('#shareLinks').animate({width: "130"}, 500 );
		jQuery('#shareLinks #icons').fadeOut();
		jQuery(this).text('[+] Share & Bookmark');
		return false;	
		}
});
});
<!-- end document ready -->

<!-- PrettyPhoto init -->


