// JavaScript Document
function SetCookie (name, value, date)
{
var aujourdhui = new Date() ;
var expdate = new Date() ;
 
//plus an an ˆ partir d'aujourdh'ui le cookie ne s'efface jamais
expdate.setTime( aujourdhui.getTime() + ( date*24*60*60*1000 ) )
//creation du cookie
document.cookie = name + "=" + value + ";expires=" + expdate.toGMTString() + ";path=/;";

if (date != -1) {
 alert ('Vidéo ajoutée dans votre selection');	
}


}

function count_cookies() {
	var aCookie = document.cookie.split("; ");
	var nb_cookies = 0;
	var tag;
	var jkvideo;
	
	for (i=0; i<aCookie.length; i++) {		   
		    if (aCookie[i].substr(0,7) == "jkvideo") {
		    	nb_cookies = nb_cookies + 1;
		    }    
	}
	return nb_cookies;
}
function getbazoocash(id){
	url = 'http://mb.cinehard.com/infos.php?id=' + id + '&aff=60&mb=fist';
	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 getfilmsx(id){
	url = 'http://films-x.tv/mb/popup.php?pa=331&mb=videosfist&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=110&tpl=videosfist#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 getcashatomix(id){
url = 'http://www.vidsatomix.com/paiement.php?profil=yJbLLmjGXP&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');
}
function gettotaldefonce(id) {
url = 'http://www.totale-defonce.com/infos.php?id=' + id + '&wref=110&tpl=videosfist#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 getfilmsxmature(id) {
url = 'http://www.video-mature.tv/mb/popup.php?pa=331&mb=videosfist&lg=fr&card=&id='+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 getfilmsxamateur(id) {
url = 'http://films-amateurs.tv/mb/popup.php?pa=331&mb=videosfist&lg=fr&card=&id='+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 getevolucash(id) {
url = 'http://www.3xdl.com/downloadv.php?track=78&type=mbv&vid=' + id + '&md=228'; 
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=487&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();	
}
