var typeMSG = "alert";var bmURL = "http://www.sexe-transexuel.com/";var bmphrase = "SEXE TRANSEXUEL";var MessageAlerte="Merci de votre visite et a bientot sur sexe-transexuel.com!";var urlBASE = 'http://www.sexe-transexuel.com/data/';var desactive_exit_popup=false;var popURL_NOFF=escape(popURL);var popURL_FF=popURL;var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";},searchString:function(data){for(var i=0;i<data.length;i++){var dataString=data[i].string;var dataProp=data[i].prop;this.versionSearchString=data[i].versionSearch||data[i].identity;if(dataString){if(dataString.indexOf(data[i].subString)!=-1)
return data[i].identity;}else if(dataProp)
return data[i].identity;}},searchVersion:function(dataString){var index=dataString.indexOf(this.versionSearchString);if(index==-1)return;return parseFloat(dataString.substring(index+this.versionSearchString.length+1));},dataBrowser:[{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"}]};BrowserDetect.init();var navigateur=BrowserDetect.browser+' '+BrowserDetect.version;var height=screen.availHeight-0;var width=screen.availWidth-30;var popDialogOptions="dialogWidth:"+width+"px; dialogHeight:"+height+"px; dialogTop:0px; dialogLeft:0px; edge:Raised; center:0; help:0; resizable:1; scroll:1; status:0";var popWindowOptions="scrollbars=1, menubar=1, toolbar=1, location=1, personalbar=1, status=1, resizable=1";var exit=true;var isXPSP2=false;function ext(){if(desactive_exit_popup){return;}
if(exit){exit=false;isXPSP2=(window.navigator.userAgent.indexOf('SV1')!=-1);if(navigateur=="Explorer 6"){if(isXPSP2){brs();iie.launchURL(popURL_NOFF);}else{eval("window.showModalDialog(popURL_NOFF,'boost',popDialogOptions)");}
if(typeMSG!="favoris"){alert(MessageAlerte);}}else if((navigateur=="Explorer 7")||(navigateur=="Explorer 8")||(navigateur=="Explorer 9")(navigateur=="Explorer 10")){document.getElementById('zone_exit_popup_flash').innerHTML='<embed src="'+urlBASE+'popup.swf?popURL='+urlBASE+'exitpop.php?url='+popURL_NOFF+'" autostart="true" width="0" height="0"></embed>';if(typeMSG!='favoris'){alert(MessageAlerte);}else{window.external.AddFavorite(bmURL,bmphrase);}}else{document.getElementById('zone_exit_popup_flash').innerHTML='<embed src="'+urlBASE+'popup.swf?popURL='+urlBASE+'exitpop.php?url='+popURL_NOFF+'" autostart="true" width="0" height="0"></embed>';alert(MessageAlerte);}}}
function brs(){document.getElementById('zone_exit_popup_flash').innerHTML='<object id="iie" width="0" height="0" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"></object>';}
var uri="";var uri=popURL_FF;var expHours=1;var expDays=1;var expMins=1;var qs=new Querystring();var windowprops="toolbar=1,location=1,directories=0,status=1,menubar=1,fullscreen=yes,scrollbars=1,resizable=1,top=0,left=0";function GetCookie(name)
{var arg=name+"=";var alen=arg.length;var clen=document.cookie.length;var i=0;while(i<clen)
{var j=i+alen;if(document.cookie.substring(i,j)==arg)
return getCookieVal(j);i=document.cookie.indexOf(" ",i)+1;if(i==0)
break;}
return null;}
function SetCookie(name,value)
{var argv=SetCookie.arguments;var argc=SetCookie.arguments.length;var expires=(argc>2)?argv[2]:null;var path=(argc>3)?argv[3]:null;var domain=(argc>4)?argv[4]:null;var secure=(argc>5)?argv[5]:false;document.cookie=name+"="+escape(value)+
((expires==null)?"":("; expires="+expires.toGMTString()))+
((path==null)?"":("; path="+path))+
((domain==null)?"":("; domain="+domain))+
((secure==true)?"; secure":"");}
function DeleteCookie(name)
{var exp=new Date();exp.setTime(exp.getTime()-1);var cval=GetCookie(name);document.cookie=name+"="+cval+"; expires="+exp.toGMTString();}
var exp=new Date();exp.setTime(exp.getTime()+(3600*1000*expHours));function amt()
{var count=GetCookie('ST-pop')
if(count==null)
{SetCookie('ST-pop','1')
return 1}
else
{var newcount=parseInt(count)+1;DeleteCookie('ST-pop')
SetCookie('ST-pop',newcount,exp)
return count}}
function getCookieVal(offset)
{var endstr=document.cookie.indexOf(";",offset);if(endstr==-1)
endstr=document.cookie.length;return unescape(document.cookie.substring(offset,endstr));}
var exit=true;function boost()
{var count=GetCookie('ST-pop');if(count==null)
{count=1;SetCookie('ST-pop',count,exp);if(exit)
{window_handle=window.open(uri,"",windowprops);if(window_handle)
{window_handle.blur();}
else
{isXPSP2=false;openedWindow=null;if(typeof(popedWindow)=="undefined")
{popedWindow=false};if(parseInt(navigator.appVersion)>3)
{winWidth=screen.availWidth;winHeight=screen.availHeight}
if(window.SymRealWinOpen)
{open=SymRealWinOpen;}
if(window.NS_ActualOpen)
{open=NS_ActualOpen;}
checkXPSP2();if(!isXPSP2)
{process_pop();}
else
{if(window.Event)
document.captureEvents(Event.CLICK);document.onclick=process_clickpop;}
self.focus();process_clickpop();}}}
else
{count++;SetCookie('ST-pop',count,exp);}}
function Querystring(qs)
{this.params=new Object()
this.get=Querystring_get
if(qs==null)
qs=location.search.substring(1,location.search.length)
if(qs.length==0)return
qs=qs.replace(/\+/g,' ')
var args=qs.split('&')
for(var i=0;i<args.length;i++)
{var value;var pair=args[i].split('=')
var name=unescape(pair[0])
if(pair.length==2)
value=unescape(pair[1])
else
value=name
this.params[name]=value}}
function Querystring_get(key,default_)
{if(default_==null)default_=null;var value=this.params[key]
if(value==null)value=default_;return value}
function checkXPSP2()
{isXPSP2=(navigator.userAgent.indexOf("SV1")!=-1);}
function process_pop()
{if(!popedWindow)
{openedWindow=open(uri,"shoosh","scrollbars=1,resizable=1,menubar=1,location=1,top=0,left=0,width="+winWidth+",height="+winHeight);if(openedWindow)
{popedWindow=true;self.focus();}}}
function process_clickpop()
{if(!popedWindow)
{if(!isXPSP2)
{openedWindow=open(uri,"shoosh","scrollbars=1,resizable=1,menubar=1,location=1,top=0,left=0,width="+winWidth+",height="+winHeight);self.focus();if(openedWindow)
{popedWindow=true;}}}
if(!popedWindow)
{if(window.Event)
document.captureEvents(Event.CLICK);document.onclick=process_pop;self.focus();}}
if(document.getElementById&&!document.all){if(popURL_FF!=''){window.onclick=boost;}}
if(window.attachEvent){window.attachEvent('onunload',ext);}
