function BrowserDetect() {
   var ua=navigator.userAgent.toLowerCase();
   // browser name
   this.isGecko= (ua.indexOf('gecko') != -1 && ua.indexOf('safari')==-1);
   this.isMozilla= (this.isGecko && ua.indexOf('gecko/') + 14==ua.length);
   this.isNS=((this.isGecko) ? (ua.indexOf('netscape') != -1) : ((ua.indexOf('mozilla') != -1) && (ua.indexOf('spoofer')==-1) && (ua.indexOf('compatible')==-1) && (ua.indexOf('opera')==-1) && (ua.indexOf('webtv')==-1) && (ua.indexOf('hotjava')==-1)));
   this.isIE=((ua.indexOf('msie') != -1) && (ua.indexOf('opera')==-1) && (ua.indexOf('webtv')==-1));
   this.isSafari=(ua.indexOf('safari') != - 1);
   this.isOpera=(ua.indexOf('opera') != -1);
   this.isKonqueror=(ua.indexOf('konqueror') != -1 && !this.isSafari);
   this.isIcab=(ua.indexOf('icab') != -1);
   this.isAol=(ua.indexOf('aol') != -1);
   // spoofing and compatible browsers
   this.isIECompatible=((ua.indexOf('msie') != -1) && !this.isIE);
   this.isNSCompatible=((ua.indexOf('mozilla') != -1) && !this.isNS && !this.isMozilla);
   this.versionMinor=parseFloat(navigator.appVersion); // browser version
   // correct version number
   if (this.isNS && this.isGecko) {this.versionMinor=parseFloat( ua.substring( ua.lastIndexOf('/') + 1 ));}
   else if (this.isIE && this.versionMinor >= 4) {this.versionMinor=parseFloat( ua.substring( ua.indexOf('msie ') + 5 ));}
   else if (this.isMozilla) {this.versionMinor=parseFloat( ua.substring( ua.indexOf('rv:') + 3 ));}
   else if (this.isSafari) {this.versionMinor=parseFloat( ua.substring( ua.lastIndexOf('/') + 1 ));}
   else if (this.isOpera) {if (ua.indexOf('opera/') != -1) {this.versionMinor=parseFloat( ua.substring( ua.indexOf('opera/') + 6 ));}else {this.versionMinor=parseFloat( ua.substring( ua.indexOf('opera ') + 6 )); }}
   else if (this.isKonqueror) {this.versionMinor=parseFloat( ua.substring( ua.indexOf('konqueror/') + 10 )); }
   else if (this.isIcab) {if (ua.indexOf('icab/') != -1) {this.versionMinor=parseFloat( ua.substring( ua.indexOf('icab/') + 6 ));}else {this.versionMinor=parseFloat( ua.substring( ua.indexOf('icab ') + 6 ));}}
   this.versionMajor=parseInt(this.versionMinor);
   this.geckoVersion=((this.isGecko) ? ua.substring((ua.lastIndexOf('gecko/') + 6), (ua.lastIndexOf('gecko/') + 14)) : -1 );
   // dom support
   this.isDOM1=(document.getElementById);
   this.isDOM2Event=(document.addEventListener && document.removeEventListener);
   // css compatibility mode
   this.mode=document.compatMode ? document.compatMode : 'BackCompat';
   // platform
   this.isWin=(ua.indexOf('win') != -1);
   this.isWin32=(this.isWin && ( ua.indexOf('95') != -1||ua.indexOf('98') != -1||ua.indexOf('nt') != -1||ua.indexOf('win32') != -1||ua.indexOf('32bit') != -1||ua.indexOf('xp') != -1));
   this.isMac=(ua.indexOf('mac') != -1);
   this.isUnix=(ua.indexOf('unix') != -1||ua.indexOf('sunos') != -1||ua.indexOf('bsd') != -1||ua.indexOf('x11') != -1);
   this.isLinux=(ua.indexOf('linux') != -1);
}
var browser=new BrowserDetect();

