/*** SZIN Landing page - 2011 - JS by Polgar Peter (Force) ***/

$(document).ready(function() {
//-----

// fancybox
$("a[rel=gallery]").fancybox({
	'transitionIn'		: 'none',
	'transitionOut'		: 'none',
	'titlePosition' 	: 'over',
	'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
		return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
	}
});

// facebook
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "http://connect.facebook.net/en_GB/all.js#xfbml=1&appId=119487478125916";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));

$('div.fb-like').attr('data-href', 'https://www.facebook.com/szin.szeged').attr('data-send', 'true').attr('data-layout', 'box_count').attr('data-show-faces', 'false');

// height
$('div#tablet').height( $(window).height() );


//-----
});


$(window).resize(function() {

// height
$('div#tablet').height( $(window).height() );

});
