//	--------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- 	
//
//	file name:	functions.js
//
//
//
//	date:							2009-06-01
//	last editor:			Imre
//
//
//	version:		0.2		internet explorer fix, works in internet explorer 6
//										does work in internet explorer 8 (compatibility mode ie 7)
//										real version ie 7 not tested
//
//	function:		1.0		fancy box
//							2.0		panel
//							3.0		fade
//
//	--------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- 

$(document).ready(function() {



//	--------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- 	
//	1.0		fancy box
//	--------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- 
	$(".fancybox").fancybox({
	'overlayOpacity'	:	0.7,
	'zoomOpacity'			:	true,
	'zoomSpeedChang'	:	500,
	'frameWidth'			:	640,
	'frameHeight'			:	480
	});



//	--------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- 	
//	2.0		panel
//	--------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- 
	
	
	
	$(".btn-slide").click(function(){
	  $("#header .container").slideToggle("slow");
	  $(this).toggleClass("active"); return false;
	});
	
	


//	--------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- 	
//	3.0		fade
//	--------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- 
	$(".fade").fadeTo("slow", 0.5);
	$(".fade").hover(
		function() {
			$(this).fadeTo("slow", 1.0);
		},
		function() {
			$(this).fadeTo("slow", 0.5);
		}
	);



//	--------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- 
});
