// JavaScript Document

function styleLienActif(couleur,deco){
	docloc = document.location + "";
	end = docloc.lastIndexOf("?");
	if(end == -1){
		url = docloc;
	}
	else{
		url = docloc.substr(0,end);
	}
	//alert(url.substr(60)+ " " + end ); 
	for(i = 0; i < document.links.length; i++){
		cLink = document.links[i];
		if(cLink == url){
			//alert("found");
			//cLink.focus();
			if(couleur != null)cLink.style.color = couleur;
			if(deco != null)cLink.style.textDecoration = deco;			
		}
	}
}

function popUp(url,nom,l,h,x,y){
	params = "HEIGHT=" + h + ",WIDTH=" + l + ",screenX=" + x + ",screenY=" + y + ",scrollbars=yes,resizable=yes,status=yes";
	win = window.open(url,nom,params); 
	win.moveTo(x,y);
	return win;
}

function fitPic(mLeft,mTop){
	NS = (navigator.appName=="Netscape")?true:false;
	iWidth = (NS)?window.innerWidth:document.body.clientWidth;
	iHeight = (NS)?window.innerHeight:document.body.clientHeight;
	iWidth = document.images[0].width - iWidth + mLeft;
	iHeight = document.images[0].height - iHeight + mTop;
	window.resizeBy(iWidth, iHeight-1);
	self.focus();
}

