/* III DOM MODELS -ANDREAS BESTER
 1.The World Wide Web Consortium standard model.
    Netscape 6 (Mozilla),
    Internet Explorer 5  (MAC),
    Internet Explorer 5.X(PC),
    Opera all implement  or purport to implement WWC DOM. 
 2.The Internet Explorer model. 4.X (PC & MAC)
 3.The Netscape Navigator model. NS 4.0X (PC), 4.X(PC)
								   NS 4.X (MAC)	  
 0. Others 	
 [Andreas Bester 1/5/01]
*/
function browserDetect(){ 
var agt=navigator.userAgent.toLowerCase();
var ver=navigator.appVersion.toLowerCase();
this.wwc=(document.getElementById?1:(document.all?2:(document.layers?3:0))); 
this.isMac=(ver.indexOf("mac") != -1 );
this.ns6=(document.getElementById && (parseInt(ver) >= 5) ); 
this.ie=(agt.indexOf("msie") !=-1);
//this.opera5 =(agt.indexOf("opera") !=-1);
}
browser = new browserDetect();

function rollOver(parentLayRef,layRef,imgRef,srcRef) {

if (browser.wwc ==3){
	if ( ((layRef==null)|| (layRef=='')) && ( (parentLayRef==null)|| (parentLayRef=='')  ) ){ 
			if (this.document[imgRef]){ document[imgRef].src = srcRef }
	}
	else { 
		
	if( this.document.layers[parentLayRef] &&  this.document.layers[parentLayRef].document.layers[layRef] && this.document.layers[parentLayRef].document.layers[layRef].document.images[imgRef]){
		document.layers[parentLayRef].document.layers[layRef].document.images[imgRef].src = srcRef;  
		
	}else if (this.document.layers[layRef] && this.document.layers[layRef].document.images[imgRef] ) {
		document.layers[layRef].document.images[imgRef].src = srcRef;
	
	}
	}

}else if (browser.wwc == 2){ if(this.document.images[imgRef]) {document.images[imgRef].src = srcRef;}
}else {if (this.document.getElementById(imgRef)){ document.getElementById(imgRef).src = srcRef; } }
}

function openWin(url,winName,width,height,scroll){
var top=(screen.height-height)/2;
var left=(screen.width-width)/2;
var winProp ="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+scroll+",resizable=no,copyhistory=yes,width="+width +",height="+ height+",top=" + top + ",left=" + left;
var aWindow;       
	aWindow=window.open(url,winName,winProp);
	aWindow.focus();
	if (!aWindow.opener) aWindow.opener = self;
}