
// initialise plugins
jQuery(function(){
	jQuery('ul.sf-menu').supersubs({  
		minWidth:    19,   // minimum width of sub-menus in em units
		maxWidth:    24,   // maximum width of sub-menus in em units
		extraWidth:  0     // extra width can ensure lines don't sometimes turn over
	}).superfish({
		delay:       500,                            // one second delay on mouseout 
		animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
		speed:       'fast',                          // faster animation speed 
		autoArrows:  false,                           // disable generation of arrow mark-up 
		dropShadows: false  
	});
	
	jQuery("#sidebar:not(:empty)").each(function(i){
		jQuery(this).addClass("sidebar-empty");
	});	
});

jQuery(function(){
        jQuery('input[placeholder], textarea[placeholder]').placeholder();
   });
   
function clock() {	
	var now = new Date();
	var day = now.getDate();
	var month = now.getMonth() + 1;
	var year = now.getFullYear();
	
	var date = "<p>" + day + "/" + month + "/" + year + "</p>";
	
	document.getElementById("clock").innerHTML = date;
}

