<!-- Copyright © 2002 NETural.com --> 
//*** Purpose:				Global functions
//*** Content:				- resolution= screen.width
//*** Content:				- function changeImage(imgNr, newImage) {
//*** Content:				- function showInfo(imgNr, newImage, classNew) {
//*** Content:				- function changeBg(i1, i2, color) {

//*** Created (author, date):		Petra Trunk, 03.09.2002
//*** Changes (author, date, purpose):	Martina Schrattenecker, 17.09.2002, added function changeBg, screen resolution
//*** Changes (author, date, purpose):	

var imgDirNav = "/img/nav/";
var resolution;


if (screen.width < 1024)
   	resolution= 800;
else
   	resolution= 1024;

	var is_ns4;
	is_ns4 = ((navigator.appName.indexOf("Netscape") != -1) && ((parseInt(navigator.appVersion)) == "4")) ? true : false;	
	
// preload Images	
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];}}
}

// open popup
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// change Image on mouseover/mouseout event
function changeImage(imgNr,newImage) {
	document.images[imgNr].src = imgDirNav + newImage;
}
// End

// change table background on mouseover/mouseout event
function changeBg(i1, i2, color) {
	if (document.layers){
        //window.document.layers['id' + i].bgColor = color;
		}
    else if (document.all){
        window.document.all['id' + i1].style.background = color;
        window.document.all['id' + i2].style.background = color;		
	}
}


// change table background on mouseover/mouseout event - used for teaserpages
function changeTeaserBg(i1, i2, i3, color1, i4, color2) {
	var pic_next;
	if (document.layers){}
    else if (document.all)
		pic_next= 'next'+i1	
        window.document.all['id' + i1].style.background = color1;
        window.document.all['id' + i2].style.background = color1;		
        window.document.all['id' + i3].style.background = color1;		
        window.document.all['id' + i4].style.color = color2;	
		changeImage(pic_next,'nav_next_on.gif');							
}
function changeTeaserBgBack(i1, i2, i3, color1, i4, color2) {
	var pic_next;
	if (document.layers){}
    else if (document.all)
		pic_next= 'next'+i1
        window.document.all['id' + i1].style.background = color1;
        window.document.all['id' + i2].style.background = color1;		
        window.document.all['id' + i3].style.background = color1;		
        window.document.all['id' + i4].style.color = color2;	
		changeImage(pic_next,'nav_next_off.gif');				
}
// End



// used for mouseover of icons in menu bar
function showInfo(imgNr,newImage,classNew) {
	document.images[imgNr].src = imgDir + newImage;
	//document.images[0].src = imgDir + 'test.gif';
	document.getElementById('iconsInfo').className = classNew;
}
// End

<!-- End Copyright © 2002 NETural.com --> 