//beg@kognito.de, info@kognito.de

/****************************************************************************   
DHTML library from DHTMLCentral.com
*   Copyright (C) 2001 Thomas Brattli 2001
*   This script was released at DHTMLCentral.com
*   Visit for more great scripts!
*   This may be used and changed freely as long as this msg is intact!
*   We will also appreciate any links you could give us.
*
*   Made by Thomas Brattli 2001
***************************************************************************/
//Smaller Version for Envirocheck 20011016


//Lib objects  ********************
function lib_obj(obj,nest){ 
  if(!bw.bw) return lib_message('Old browser')
  nest=(!nest) ? "":'document.'+nest+'.'
  this.evnt=bw.dom? document.getElementById(obj):
    bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document.layers." +obj):0;	
  if(!this.evnt) return lib_message('The layer does not exist ('+obj+')' 
    +'- \nIf your using Netscape please check the nesting of your tags!');
  this.css=bw.dom||bw.ie4?this.evnt.style:this.evnt; 
  this.ref=bw.dom||bw.ie4?document:this.css.document;
  this.obj = obj + "Object"; eval(this.obj + "=this");
  return this
}

//Showing object ************
lib_obj.prototype.showIt = function(){this.css.visibility="visible"};

//Hiding object **********
lib_obj.prototype.hideIt = function(){this.css.visibility="hidden"};

//Add from kognito
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
if (bw.ns4){
	onresize = netscapeResizeFix;
}

////////////////////////////// NetscapeStylesheets Bug ////////////////////////////////
// store window size for Netscape resize fix

if(!window.saveInnerWidth){
     window.onresize = netscapeResizeFix;
     window.saveInnerWidth = window.innerWidth;
     window.saveInnerHeight = window.innerHeight;
    }
    
function netscapeResizeFix(){
	if(bw.ns4){
		if (saveInnerWidth != window.innerWidth || saveInnerHeight != window.innerHeight)
		{
			location.reload();
			saveInnerWidth = window.innerWidth;
			saveInnerHeight = window.innerHeight;			
		}
	}
}


//preload
function initImages()
{
	args_images_II = initImages.arguments;

	for (var i = 0; i < args_images_II.length; i++)
	{
		eval (args_images_II[i][0] + '= new Image();')
		eval (args_images_II[i][0] + '.src = "' + args_images_II[i][1] + '";');
	}
}

function showImages(){
	args_images_SI = showImages.arguments;
	eval ('document.images["' + args_images_SI[0] + '"].src = ' + args_images_SI[1] + '.src;');
}

