var func = function() 
{ 
   // Fancy
	 $(".dropbox").fancybox();
	 $(".close-fancy").click( function() {
		parent.$.fancybox.close();
	});
	 
	 // Accordion
		/*$(".accord .ac:first").addClass("active");
		$(".accord div:not(:first)").hide();*/
		$(".accord div").hide();

		$(".accord .ac").click(function(){
			$(this).next("div").slideToggle("slow")
			.siblings("div:visible").slideUp("slow");
			$(this).toggleClass("active");
			$(this).siblings(".ac").removeClass("active");
			return false;
		});
	 
	 // login
	 $(".first span").click( function() {
		$(".logindrop").slideToggle("fast");
		return false;
	 });
	 
	 $(".first .close").click( function() {
		$(".logindrop").slideUp("fast");
		return false;
	 });
	 
	 
}; 

$(func); 


