function main() {
	initlayers();
	preLoadImg("bt0_on","bt0_off","bt1_on","bt2_on","bt3_on","bt4_on","bt5_on","bt6_on","bt7_on","bt8_on","bt1_off","bt2_off","bt3_off","bt4_off","bt5_off","bt6_off","bt7_off","bt8_off");
	pX = getanx("dhtmlPos");
	pY = 153;
	
	lang.setxy(pX,pY-50);
	lang.show();
	lang.bt = "0";
	lang.onmouseover = n1over;
	lang.onmouseout = n1out;			

	pY = pY+37;
	
	liens.setxy(pX,pY-50);
	liens.show();
	liens.bt = "8";
	liens.onmouseover = n1over;
	liens.onmouseout = n1out;		
	
	for(x=1;x<8;x++) {
		
		div = eval("m" + x);
		sdiv = eval("s" + x);
		div.setxy(pX,pY);
		div.bt = x;
		pY = pY+div.getheight();
		div.show();
		if(x==section) {
			eval("document.n_bt" + x).src = self["sbt"+x+"_on"].src;	
			sdiv.setxy(pX,pY);
			pY = pY+sdiv.getheight();
			line = eval("line"+x);
			line.setxy(pX,pY);
			pY = pY+4;
			sdiv.show();
			line.show();
		} else {
			div.onmouseover = n1over;
			div.onmouseout = n1out;		
			}
		}
	
	}

function fix() { 
	bVer=''; 
	bName = navigator.appName.toLowerCase(); 
	bVer = navigator.appVersion.substring(0,3); 
	if(bName == "netscape" && bVer< '4.08') { 
		return false; 
	} else { 
		document.location = document.location; 
		}
	}		
	
var iPath = "images/";
var iExt = 'gif';
function preLoadImg() {
	if(document.images) {
		var argLen = arguments.length;
	    for(i=0; i<argLen; i++) {
			var arg = arguments[i];
			self["s" + arg] = new Image();
			self["s" + arg].src = iPath + arg + '.' + iExt;

			}
		}
	}	
	
function n1over() {
	eval("document.n_bt" + this.bt).src = self["sbt" + this.bt+"_on"].src;	
	} 
	
function n1out() {
	eval("document.n_bt" + this.bt).src = self["sbt" + this.bt+"_off"].src;	
	} 	
	
	
	function over(id)
		{
		if(document.layers || (document.getElementById && !document.all)) eval("document.content.document." + id + ".src = \"images/" + id + "on.gif\"");
           else eval("document." + id + ".src = \"images/" + id + "on.gif\"");
		}
		
	function out(id)
		{
		if(document.layers || (document.getElementById && !document.all)) eval("document.content.document." + id + ".src = \"images/" + id + "off.gif\"");
           else eval("document." + id + ".src = \"images/" + id + "off.gif\"");
		}
		
// Generic Popup window Function
// Set URL, Window Name, ...
function popWin(url,w,h,scroll,tools,name,center) {
	var str = "height=" + h + ",innerHeight=" + h;
	str += ",width=" + w + ",innerWidth=" + w;
	if(!center) var center = false;
	if(!scroll) scroll = 0;
	if(!tools) tools = 0;
	if(!name) name = "pop";

	if((window.screen) && (center)) {
		var ah = screen.availHeight - 30;
		var aw = screen.availWidth - 10;

		var xc = (aw - w) / 2;
		var yc = (ah - h) / 2;

		str += ",left=" + xc + ",screenX=" + xc;
		str += ",top=" + yc + ",screenY=" + yc;
		}
		
	pop = window.open(url,name,'toolbar=' + tools + ',location=0,directories=0,status=0,menubar=0,scrollbars=' + scroll + ',resizable=1,' + str).focus();
	}					
	
function langswitch(lang,otherlang){
	url = window.location.href;
	str = url.replace('/'+lang+'/', '/'+otherlang+'/');
	window.location.href = str;
	return false;
}
