
<!--

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function MM_setTextOfLayer(objName,x,newText) { //v3.0
  if ((obj=MM_findObj(objName))!=null) with (obj)
    if (navigator.appName=='Netscape') {document.write(unescape(newText)); document.close();}
    else innerHTML = unescape(newText);
}


function MM_setTextOfLayer(objName,x,newText) { //v3.0
  if ((obj=MM_findObj(objName))!=null) with (obj)
    if (navigator.appName=='Netscape') {document.write(unescape(newText)); document.close();}
    else innerHTML = unescape(newText);
}


function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  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 && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


/*Changes to lower case to simplify check.*/
	var agt=navigator.userAgent.toLowerCase();	
	/* Check if browser is Netscape6*/
	var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
                && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
	var is_version = parseInt(navigator.appVersion);
	var is_nav6 = (is_nav && (is_version == 5));


function MFXshAllExcept(){
//made by jjİİee jjooee@chello.nl m.milicevic,

x=0;
mfxargs=MFXshAllExcept.arguments;
SorH1= mfxargs[0] ? "visible":"hidden";
SorH2= mfxargs[0] ? "hidden":"visible";
exceptLayer=new Array();
if(document.layers){
for (i=0; i<document.layers.length; i++){
a=0;do{a++;
if(!("document.layers[\'"+document.layers[i].name+"\']"==mfxargs[a])){
exceptLayer[x]=document.layers[i]
x++;}}
while (a<mfxargs.length-1)}
for(i=0; i<exceptLayer.length;i++){
exceptLayer[i].visibility=SorH1;}
for(i=1; i<mfxargs.length;i++){
eval(mfxargs[i]).visibility=SorH2;}}
if (document.all){
var allDIV = document.all.tags("div");
for (var i=0; i<allDIV.length; i++){
a=0;do{a++;
eval("mfxargs[a]=mfxargs[a].replace(/.layers/gi, '.all')");
eval(mfxargs[a]+".style");
if(!(allDIV[i].style==mfxargs[a])){
exceptLayer[x]=allDIV[i].style
x++;}}
while (a<mfxargs.length-1)}
for(i=0; i<exceptLayer.length;i++){
exceptLayer[i].visibility=SorH1;}
for(i=1; i<mfxargs.length;i++){
eval(mfxargs[i] +".style.visibility = SorH2");}}

}



function MFXshAllExcept2(ar2){
	lev4Item="submenylev4";
	ar3=5;
/*	ar1 is no longer used.
	ar2 is the sub layer number to be shown.
	ar3 is the number of sublayers in the left menu.*/

	x=0;
	var subLayer=new Array();
	mfxargs=new Array();
	/* Makes the right layer string to be shown.*/
	q="document.layers[\'sub"+ar2+"'\]";
	
	mfxargs[0]=0;
	mfxargs[1]=q;


	exceptLayer=new Array();
	
	//var is_nav6 = NN6Check();
	if (is_nav6==true){
		/* All layers on the page*/
		var divs = document.getElementsByTagName("div");	
		if (divs!=null) {		
			for (i=0; i<divs.length; i++){
				a=1;
				var stopper=mfxargs[a];			
				var stop1=stopper.indexOf("[")+2;
				var stop2=stopper.indexOf("]")-1;
				/* The layer id to be shown*/
				var divName=stopper.slice(stop1,stop2);
				/* All layer id:s on the page*/					
				var x = (divs[i].id);
				/* Only concider the layers containing "sub". That is only those in the left menu*/
				if (x.indexOf("sub") > -1){
					/* Hide all layers*/			
					divs[i].style.visibility='hidden';
					if (x==divName){				
						exceptLayer[i]= divs[i];
						/* Show the right layer*/			
						exceptLayer[i].style.visibility='visible';		
					}
				}						
			}
		}
	}
	/* if NOT NN6*/
	if (is_nav6!=true){
		/* The sublayer to be shown.*/
		var q="sub"+ar2;
		
		/* If Netscape or Explorer use different code.*/
		var vis = (document.layers) ? ".visibility" : ".style.visibility";
		var doc = (document.layers) ? "document.sub" : "sub";
		/* Loop all left menu sublayers*/
		for(i=0;i<ar3;i++){
			y=i+1;
			subLayer[i]="sub"+y;
			var divName=mfxargs[1];
			/* Hide them.*/
			eval(doc+y+vis+"='hidden'");
			if (q==subLayer[i]){
				/* Show the right one*/
				if (document.layers){
				eval(doc+ar2+vis+"='show'");
				}else{				
				eval(doc+ar2+vis+"='visible'");
				}
			}
		}
	}
}

