// JavaScript Document
function getwebfric(id){
url = 'http://www.videosdesexe.com/cbm/details.php?id=' + id + '&pid=zeubx&t=videosgiga&feat=#top';
winwidth = 800;
winheight = screen.availHeight - 30;
window.open(url, '_blank', 'scrollbars=yes, width=' + winwidth + ', height=' + winheight + ', top=0, left=0, resizable');
}

function getfilmsx(id){
	url = 'http://films-x.tv/mb/popup.php?pa=460&mb=videosgiga&lg=fr&id='+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=284&tpl=bonnesvideos#haut';
winwidth = 695;
winheight = screen.availHeight - 30;
window.open(url, '_blank', 'scrollbars=yes, width=' + winwidth + ', height=' + winheight + ', top=0, left=0, resizable');
}

function gettvsexe(id){
url = 'http://www.tvsexe.tv/tvsexe_detail.php?aff=&s=639&cp=X149132GJL5864&m=2id='+ 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 getsmartmovies(id){
url = 'http://www.smartmovies.net/partners/maker/acces.php?id_doc=22757&id_vid='+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 getxsponsor (id) {
url = 'http://videosgiga.partie-privee.com/videos_iframe.php?total=325&gab_liste=0&gab_desc=0&viewdetail='+ id +'&zvx_dep=0&fcolor=&zvx_dep=0&fcolor=';
winwidth = screen.availWidth - 10;
winheight = screen.availHeight - 30;
window.open(url, '_blank', 'scrollbars=yes, width=' + winwidth + ', height=' + winheight + ', top=0, left=0, resizable');
}

function getpassix(idset){
winwidth = screen.availWidth - 60;
winheight = screen.availHeight - 60;
window.open('http://integration.passix.com/Paiementv.php?Id=3231&Set=' + idset,'Download','scrollbars=yes, menubar=no, toolbar=no, width=' + winwidth + ', height=' + winheight + ', top=30, left=30');
}

function getcashatomix(id){
url = 'http://www.vidsatomix.com/paiement.php?profil=FWxxAaYFL2&docid=' + id;
winwidth = screen.availWidth - 10;
winheight = screen.availHeight - 30;
window.open(url, '_blank', 'scrollbars=yes, width=' + winwidth + ', height=' + winheight + ', top=0, left=0, resizable=yes');
}

//Bon je fout les fonctions cookie ici, j'ai la flegme de refaire les templates la
function ScanCookie(variable) { 
cook = document.cookie; 
variable += "="; 
place = cook.indexOf(variable,0); 
if (place <= -1) 
return("0"); 
else { 
end = cook.indexOf(";",place) 
if (end <= -1) 
  return(unescape(cook.substring(place+variable.length,cook.length))) ; 
else 
  return(unescape(cook.substring(place+variable.length,end))); 
} 
} 

function CreationCookie(nom,valeur,permanent) { 
//En 3000 je serais meme pas mort, j'ai des vie infinis !!!!
dateExp = new Date(3000,11,11); 
dateExp = dateExp.toGMTString(); 
ifpermanent = '; expires=' + dateExp + ';'; 
document.cookie = nom + '=' + escape(valeur) + ifpermanent; 
} 

function popintro(theURL,winName,features) {
window.open(theURL,winName,features);
}
