var serif = {src: FONT_LOCATION+'serif.swf'};

sIFR.activate(serif);

sIFR.replace(serif, {
	selector: 'h1.heading',
	css: [
		'.sIFR-root { font-size: 45px; color: #FF0000; }',
		'strong { font-style: bold; }',
		'em { font-style: italic; }'
		],
	wmode: 'transparent'
});

sIFR.replace(serif, {
	selector: '.col .quote',
	css: [
		'.sIFR-root { font-size: 18px; text-align: center; color: #fee7c2; }',
		'strong { font-style: bold; }',
		'em { font-style: italic; }'
		],
	wmode: 'transparent'
});

sIFR.replace(serif, {
	selector: '.bloc h1',
	css: [
		'.sIFR-root { font-style: italic; font-size: 19px; text-align: left; color: #ffffff; }',
		'strong { font-style: bold; }',
		'em { font-style: italic; }'
		],
	wmode: 'transparent'
});

sIFR.replace(serif, {
	selector: '.bloc h2',
	css: [
		'.sIFR-root { font-size: 16px; text-align: left; color: #9a7558; }',
		'strong { font-style: bold; }',
		'em { font-style: normal; color: #ffffff; }',
		'a { color: #ffffff; text-decoration: none; }',
		'a:hover { color: #efe6d5; text-decoration: none; }',
		'a:visited { color: #ffffff; text-decoration: none; }'
		],
	wmode: 'transparent'
});

sIFR.replace(serif, {
	selector: '.etab h1',
	css: [
		'.sIFR-root { font-size: 17px; text-align: right; color: #1b0c08; }',
		'strong { font-style: bold; }',
		'em { font-style: italic; }'
		],
	wmode: 'transparent'
});

$(document).ready(function() {
	$('a.preload').preload();
	Shadowbox.init();
});

$.listen("click","a.shadowbox",function() {
	Shadowbox.open({
		player:     'img',
		title:      $(this).attr("title"),
		content:    $(this).attr("href")
	});
	return false;
});

function GoogleMaps(lat,lng) {
    Shadowbox.open({
        player: "html",
        title: "Plan d'Accès Google Maps",
        content: "",
        height: 500,
        width: 750,
        options: {
            onFinish: function(item){
                if(GBrowserIsCompatible()){
                    var map = new GMap2(document.getElementById("shadowbox_content"));
                    map.setCenter(new GLatLng(lat, lng), 13);
                    var point = new GLatLng(lat,lng);
                    map.addOverlay(new GMarker(point));     
                    map.addControl(new GSmallMapControl());
                    map.addControl(new GMapTypeControl());
                }
            }
        }
    });
}
