var ns4 = (document.layers);
	var ns6 = false
	if ((navigator.appName=="Netscape") && (navigator.appVersion.substring(0,1)>=5)){
		document.all = document.getElementsByTagName('div');
		ns6 = true
		}
	document.ie =  ((!ns4) && (!ns6))	
	var opera = false;
	if (navigator.appName=="Opera"){
		document.all = document.getElementsByTagName('div');
		opera = true;
		}
		
	var mac= (navigator.appVersion.indexOf("Mac") != -1);
	
	var add1 = (mac) ? '_mc':'_pc';
	var add2 = (ns4) ? '_ns':'_ie';
	if (ns6) add2 = '_ns6';
	if (opera) add2 = '_opr';
	var hm = (document.thispage == 'homepage') ? '_home':'';

	// remove the double-slash here to make it work on the 'dev' site
	//document.docroot = '/dev/';

	//remove the double slash here to make it work on the live site
	//document.docroot = '/';
//Olaf
document.docroot = '';

	//remove the double slash here to make it work on your local machine
	//document.docroot = 'file:///C:/acm_web/localdev/';

	txt = (document.docroot + 'style' + hm + add1 + add2);
	//alert(txt + '.css');
	document.open();
	document.write('<LINK REL=STYLESHEET TYPE="text/css" HREF="' + txt + '.css">');
	document.close();
	if (document.thispage == 'launcher'){
		txt = (document.docroot + 'style_home' + add1 + add2);
		document.open();
		document.write('<LINK REL=STYLESHEET TYPE="text/css" HREF="' + txt + '.css">');
		document.close();	
		}		
var lastmain = 0;
var lastzub = 0;
document.offset = -160

function rol(isOn,main,zub){
	if (main ==1){
		if (isOn){
			layr = (ns4) ? document.hl : document.all.hl.style ;
			layr.left = document.offset + (160 * main) + 3;
			ofset = ((ns4) && (mac)) ? (zub - 1): 0;
			layr.top = zub * 15 - 10 + ofset;
			lastmain = main;
			lastzub = zub;
			}
		else{
			layr = (ns4) ? document.hl : document.all.hl.style;
			layr.left = -200;
			}
		}
	else if (main ==2){
		if (isOn){
			zubnum = 0;
			for (i=1;i<document.list.length;i++){
				if (document.list[i] ==zub) zubnum = i;
				}
			if (zubnum != 0){
				layr = (ns4) ? document.h3 : document.all.h3.style ;
				layr.left = document.offset + (160 * main) + 3;
				ofset = ((ns4) && (mac)) ? (zubnum - 1): 0;
				layr.top = zubnum * 15 - 10 + ofset;
				lastmain = main;
				lastzub = zubnum;
				}
			}
		else {
			layr = (ns4) ? document.h3 : document.all.h3.style;
			layr.left = -200;
			}
		}
	}
	
function rolout(){
	rol(0,lastmain,lastzub);
	}
	
function clicked(){
	
	}
	

        
function begin(what) {
		if (what !=0){
			layr = (ns4) ? document.h2 : document.all.h2.style ;
			layr.left = document.offset + (160 * 1) + 3;
			ofset = ((ns4) && (mac)) ? (what - 1): 0;
			layr.top = what * 15 - 10 + ofset;
			
			zubnum = 0;
			for (i=1;i<document.list.length;i++){
				if (document.list[i] ==document.thispage ) zubnum = i;
				}
			if (zubnum != 0){
				layr = (ns4) ? document.h4 : document.all.h4.style ;
				layr.left = document.offset + (160 * 2) + 3;
				ofset = ((ns4) && (mac)) ? (zubnum - 1): 0;
				layr.top = zubnum * 15 - 10 + ofset;
				}
			}
        }