var eurofurence = {src: FONT_LOCATION+'eurofurence.swf'};
var eurofurencebold = {src: FONT_LOCATION+'eurofurencebold.swf'};
var blake = {src: FONT_LOCATION+'blake.swf'};

sIFR.activate(eurofurence);
sIFR.activate(eurofurencebold);
sIFR.activate(blake);

sIFR.replace(blake, {
	selector: 'h1.heading',
	fitExactly: true,
	css: [
		'.sIFR-root { font-size: 40px; color: #9c202f; letter-spacing: 3; }',
		'strong { font-style: bold; }',
		'em { font-style: italic; }'
		],
	wmode: 'transparent'
});

sIFR.replace(eurofurence, {
	selector: 'h2.heading',
	fitExactly: true,
	css: [
		'.sIFR-root { font-size: 24px; color: #645243; letter-spacing: 1; }',
		'strong { font-style: bold; }',
		'em { font-style: italic; }'
		],
	wmode: 'transparent'
});

sIFR.replace(eurofurence, {
	selector: 'h3.heading',
	fitExactly: true,
	css: [
		'.sIFR-root { font-size: 22px; color: #9c202f; letter-spacing: 1; }',
		'strong { font-style: bold; }',
		'em { font-style: italic; }'
		],
	wmode: 'transparent'
});

$(document).ready(function() {
	$('a.preload').preload();
	Shadowbox.init();
	$('marquee').marquee().mouseover(function() {
		$(this).trigger('stop');
	}).mouseout(function () {
		$(this).trigger('start');
	});
	$(".sig a").tooltip({
		extraClass: "pla_sig",
	    track: true,
	    delay: 0,
	    showURL: true,
	    showBody: " :: "
	});
});

$.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: "",
        width: 750,
        height: 500,        
        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());
                }
            }
        }
    });
}

function VisiteVirtuelle(src,title) {
	Shadowbox.open({
        player: "iframe",
        title: "Visite Virtuelle - "+title,
        content: "templates/media/"+src+"/index.html",
        width: 650,
        height: 430
    });
}