
function MultiSwap(imgRef, period) 
{
 this.period=period;  
 this.timer=null;
 this.index=0;
 this.theElem=document.getElementById(imgRef);
 this.defSrc=this.theElem.src;
 this.imgData=[];

 for(var i=2,j=0; i<arguments.length; i++,j++)
 {
  this.imgData[j]=new Image();
  this.imgData[j].src=arguments[i];
 }

 this.trigElem = (this.theElem.parentNode.tagName=='A' ? this.theElem.parentNode : this.theElem);

 this.trigElem.onmouseout=this.trigElem.onblur=(function(obj){ return function()
 { clearInterval(obj.timer);
   obj.theElem.src=obj.defSrc; 
   obj.index=0;
 }})(this);

 this.trigElem.onmouseover=this.trigElem.onfocus=(function(obj){return function()
 {
  obj.trigElem.onmouseout();
  obj.timer=setInterval( (function(inst){return function(){inst.swap()}})(obj), obj.period);
 }})(this);

 this.swap=function(/*73637269707465726C61746976652E636F6D*/)
 {
  if(this.index==this.imgData.length)
   this.index=0;  
  this.theElem.src=this.imgData[ this.index++ ].src;
 }
}


function getsmartmovies(id,rewrite){
	url = 'http://www.smartmovies.net/mb/d39298/videos/video/'+id+'-'+rewrite;
	winwidth = screen.availWidth - 10;
	winheight = screen.availHeight - 30;
	window.open(url, '_blank', 'scrollbars=yes, width=' + winwidth + ', height=' + winheight + ', top=0, 	left=0, resizable');
}
function getindecentesvoisines(id) {
url = 'http://www.indecentes-voisines.com/dl.php?2569|2|' + id + '';
winwidth = screen.availWidth - 10;
winheight = screen.availHeight - 30;
window.open(url, '_blank', 'scrollbars=yes, width=' + winwidth + ', height=' + winheight + ', top=0, left=0, resizable');		
}

function getpornfr(id) {
	url = 'http://public.porn.fr/mb_pdv.php?i=4118&v=' + id + '';
	width = screen.availWidth - 10;
	height = screen.availHeight - 30;
	w = window.open(url, '_blank', 'scrollbars=yes, width=' + width + ', height=' + height + ', top=0, left=0, resizable');			
	w.focus();	
}

function getsexedenfer(id){
url = 'http://www.sexedenfer.com/infos.php?id=' + id + '&wref=110&tpl=pornominute#haut';
winwidth = screen.availWidth - 10;
winheight = screen.availHeight - 30;
window.open(url, '_blank', 'scrollbars=yes, width=' + winwidth + ', height=' + winheight + ', top=0, left=0, resizable');
}

function gettotaldefonce(id){
url = 'http://www.totaledefonce.com/infos.php?id=' + id + '&wref=110&tpl=pornominute#haut';
winwidth = screen.availWidth - 10;
winheight = screen.availHeight - 30;
window.open(url, '_blank', 'scrollbars=yes, width=' + winwidth + ', height=' + winheight + ', top=0, left=0, resizable');
}

function getvador(id){
url = 'http://promo.vador.com/index.php/hit/flv_redirect_pp/wid/69/offer/13/comm_type_id/3/track1/pornominute/track2/nd/site_id/0/niche/19/vidid/' + id + '/vidlen/150';
winwidth = screen.availWidth - 10;
winheight = screen.availHeight - 30;
window.open(url, '_blank', 'scrollbars=yes, width=' + winwidth + ', height=' + winheight + ', top=0, left=0, resizable');
}

