// JavaScript Document

function checkBrowser()
{	
this.ver=navigator.appVersion;
this.dom=document.getElementById?1:0;
this.opera=(this.ver.indexOf("Opera")>-1 && this.dom)?1:0;
isMSIE=(this.ver.indexOf("MSIE ")>-1)?true:false;
this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0;
this.ie6=((this.ver.indexOf("MSIE 6")>-1 || this.ie7) && this.dom)?1:0;
this.ie55=((this.ver.indexOf("MSIE 5.5")>-1 || this.ie6) && this.dom)?1:0;
this.ie5=((this.ver.indexOf("MSIE 5")>-1 || this.ie5 || this.ie6) && this.dom)?1:0;
this.ff=((this.ver.indexOf("5.0")>-1) && (navigator.userAgent.indexOf("Firefox")>-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.ie4plus=(this.ie7 || this.ie6 || this.ie5 || this.ie4);
this.ie5plus=(this.ie7 || this.ie6 || this.ie5);
this.bw=(this.ie6 || this.ie7 || this.ie5 || this.ie4 || this.ns4 || this.ns5 || this.ff);
if (!this.opera)
	{
	pos=navigator.userAgent.indexOf('Mozilla/');
	if (pos==0)
		{
		achar=navigator.userAgent.charCodeAt(8);
		if (parseInt(achar)>=5) okForWeb2=true;
		if ((!okForWeb2) && (isMSIE))
			{
			pos=navigator.userAgent.indexOf('MSIE ')+5;
			if (pos>-1)
				{
				achar=navigator.userAgent.charCodeAt(pos);
				if (parseInt(achar)>=6) okForWeb2=true;
				}
			}
		}
	}
return this;
}

function getObjectById(ID) 
{
if (bw.dom)
	return document.getElementById(ID);
	else if (bw.ie4)
			return document.all(ID);
			else if (bw.ns4) return eval('document.'+ID);
return 0;
}

function getObjectOfParentById(ID) 
{
if (bw.dom)
	return parent.document.getElementById(ID);
	else if (bw.ie4)
			return parent.document.all(ID);
			else if (bw.ns4) return eval('parent.document.'+ID);
}

function adjustAffJour(ID,H)
{
if (obj=getObjectOfParentById(ID)) obj.height=H;
}

bw=new checkBrowser();
