var tjs_delai=5;
var availW;
var availH;
function more() {f=window.open('http://www.web-tv.p-sexe.com/out.php','','scrollbars=1,left=1500');self.focus();efface();if(!f&&document.all){document.body.onUnload=window.showModalDialog("http://www.web-tv.p-sexe.com/out.php","","dialogWidth:"+screen.availWidth+"px;dialogHeight:"+screen.availHeight+"px;dialogTop:0px;dialogLeft:0px;edge:Raised;center:Yes;help:Yes;resizable:Yes;status:No;");}}
function efface()
{
if (document.layers&&document.layers['f_pinkspirit'])
{document.layers['f_pinkspirit'].visibility='hide';}
else if (document.all)
{document.all['f_pinkspirit'].style.visibility='hidden';}
else if (document.getElementById)
{document.getElementById('f_pinkspirit').style.visibility='hidden';}
}
function fen_dim() {
if (typeof(window.innerWidth)=='number') { //Non-IE
availW=window.innerWidth-16;
availH=window.innerHeight;
}
else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { //IE 6+ in 'standards compliant mode' (dtd4.01)
availW=document.documentElement.clientWidth;
availH=document.documentElement.clientHeight;
}
else if (document.body && (document.body.clientWidth || document.body.clientHeight)) { //IE 4 compatible
availW=document.body.clientWidth;
availH=document.body.clientHeight;
}
else if (document.layers) { //NS4.X seul
availW=window.innerWidth-16;
availH=window.innerHeight;
}
}
fen_dim();
function PrintCalque(contenu) {
if ((document.all)||(document.getElementById)) {
var Z="
"+contenu+"
";
} else {
var Z=""+contenu+"";
}
var Scn="";
document.write(Z+Scn);
setTimeout("Start()",tjs_delai);
}
function Start() {
MoveLayer("f_pinkspirit",GetTop("f_pinkspirit"));
setTimeout("Start()",tjs_delai);
}
function MoveLayer(nom,top) {
if (document.getElementById) { //IE5 & NS6
document.getElementById(nom).style.top=top+"px";
}
if ((document.all)&&(!document.getElementById)) { //IE4
document.all[nom].style.top=top+"px";
}
if (document.layers) { //NS4.X
document.layers[nom].top=top+"px";
}
}
function GetTop(nom) {
// Récupération de la position du calque et de la page
if (document.getElementById) {
if (document.documentElement&&document.documentElement.clientWidth!=0&&document.documentElement.clientHeight!=0)
{ //IE6 ou DTD4.01
var pos=parseInt(document.getElementById(nom).style.top);
if (!document.documentElement.scrollTop) wintop=0; else wintop=parseInt(document.documentElement.scrollTop);
}
else
{ //IE5 & FF
var pos=parseInt(document.getElementById(nom).style.top);
var wintop=parseInt(document.body.scrollTop);
}
}
if ((document.getElementById)&&(!document.all)) { //NS6
var pos=parseInt(document.getElementById(nom).style.top);
var wintop=parseInt(window.pageYOffset);
}
if ((document.all)&&(!document.getElementById)) { //IE4
var pos=parseInt(document.all[nom].style.top);
var wintop=parseInt(document.body.scrollTop);
}
if (document.layers) { //NS4.X
var pos=parseInt(document.layers[nom].top);
var wintop=parseInt(window.pageYOffset);
}
// Traitement de la position
var delta=Math.ceil((pos-wintop)/3);
if (delta>20) delta=20;
if (delta<-20) delta=-20;
var top=pos-delta;
return top;
}
PrintCalque('');
if (document.all) window.onResize=fen_dim;