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

sIFR.activate(bank);

sIFR.replace(bank, {
	selector: 'h1.heading',
	css: [
		'.sIFR-root { font-size: 35px; color: #000000; text-align: right; }',
		'strong { font-style: bold; }',
		'em { font-style: italic; }'
		],
	wmode: 'transparent'
});

sIFR.replace(bank, {
	selector: 'h2.heading',
	css: [
		'.sIFR-root { font-size: 25px; color: #e69e23; text-align: right; }',
		'strong { font-style: bold; }',
		'em { font-style: italic; }'
		],
	wmode: 'transparent'
});

sIFR.replace(bank, {
	selector: '.suggestions h3',
	css: [
		'.sIFR-root { font-size: 20px; color: #ffffff; text-align: center; }'
		],
	wmode: 'transparent'
});

sIFR.replace(bank, {
	selector: '#legal p.sig',
	css: [
		'.sIFR-root { font-size: 14px; color: #000000; text-align: right; }',
		'a {color: #333333; text-decoration: none; }',
		'a:hover {color: #e69e23; text-decoration: none; }',
		'a:visited {color: #333333; text-decoration: none; }'
		],
	wmode: 'transparent'
});

sIFR.replace(bank, {
	selector: '#legal p.copyright',
	css: [
		'.sIFR-root { font-size: 14px; color: #000000; }'
		],
	wmode: 'transparent'
});

sIFR.replace(bank, {
	selector: '#pied p.etab',
	css: [
		'.sIFR-root { font-size: 16px; color: #ffffff; text-align: right; }',
		'em {color: #000000; font-style: normal; }',
		],
	wmode: 'transparent'
});

sIFR.replace(bank, {
	selector: '#foot p',
	css: [
		'.sIFR-root { font-size: 25px; color: #333333; text-align: right; }'
		],
	wmode: 'transparent'
});

$(document).ready(function() {
	Shadowbox.init();
	$(".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
    });
}
