function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}





function imprimer(){
bw=new checkBrowser()
if ( bw.ns4 || bw.ns5 )
{
window.print();
}
else
{ 
	window.print();
}
}
function ouvrePopUpan (adr,windowName) {
x=screen.width;
y=screen.height;
largx=540;
posx=x-largx;
hauty=420;
param=eval("'top=22,left="+posx+",width="+largx+",height="+hauty+",menubar=0, status=yes, locationbar=0,toolbar=0,scrollbars=1,resizable=yes'");
window.open(adr,windowName,param);
}
function ouvrePopUp (windowName) {
x=screen.width;
y=screen.height;
largx=420;
posx=x-largx;
hauty=560;
param=eval("'width="+largx+", height="+hauty+",top=22,left="+posx+",menubar=0, status=yes, locationbar=0, toolbar=0, scrollbars=1, resizable=yes'");
window.open('',windowName,param);
}
function ouvrePopUpa (adr,windowName) {
x=screen.width;
y=screen.height;
largx=420;
posx=x-largx;
hauty=560;
param=eval("'top=22,left="+posx+",width="+largx+",height="+hauty+",menubar=0, status=yes, locationbar=0,toolbar=0,scrollbars=1,resizable=yes'");
window.open(adr,windowName,param);
}  

function chargementlounge(nomFenetre) {

alert("ici");
x=screen.width;
y=screen.height;
largx=550;
posx=x-largx;
hauty=560;
/*
if (window.name != 'popup') {
this.name=nomFenetre;
param=eval("'width="+x+", height="+y+", top=0, left=0,location=1,menubar=1,toolbar=1, titlebar=1,resizable=yes'");
window.open('front?controller=Affiche','Cofinoga',param);
}*/
window.resizeTo(760,800);
// this.moveTo(posx,22);
this.focus();
}
function chargementMedium(nomFenetre) {
x=screen.width;
y=screen.height;
largx=465;
posx=x-457;
hauty=560;
/*if (window.name != 'popup') {
this.name=nomFenetre;
param=eval("'width="+x+", height="+y+", top=0, left=0,location=1,menubar=1,toolbar=1, titlebar=1,resizable=yes'");
window.open('front?controller=Affiche','Cofinoga',param);
}*/

this.resizeTo(largx,hauty);
this.moveTo(posx,22);
this.focus();
}
function chargement(nomFenetre) {
x=screen.width;
y=screen.height;
largx=480;
posx=x-497;
hauty=560;
/*if (window.name != 'popup') {
this.name=nomFenetre;
param=eval("'width="+x+", height="+y+", top=0, left=0,location=1,menubar=1,toolbar=1, titlebar=1,resizable=yes'");
window.open('front?controller=Affiche','Cofinoga',param);
}*/

this.resizeTo(largx,hauty);
this.moveTo(posx,22);
this.focus();
} 

