﻿/* © InitiativeWeb */

//if ((navigator.userAgent.toLowerCase().indexOf('iphone'))!=-1) { window.location = "http://intersquash.com/feed/ffe37e1e"; } // iPhoneize website.
/* */
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-707794-8']); // Set correct UA
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
ga.setAttribute('async', 'true');
document.documentElement.firstChild.appendChild(ga);
})();

function context()  {alert('© Initiativeweb'); return(false); }
document.oncontextmenu = context;
//-->

function swflash(theSWF, features, divId, bgColor) {
	if (theSWF ==  null)  theSWF = "main.swf"; 
	if (features ==  null)  features = "width='742' height='70' align='left' "; 
	if (divId ==  null)  divId = "flashcontent"; 
	if (bgColor == null) bgColor = "#FFFFFF";
	var swfContent = '';
	swfContent = swfContent +'<object type="application/x-shockwave-flash" data='+theSWF+' '+features+'>';
	swfContent = swfContent +'<param name="movie" value='+theSWF+' /><param name="bgcolor" value='+bgColor+' />';
	swfContent = swfContent +'<a href="http://www.adobe.com/go/getflash/"><img src="img/noflash.jpg" alt="Get Flashplayer" /></a>';
	swfContent = swfContent +'</object>';
	
	if(!divId || document.getElementById(divId) == null) document.writeln(swfContent);

	if (divId) {
		var container = document.getElementById(divId);
		container.innerHTML = swfContent; }
}

function popup_img(largeur,hauteur,img) {
	wind=open("",'popup','width='+largeur+',height='+hauteur+',top=100,left=100,toolbar=no,scrollbars=no,resizable=yes');
	var wx = wind.screen.availWidth - largeur - 12;
	wind.focus();
	wind.moveTo(wx,0);
	var contents = "";
	contents = contents +'<html><head><title>Popup</title></head><body><center><img src='+img+' border="0"><br><br>';
	contents = contents +'<font size="3">Coordonées GPS (décimal) - Latitude: 46,32 - Longitude: 4,31</font>';
	contents = contents +'</center></body></html>';
	wind.document.write(contents);
}
