$(function() {
		   
	$(".png").supersleight();

	$("a").click(function(){
		var href = $(this).attr("href");
		if(href == "#"){
			return false;
		}
	});

	$("#navigation li").hover(function(){
		$(this).stop().addClass("hovered");
	},function(){
		$(this).stop().removeClass("hovered");
	});

	$(".social-networks li a").hover(function(){
		$(this).stop().find("img").css({"margin-top" : "-24px"});
	},function(){
		$(this).stop().find("img").css({"margin-top" : "0px"});
	});

	$("ul.faq li a").click(function(){
		if($(this).parent().hasClass("opened")){
			var height = $(this).parent().find(".answer").height();
			$(this).parent().find(".answer").animate({"height" : "0px", "opacity": 0}, 400, function(){
				$(this).css({"height": height+"px"}).hide(1);
				$(this).parent().removeClass("opened");
			});
		}
		else{
			$(this).parent().addClass("opened");
			$(this).parent().find(".answer").show(1, function(){
				var height = $(this).parent().find(".answer").height();
				$(this).parent().find(".answer").css({"height" : "0px", "opacity": 0});
				$(this).parent().find(".answer").animate({"height" : height+"px", "opacity": 1}, 400);
			});
		}
		return false;
	});

});


/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}
