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

sIFR.activate(futura);

sIFR.replace(futura, {
	selector: 'h1.heading',
	fitExactly: true,
	css: [
		'.sIFR-root { font-size: 20px; color: #9db800; }',
		'strong { font-style: bold; }',
		'em { font-style: italic; }'
		],
	wmode: 'transparent'
});

sIFR.replace(futura, {
	selector: 'h2.heading',
	css: [
		'.sIFR-root { font-size: 18px; color: #9db800; text-align: right; }',
		'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;
});

$.listen("click","a.suite",function() {
	var div = $(this).parents(".resume:first");
	div.html(div.find("span.full").html());
});

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
    });
}


function shadowbox(src,title) {
	Shadowbox.open({
        player: "img",
        title: title,
        content: "content/media/"+src
    });
}