var willgrace = {src: FONT_LOCATION+'willandgrace.swf'};
var centurygothic = {src: FONT_LOCATION+'centurygothic.swf'};

sIFR.activate(willgrace);
sIFR.activate(centurygothic);

sIFR.replace(willgrace, {
	selector: 'h1.heading',
	css: [
		'.sIFR-root { font-size: 50px; color: #eae7d4; }',
		'strong { font-style: bold; }',
		'em { font-style: normal; color: #89b916; }'
		],
	wmode: 'transparent'
});

sIFR.replace(willgrace, {
	selector: 'h2.heading',
	css: [
		'.sIFR-root { font-size: 20px; color: #89b916; }',
		'strong { font-style: bold; }',
		'em { font-style: normal; color: #eae7d4; }'
		],
	wmode: 'transparent'
});

sIFR.replace(willgrace, {
	selector: '.menudujour h1',
	css: [
		'.sIFR-root { font-size: 16px; color: #eae7d4; text-align: center; }',
		'strong { font-style: bold; }',
		'em { font-style: normal; color: #eae7d4; }'
		],
	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());
                }
            }
        }
    });
}
