$(document).ready(function(){



if (jQuery.browser.msie) {
	if (parseInt(jQuery.browser.version) == 7) {
		var zIndexNumber = 1000;
			$('div').each(function() {
				$(this).css('zIndex', zIndexNumber);
				zIndexNumber -= 10;
			});
	} // if
} // if



//DROPDOWN MENU INIT

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"]

})



// PRETTY PHOTO INIT

$("a[rel^='prettyPhoto']").prettyPhoto();



// SHOW/HIDE FOOTER ACTIONS

$('#showHide').click(function(){	
	if ($("#footerActions").is(":hidden")) {
		$(this).css('background-position','0 0');
		$("#footerWidgets").css("border-top", "none");
		$(this).css({"top" : "1px"}) 
		$("#footerActions").slideDown('slow', function() {
    		//$("#footer").css({"height" : "auto"});
 		 });						
	} else {
		$(this).css({"background-position" : "0 -17px", "top" : "0px"}) 
		$("#footerActions").slideUp("slow", function() {
			$("#footerWidgets").css("border-top", "1px solid #333333");											 
		});
		//$("#footer").css("height", "17px");
	} // if-else
	return false;			   
});		



// TOP SEARCH 

$('#s').focus(function() {

		$(this).animate({width: "215"}, 300 );	

		$(this).val('')

});



$('#s').blur(function() {

		$(this).animate({width: "100"}, 300 );

		$(this).val('type your search');

});



// QUICK CONTACT


$('#quickName').focus(function() {

		$(this).val('');	

});



$('#quickEmail').focus(function() {

		$(this).val('');	

});



$('#quickComment').focus(function() {

		$(this).val('');	

});



//SHARE LINKS

$('#shareLinks a.share').click(function() {

		if ($("#shareLinks #icons").is(":hidden")) {

		$('#shareLinks').animate({width: "725"}, 500 );

		$('#shareLinks #icons').fadeIn();

		$(this).text('[-] Share & Bookmark');

		return false;

		}else {

		$('#shareLinks').animate({width: "130"}, 500 );

		$('#shareLinks #icons').fadeOut();

		$(this).text('[+] Share & Bookmark');

		return false;	

		}

});



});

<!-- end document ready -->



<!-- PrettyPhoto init -->