function showhideAllSub(c){

	var v = (document.layers) ? ".visibility" : ".style.visibility";
	var y = (document.layers) ? ".name" : ".id";
	var arr = (document.layers) ? document.layers : (document.all) ? document.all.tags("DIV") : document.getElementsByTagName("DIV");	
	for(var i=0;i<arr.length;i++){
		id=eval("arr[i]"+y);
		if (id.indexOf("sub")>-1){
			eval("arr["+i+"]"+v+"='"+c+"'");
		}
	}
}

	function setFocusOff() {
		this.menufocus = false;
		setTimeout("focusCheck()", 500);
	}
	
	function setFocusOn() {
		this.menufocus = true;
	}
	
	function focusCheck() {
		if(!this.menufocus) {
			this.showhideAllSub('hidden');
		}
	}

// begin absolutely positioned scrollable area object scripts 
// Extension developed by David G. Miles 
// Original Scrollable Area code developed by Thomas Brattli 
function verifyCompatibleBrowser(){ 
    this.ver=navigator.appVersion 
    this.dom=document.getElementById?1:0 
    this.ie5=(this.ver.indexOf("MSIE 5")>-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.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5) 
    return this 
} 
bw=new verifyCompatibleBrowser() 
 
 
var speed=50 
 
var loop, timer
 
function ConstructObject(obj,nest){ 
    nest=(!nest) ? '':'document.'+nest+'.' 
    this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0; 
    this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0; 
    this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight 
    this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight 
	
    this.up=MoveAreaUp;
	this.up=MoveAreaUp;
	this.down=MoveAreaDown; 
    this.MoveArea=MoveArea; this.x; this.y; 
    this.obj = obj + "Object" 
    eval(this.obj + "=this") 
    return this 
} 
function MoveArea(x,y){ 
    this.x=x;this.y=y 
    this.css.left=this.x 
    this.css.top=this.y 
} 
 
function MoveAreaDown(move,area){ 
	if(area==1){
		if(this.y>-this.scrollHeight+objContainer.clipHeight){ 
		this.MoveArea(0,this.y-move) 
		if(loop) setTimeout(this.obj+".down("+move+","+area+")",speed) 
		} 
	}
	if(area==2){
		if(this.y>-this.scrollHeight+objContainer2.clipHeight){ 
		this.MoveArea(0,this.y-move) 
		if(loop) setTimeout(this.obj+".down("+move+","+area+")",speed) 
		} 
	}		
} 

function MoveAreaUp(move,area){ 
	if(this.y<0){ 
    this.MoveArea(0,this.y-move) 
    if(loop) setTimeout(this.obj+".up("+move+")",speed) 
	} 
} 
 
function PerformScroll(speed,area){
	loop=true; 
	if(initialised){ 
		if (area == 1){
			if(speed>0) objScroller.down(speed,area) 
			else objScroller.up(speed,area) 
		}
		if (area == 2){
			if(speed>0) objScroller2.down(speed,area) 
			else objScroller2.up(speed,area) 
		}		
	} 

} 

function CeaseScroll(){ 
    loop=false 
    if(timer) clearTimeout(timer) 
} 
var initialised; 

function InitialiseScrollableArea(ant){ 

    objContainer=new ConstructObject('divContainer') 
 
    objScroller=new ConstructObject('divContent','divContainer') 
    objScroller.MoveArea(0,0) 
    objContainer.css.visibility='visible' 
	if(ant==2){
		objContainer2=new ConstructObject('div2Container')
		objScroller2=new ConstructObject('div2Content','div2Container')
		objScroller2.MoveArea(0,0)
		objContainer2.css.visibility='visible' 
	}
    initialised=true; 
} 
// end absolutely positioned scrollable area object scripts 


//-->
