$(function () {
	$('#sidebar div.functions-box, #sidebar div.corporate-box, #sidebar div.weddings-box').css('cursor', 'pointer').click(function() {
		document.location = $('a.more', this).attr('href');
	});
	
	if ($.fn.gallery) {
		$('div.image-gallery').gallery();
	}
	if ($.fn.lightbox) {
		$('ul.image-gallery a').lightbox();
	}

});

/* sIFR Configuration */

var font = { src: '/flash/freehand.swf' };

var sIFRcss_h1_root = '.sIFR-root { font-weight:normal; color:#FFFFFF; font-size:60px; leading:-15; margin-left:5; }';
var sIFRcss_h2_root = '.sIFR-root { font-weight:normal; color:#FFFFFF; font-size:40px; margin-left:3; }';
var sIFRcss_sidebar_h2_root = '.sIFR-root { font-weight:normal; color:#FFFFFF; font-size:35px; margin-left:3; }';
var sIFRcss_em = 'em { font-style:italic; }';
var sIFRcss_strong = 'strong { font-weight:bold; }';
var sIFRcss_a = 'a { color: #280DD7; }';
var sIFRcss_a_hover = 'a:hover { color: #280DD7; }';

if ($('body').hasClass('function-party-music')) {
	font = { src: '/flash/angelina.swf' };
	sIFRcss_em = 'em { font-style:normal; }';
	sIFRcss_a = 'a { color: #FFFFFF; }';
	sIFRcss_a_hover = 'a:hover { color: #FFFFFF; }';
} else if ($('body').hasClass('corporate-event-music')) {
	sIFRcss_h1_root = '.sIFR-root { font-weight:normal; color:#FFFFFF; font-size:30px; }';
	sIFRcss_h2_root = '.sIFR-root { font-weight:normal; color:#FFFFFF; font-size:20px; }';
	sIFRcss_sidebar_h2_root = '.sIFR-root { font-weight:normal; color:#FFFFFF; font-size:17px; text-align: center; }';
	font = { src: '/flash/museo-sans.swf' };
	sIFRcss_em = 'em { font-style:normal; }';
	sIFRcss_strong = 'strong { font-weight:normal; font-family: "Museo Sans 300"; }';
	sIFRcss_a = 'a { color: #FFFFFF; }';
	sIFRcss_a_hover = 'a:hover { color: #FFFFFF; }';
} else if ($('body').hasClass('wedding-music')) {
	sIFRcss_h1_root = '.sIFR-root { text-align: center; font-weight:normal; color:#5A4419; font-size:45px; }';
	sIFRcss_h2_root = '.sIFR-root { text-align: center; font-weight:normal; color:#5A4419; font-size:35px; }';
	sIFRcss_sidebar_h2_root = '.sIFR-root { text-align: center; font-weight:normal; color:#5A4419; font-size:30px; }';
	font = { src: '/flash/ancestory.swf' };
	sIFRcss_em = 'em { font-style:normal; }';
	sIFRcss_strong = 'strong { font-weight:normal; }';
	sIFRcss_a = 'a { color: #BF9036; }';
	sIFRcss_a_hover = 'a:hover { color: #BF9036; }';
}


sIFR.activate(font);

sIFR.replace(font, {
	selector: 'h1',
	css: [
		sIFRcss_h1_root,
		sIFRcss_em,
		sIFRcss_strong,
		sIFRcss_a,
		sIFRcss_a_hover
    ],
	wmode: 'transparent'/*,
	offsetTop: -50,
	tuneHeight: 0*/
});



sIFR.replace(font, {
	selector: '#sidebar h2',
	css: [
		sIFRcss_sidebar_h2_root,
		sIFRcss_em,
		sIFRcss_strong,
		sIFRcss_a,
		sIFRcss_a_hover
    ],
	wmode: 'transparent'
});

sIFR.replace(font, {
	selector: 'h2',
	css: [
		sIFRcss_h2_root,
		sIFRcss_em,
		sIFRcss_strong,
		sIFRcss_a,
		sIFRcss_a_hover
    ],
	wmode: 'transparent'
});