//--------------- POPUP & SCREEN CONTROLS -----------------------------//
var popup;
function popup(url,name,large,haut) {
  features='width='+large+',height='+haut+',toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes';
  	if(window.screen){
		var left = (screen.width-large)/2;
		var top = (screen.height-haut)/2;
		features+=',left='+left+',top='+top;
	}
  popup = window.open(url,name,features);
}
function fullscreenmenu(url,name,large,haut) {
	var largeur = screen.width-10
	var hauteur = screen.height-55
	date_t = new Date;
	time = date_t.getTime();
	winprops = 'height='+hauteur+',width='+largeur+',top=0,left=0,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no'
	win = window.open(url, time, winprops)
	}
function popup_scroll(url,name,large,haut) {
  features='width='+large+',height='+haut+',toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes';
  	if(window.screen){
		var left = (screen.width-large)/2;
		var top = (screen.height-haut)/2;
		features+=',left='+left+',top='+top;
	}
  popup = window.open(url,name,features);
}
//function fullscreen(url,name,large,haut) {
// features='toolbar=no,location=no, menubar=no,scrollbars=no,resizable=yes,width='+screen.width+',height='+screen.height;
//  features+=',left=0,top=0';
//  popup = window.open(url,name,features);
//  popup.moveTo(0,0) ;
//}
function fullscreen (url,name,large,haut) {
	var largeur = screen.width-10
	var hauteur = screen.height-55
	date_t = new Date;
	time = date_t.getTime();
	winprops = 'height='+hauteur+',width='+largeur+',top=0,left=0,scrollbars=0,status=0,resizable'
	win = window.open(url, time, winprops)
	} 

window.moveTo(0,0);
if (document.all) 
{
window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers) 
{
if (window.outerHeight<screen.availHeight||window.outerWidth<screen.availWidth)
{
window.outerHeight = screen.availHeight;
window.outerWidth = screen.availWidth;
}
}

nereidFadeObjects = new Object(); 
nereidFadeTimers = new Object(); 
function nereidFade(object, destOp, rate, delta) { 
if (!document.all) 
return 
if (object != "[object]") { 
setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")", 0); 
return; 
} 
clearTimeout(nereidFadeTimers[object.sourceIndex]); 
diff = destOp-object.filters.alpha.opacity; 
direction = 1; 
if (object.filters.alpha.opacity > destOp) { 
direction = -1; 
} 
delta=Math.min(direction*diff,delta); 
object.filters.alpha.opacity+=direction*delta; 
if (object.filters.alpha.opacity != destOp) { 
nereidFadeObjects[object.sourceIndex]=object; 
nereidFadeTimers[object.sourceIndex]=setTimeout ("nereidFade(nereidFadeObjects["+object.sourceIndex+"], "+destOp+", "+rate+", "+delta+")", rate); 
} 
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
