/////////////////////////////////////////////////////////////////////
// Configuration
/////////////////////////////////////////////////////////////////////
this.site_iphone = "http://iphone.julienjet.com"
this.no_flash = "http://www.julienjet.com/php/no_flash.php"
/////////////////////////////////////////////////////////////////////
// Configuration du swf
/////////////////////////////////////////////////////////////////////
eval(function(p,a,c,k,e,r){e=String;if(!''.replace(/^/,String)){while(c--)r[c]=k[c]||c;k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('1.2="3://4.5.6/0/7.0"',8,8,'php|this|url|http|www|julienjet|com|fs'.split('|'),0,{}))
this.name = "site"
this.width = "900"
this.height = "600"
this.quality = "High"
this.bgcolor = ""
this.wmode = ""
this.classid = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
this.codebase = "http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
this.pluginspage = "http://www.macromedia.com/go/getflashplayer"
this.type = "application/x-shockwave-flash"
/////////////////////////////////////////////////////////////////////
// Si detection iphone renvoi sur la page iphone
/////////////////////////////////////////////////////////////////////
var agent=navigator.userAgent.toLowerCase();
var is_iphone = (agent.indexOf('iphone')!=-1);
if (is_iphone) {
window.location = this.site_iphone;
}else{
/////////////////////////////////////////////////////////////////////
// Sinon on lance la détection de flash
/////////////////////////////////////////////////////////////////////
var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
var isFirefox = (navigator.userAgent.indexOf("Firefox/") != -1 ) ? true : false;
var isCrome = (navigator.userAgent.indexOf("Chrome") != -1 ) ? true : false;
var isSafari = (navigator.userAgent.indexOf("Safari") != -1 ) ? true : false;
function detectFlashIE()
{
	if( navigator.mimeTypes.length > 0 )
	{
		return navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin != null;
	}
	else if( window.ActiveXObject )
	{
		try
		{
		new ActiveXObject( "ShockwaveFlash.ShockwaveFlash" );
		document.write('<object classid="'+this.classid+'" codebase="'+this.codebase+'" width="'+this.width+'" height="'+this.height+'"><param name="wmode" value="'+this.wmode+'"><param name="movie" value="'+this.url+'?key='+key+'&page='+page+'"/><param name="quality" value="'+this.quality+'"><param name="bgcolor" value="'+this.bgcolor+'"><embed src="'+this.url+'?key='+key+'&page='+page+'" width="'+this.width+'" height="'+this.height+'" quality="'+this.quality+'" pluginspage="'+this.pluginspage+'" type="'+this.type+'" bgcolor="'+this.bgcolor+'" wmode="'+this.wmode+'" name="'+this.name+'"></embed>');
		document.write('</object>')
		}
		catch( oError )
		{
			window.location = this.no_flash;
		}
	}
	else
	{
	window.location = this.no_flash;
	}
}
function detectFlashAutre()
{
		document.write('<object classid="'+this.classid+'" codebase="'+this.codebase+'" width="'+this.width+'" height="'+this.height+'"><param name="wmode" value="'+this.wmode+'"><param name="movie" value="'+this.url+'?key='+key+'&page='+page+'"/><param name="quality" value="'+this.quality+'"><param name="bgcolor" value="'+this.bgcolor+'"><embed src="'+this.url+'?key='+key+'&page='+page+'" width="'+this.width+'" height="'+this.height+'" quality="'+this.quality+'" pluginspage="'+this.pluginspage+'" type="'+this.type+'" bgcolor="'+this.bgcolor+'" wmode="'+this.wmode+'" name="'+this.name+'"></embed>');
		document.write('</object>')
}
if(isIE == true){
detectFlashIE();
}
if(isIE == false){
detectFlashAutre();
}
}
