window.status='Le site du Grand Gourou';


// ** Log script
// ** get referrer, screen Widht, Hight, colorDepth

f='' + escape(document.referrer);
w=screen.width;
h=screen.height;
v=navigator.appName;
if (v != 'Netscape') {c=screen.colorDepth;}
else {c=screen.pixelDepth;}
info='?jsres=' + w + 'x' + h +'&jscolord=' + c + '&jsref=' + f;



// ** bug fix for netscape ver 4
// ** reloads the window if Nav4 resized

function MM_reloadPage(init) {  
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);



// ** Shared function for opening a pop up window
// ** undefined properties

// for outside site use: 
// onclick="popWin(this.href,'popupwin','790','500','center','yes','no','no','no','no','yes','yes')

// for custum sized window use:
// onclick="popWin(this.href,'popupwin','530','500','center','no','no','no','no','no','no','no');return false" onfocus="this.blur()">description</a>

function popWin(url,popname,w,h,pos,scrl,loc,dir,sts,mb,tbr,rsz){
	if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
	if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
	else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scrl+',location='+loc+',directories='+dir+',status='+sts+',menubar='+mb+',toolbar='+tbr+',resizable='+rsz+'';
	win=window.open(url,popname,settings);
}


// ** Shared function for opening a pop up window
// ** predefined properties
// Use:  onMouseOver="(window.status='Le site du Grand Gourou');return true" onclick="NewWindow(this.href,'chatroom','400','300','no','center');return false"

function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);
}