function MM_findObj(n, d) { //v4.01
	var p,i,x,myMM_FindObj;  
	if(!d){d=document;} 
	if((p=n.indexOf("?"))>0&&parent.frames.length){
		d=parent.frames[n.substring(p+1)].document; 
		n=n.substring(0,p);
	}
	if(!(x=d[n])&&d.all){x=d.all[n];} 
	for (i=0;!x&&i<d.forms.length;i++){x=d.forms[i][n];}
	for(i=0;!x&&d.layers&&i<d.layers.length;i++){x=MM_findObj(n,d.layers[i].document);}
	if(!x && d.getElementById){x=d.getElementById(n);}
	return x;
}
function MM_changeProp(objName,x,theProp,theValue){
	var obj=MM_findObj(objName);
	if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
		if (theValue == true || theValue == false){eval("obj."+theProp+"="+theValue); }else{ eval("obj."+theProp+"='"+theValue+"'");}
	}
}
function MM_HideH1(vOldH1, vNewH1){
	var myDispString;
	MM_changeProp('H1_' + vOldH1,'','style.display','none','DIV');
	MM_changeProp('H1_' + vNewH1,'','style.display','block','DIV');
	document.idxH1.oldH1.value=vNewH1;
}
function UpdTocOfPage(nbreHeadToc){for (var j=1; j<nbreHeadToc+1; j++) {SetTocTopOfPage(j);}}
function browser_check(){
	this.ver=navigator.appVersion;
	this.dom=document.getElementById?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie4mac=this.ie4 && navigator.userAgent.indexOf("Mac")>-1
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.all=(this.ie6||this.ie5 || this.ie4 || this.ns4 || this.ns5) && !this.ie4mac;
	this.IE=(this.ie6||this.ie5 || this.ie4);
	this.NS=(this.ns4 || this.ns5);
	return this;
}
/*********************
***Popup functions ***
*********************/
function createPopup(url, h, w){
	self.name='';var winl=(screen.width-w)/2;var wint=(screen.height-h)/2;
	var popUp=window.open (url, 'WinTag', 'toolbar=yes,directories=no,menubar=yes,scrollbars=yes,resizable=yes,top='+wint+',left='+winl+',width='+w+',location=yes,height='+h+'');
	if(popUp != null){popUp.focus();}
}
function openWindow(url,w,h,tb,stb,l,mb,sb,rs,x,y){
	var t=(document.layers)? ',screenX='+x+',screenY='+y: ',left='+x+',top='+y;
	tb=(tb)?'yes':'no'; stb=(stb)?'yes':'no'; l=(l)?'yes':'no'; mb=(mb)?'yes':'no'; sb=(sb)?'yes':'no'; rs=(rs)?'yes':'no';
	var nw=window.open(url, 'newWin'+new Date().getTime(), 'scrollbars='+sb+',width='+w+',height='+h+',toolbar='+tb+',status='+stb+',menubar='+mb+',links='+l+',location=yes,resizable='+rs+t);
	if(nw != null){nw.focus();}
}
function openWindowC(url,w,h,tb,stb,l,mb,sb,rs){	
	var w1=480, h1=340;
	if (document.all || document.layers){w1=screen.availWidth; h1=screen.availHeight;}
	var popW=w, popH=h;	
	var x=(w1-popW)/2, y=(h1-popH)/2;
	var t=(document.layers)? ',screenX='+x+',screenY='+y: ',left='+x+',top='+y; 
	tb=(tb)?'yes':'no'; stb=(stb)?'yes':'no'; l=(l)?'yes':'no'; mb=(mb)?'yes':'no'; sb=(sb)?'yes':'no'; rs=(rs)?'yes':'no';
	var x=window.open(url, 'newWin'+new Date().getTime(), 'scrollbars='+sb+',width='+w+',height='+h+',toolbar='+tb+',status='+stb+',menubar='+mb+',links='+l+',location=yes,resizable='+rs+t);
	if(x != null){x.focus();}
}
function openPopup(url){openWindowC(url,800,450,0,0,0,1,1,1);}
function openNew(url){openWindowC(url,800,450,1,1,0,1,1,1);}
function openPdfPopup(url){openPopup("/cms/idc_cgi_isapi.dll?IdcService=GET_FILE&dDocName=" + url + "&RevisionSelectionMethod=latestReleased");}
function openFilePopup(url){openPopup("/cms/idc_cgi_isapi.dll?IdcService=GET_FILE&dDocName=" + url + "&RevisionSelectionMethod=latestReleased&allowInterrupt=1");}
function openNewsPopup(url){openWindow(url,540,460,0,1,0,1,1,1,100,20);}
function openDocNewsPopup(url){openNewsPopup("/cms/idc_cgi_isapi.dll?IdcService=GET_DYNAMIC_CONVERSIONPAGE&dDocName=" + url);}
function openPdfNewsPopup(url){openNewsPopup("/cms/idc_cgi_isapi.dll?IdcService=GET_PDF&dDocName=" + url);}
function openFileNewsPopup(url){openNewsPopup("/cms/idc_cgi_isapi.dll?IdcService=GET_FILE&dDocName=" + url + "&RevisionSelectionMethod=latestReleased&allowInterrupt=1");}
function exitSite(url,newWin,name){
	var wtac=name;
	if(wtac != null && wtac != "") {WT.ac=wtac;dcsVar();dcsMeta();dcsTag();}
	if(newWin!=null && newWin == 1){openNew(url);}else{document.location.replace(url);}
}
function openWin(url,w,h) {
	var winl=(screen.width - w) / 2;
	var wint=(screen.height - h) / 2;
	window.open(url, '_blank', 'menubar=0,location=0,scrollbars=1,resizable=1,status=0,width='+w+',height='+h+',top='+wint+',location=yes,left='+winl); 
}
function openWT(url,newWin,name,flash){
	var wtac = name;
	if(wtac != null && wtac != "" && typeof(WT) != "undefined") {
		WT.ac=wtac;
		dcsVar();
		dcsMeta();
		dcsTag();
	}
	if((flash == null || flash != 1) && url != null && url != "" ){if(newWin!=null && newWin == 1){openNew(url);}else{document.location.replace(url);}}
}
function openWinWT(url,name,w,h){
	var wtac = name;
	var dcsuri = DCS.dcsuri;
	dcsuri = dcsuri.substring(0,dcsuri.lastIndexOf("/")) + '/exitsite.html';
	if(wtac != null && wtac != "" && typeof(WT) != "undefined") {dcsMultiTrack('WT.ac',wtac,'DCS.dcsuri',dcsuri);}

	if(url != null && url != "" ) {
		var win;
		var top = 50, left=90, mw=220, mh=300;
		var param = "toolbar=yes,menubar=yes,status=yes,location=yes,resizable=yes,scrollbars=yes" ;
		if(window.screen.width == 1024) { top=25; left=50; mw=100; mh=200;}
		if(window.screen.width < 1024) { top=5; left=10; mw=30; mh=120;}
		if(window.screen.width > 1024 && window.screen.width < 1280) { top=50; left=50; mw=100; mh=250;}
		if (w == null){w = window.screen.width - mw;}
		if (h == null){h = window.screen.height - mh;}
		param += ",top="+top;
		param += ",left="+left;
		param += ",width=" +  w;
		param += ",height=" + h ;
		win=window.open('', name, param);
		win.location.href=url;
	}
}
var pImg=new Array();
function dcsCreateImg(dcsSrc){
var pIndex=0;
	if (document.images){
		pImg[pIndex]=new Image();
		pImg[pIndex].src=dcsSrc;
		pIndex++;
	}
}