function playerVideo(vars)
{
	var w=684;
	var h=350;
	var x=(screen.width-w)/2;
	var y=(screen.height-h)/2;
	window.open("./?p=playerVideo&"+vars, "", "top="+y+", left="+x+", width="+w+", height="+h+", toolbar=0, location=0, directories=0, status=0, copyhistory=0, menubar=0, scrollbars=0, resizable=1");
}

function playerAudio(vars)
{
	var w=230;
	var h=75;
	var x=(screen.width-w)/2;
	var y=(screen.height-h)/2;
	window.open("./?p=playerAudio&"+vars, "", "top="+y+", left="+x+", width="+w+", height="+h+", toolbar=0, location=0, directories=0, status=0, copyhistory=0, menubar=0, scrollbars=0, resizable=1");
}

function ouvrirPhoto(id)
{
	var w=500;
	var h=470;
	var x=(screen.width-w)/2;
	var y=(screen.height-h)/2;
	window.open("./?p=photo&photo="+id, "", "top="+y+", left="+x+", width="+w+", height="+h+", toolbar=0, location=0, directories=0, status=0, copyhistory=0, menubar=0, scrollbars=0, resizable=0");
}

function detailsDate(id)
{
	var w=450;
	var h=300;
	var x=(screen.width-w)/2;
	var y=(screen.height-h)/2;
	window.open("./?p=date&date="+id, "", "top="+y+", left="+x+", width="+w+", height="+h+", toolbar=0, location=0, directories=0, status=0, copyhistory=0, menubar=0, scrollbars=1, resizable=1");
}

function demandeInvit(id)
{
	var w=480;
	var h=480;
	var x=(screen.width-w)/2;
	var y=(screen.height-h)/2;
	window.open("./?p=dateInvitation&date="+id, "", "top="+y+", left="+x+", width="+w+", height="+h+", toolbar=0, location=0, directories=0, status=0, copyhistory=0, menubar=0, scrollbars=1, resizable=1");
}

function openWindow(obj, forceNew)
{
	if(forceNew)
		window.open(obj.href, '', 'toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
	else
		window.open(obj.href);
	return false;
}

function openWindowUrl(url)
{
	window.open(url, '', 'toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
}

function openPopup(obj, width, height)
{
	window.open(obj.href,'','top='+((screen.height-height)/2)+',left='+((screen.width-width)/2)+',width='+width+',height='+height+',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no');
	return false;
}

function openPopupUrl(url, width, height)
{
	window.open(url,'','top='+((screen.height-height)/2)+',left='+((screen.width-width)/2)+',width='+width+',height='+height+',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no');
	return false;
}

function openPopupResize(obj, width, height)
{
	window.open(obj.href,'','top='+((screen.height-height)/2)+',left='+((screen.width-width)/2)+',width='+width+',height='+height+',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes');
	return false;
}

function openPopupResizeUrl(url, width, height)
{
	window.open(url,'','top='+((screen.height-height)/2)+',left='+((screen.width-width)/2)+',width='+width+',height='+height+',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes');
	return false;
}

function openPopupScroll(obj, width, height)
{
	window.open(obj.href,'','top='+((screen.height-height)/2)+',left='+((screen.width-width)/2)+',width='+width+',height='+height+',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes');
	return false;
}

function openPopupScrollUrl(url, width, height)
{
	window.open(url,'','top='+((screen.height-height)/2)+',left='+((screen.width-width)/2)+',width='+width+',height='+height+',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes');
	return false;
}