function chargeJeu(windowName) {
	x=screen.width/2;
	y=screen.height/2;
	largx=474;
	posx=x-largx;
	hauty=546;  
	
	this.resizeTo(largx,hauty);
	this.moveTo(posx,22);
	this.focus();
}

 
function chargementbis(nomFenetre) {
x=screen.width;
y=screen.height;
largx=420;
posx=x-457;
hauty=600;
/*if (window.name != 'popup') {
this.name=nomFenetre;
param=eval("'width="+x+", height="+y+", top=0, left=0,location=1,menubar=1,toolbar=1, titlebar=1,resizable=yes'");
window.open('front?controller=Affiche','Cofinoga',param);
}*/

this.resizeTo(largx,hauty);
this.moveTo(posx,22);
this.focus();
}
function chargement_nonhome(nomFenetre) {
x=screen.width;
y=screen.height;
largx=420;
posx=x-largx;
hauty=560;
this.resizeTo(largx,hauty);
this.moveTo(posx,22);
this.focus();
}
function chargementoffrenormal(nomFenetre) {
x=screen.width;
y=screen.height;
largx=420;
posx=x-largx;
hauty=550;
/*
if (window.name != 'popup') {
this.name=nomFenetre;
param=eval("'width="+x+", height="+y+", top=0, left=0,location=1,menubar=1,toolbar=1, titlebar=1,resizable=yes'");
window.open('front?controller=Affiche','Cofinoga',param);
}
*/
this.resizeTo(largx,hauty);
this.moveTo(posx,22);
this.focus();
}
function chargementoffrelarge(nomFenetre) {
x=screen.width;
y=screen.height;
largx=550;
posx=x-largx;
hauty=560;
/*
if (window.name != 'popup') {
this.name=nomFenetre;
param=eval("'width="+x+", height="+y+", top=0, left=0,location=1,menubar=1,toolbar=1, titlebar=1,resizable=yes'");
window.open('front?controller=Affiche','Cofinoga',param);
}*/
window.resizeTo(550,560);
this.moveTo(posx,22);
this.focus();
}
function chargementoffrenat(nomFenetre) {
x=screen.width;
y=screen.height;
largx=457;
posx=x-largx;
hauty=560;
/*
if (window.name != 'popup') {
this.name=nomFenetre;
param=eval("'width="+x+", height="+y+", top=0, left=0,location=1,menubar=1,toolbar=1, titlebar=1,resizable=yes'");
window.open('front?controller=Affiche','Cofinoga',param);
}*/
window.resizeTo(457,560);
this.moveTo(posx,22);
this.focus();
}
function chargementoffrelargehaut(nomFenetre) {
x=screen.width;
y=screen.height;
largx=550;
posx=x-largx;
hauty=560;
/*
if (window.name != 'popup') {
this.name=nomFenetre;
param=eval("'width="+x+", height="+y+", top=0, left=0,location=1,menubar=1,toolbar=1, titlebar=1,resizable=yes'");
window.open('front?controller=Affiche','Cofinoga',param);
}*/
window.resizeTo(550,685);
this.moveTo(posx,22);
this.focus();
}
function chargementoffrelarge_nonhome(nomFenetre) {
x=screen.width;
y=screen.height;
largx=550;
posx=x-largx;
hauty=560;
window.resizeTo(550,560);
this.moveTo(posx,22);
this.focus();
}
function chargementmedium(nomFenetre) {
x=screen.width;
y=screen.height;
largx=400;
posx=x-largx;
hauty=560;
window.resizeTo(480,585);
this.moveTo(10,22);
this.focus();
}
function chargementMappy(nomFenetre) {
x=screen.width;
y=screen.height;
largx=660;
posx=x-largx;
hauty=560;
window.resizeTo(660,560);
this.moveTo(posx,22);
this.focus();
}

function chargementVisite(nomFenetre) {
x=screen.width;
y=screen.height;
largx=510;
posx=x-largx;
hauty=580;
window.resizeTo(510,580);
this.moveTo(posx,22);
this.focus();
}

function chargementlarge(nomFenetre) {
x=screen.width;
y=screen.height;
largx=550;
posx=x-largx;
hauty=550;
/*
if (window.name != 'popup') {
this.name=nomFenetre;
param=eval("'width="+x+", height="+y+", top=0, left=0,location=1,menubar=1,toolbar=1, titlebar=1,resizable=yes'");
window.open('front?controller=Affiche','Cofinoga',param);
}*/
this.resizeTo(largx,hauty);
this.moveTo(posx,22);
this.focus();
}
function chargementgauche(nomFenetre) {
x=screen.width;
y=screen.height;
largx=420;
posx=x-800;
hauty=550;
this.resizeTo(largx,hauty);
this.moveTo(posx,22);
this.focus();
/*
if (window.name != 'popup') {
this.name=nomFenetre;
param=eval("'width="+x+", height="+y+", top=0, left=0,location=1,menubar=1,toolbar=1, titlebar=1,resizable=yes'");
window.open('front?controller=Affiche','Cofinoga',param);
}*/
}

function chargementcarteCOL(nomFenetre) {
x=screen.width;
y=screen.height;
largx=475;
posx=x-largx;
hauty=560;
window.resizeTo(largx,hauty);
this.moveTo(posx,22);
this.focus();
}

function traceur()
{
	query = document.location.search;
	
}


function navBar(id)
 {    
 	//bw=new checkBrowser()
 	//if( (bw.ns4 || bw.ns5))
 	//{
      //parent.NavBar.location.replace('front?controller=BarNav&id=' + id);
      //parent.NavBar.location.replace('jsp/navigation/accueil.jsp?id=' + id);
	//} 
    /*else
    {
    	parent.document.all.navigation1.src='front?controller=BarNav&id=' + id;  	
    }*/
 }