$(document).ready( function(){
	//$.backstretch("/images/sky2.jpg", {speed: 150});
	//$('.b-menu li.active').corner('10px');
	

	var browserName = navigator.appName; 
	if (browserName == "Microsoft Internet Explorer"){
		$('.b-content-holder').corner('20px cc:#8a5938');
		//$('.b-langs a.active').corner('4px cc:#8a5938');
	} 
	else {
		$('.b-content-holder').corner('20px');
		$('.b-langs a.active').corner('4px');
	}
	
	//$('a.thumb img').corner('4px');
	//$('.b-catalog-thumbs a img').corner('6px');
	//$('.b-start-images img').corner('6px');
	//$(".b-superficial ").dropShadow({left: -8, top: 1, opacity: 0.9, blur: 6});
	
	//alert( $('.b-superficial').height() - $('.b-header').height() - $('.b-footer').height() );
	
	//resizeContent();
	//$(window).resize(function() {
	//	resizeContent();
	//});
	
	$("a.gallery").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	400, 
		'speedOut'		:	200, 
		'overlayShow'	:	false
	});
	
	$("a.iframe").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	400, 
		'speedOut'		:	200, 
		'overlayShow'	:	false,
		'width'			:	710,
		'height'		:	600
	});
});

function resizeContent(){
	var contentIsHeight = $('.b-content-holder').height();
	var contentSetHeight = $('.b-superficial').height() - $('.b-header').height() - $('.b-footer').height() - $('.b-footer').height();
	
	if( contentIsHeight < contentSetHeight){
		$('.b-content-holder').css('height', contentSetHeight);
	}
}
