function BrowserDetect(){	var ua = navigator.userAgent.toLowerCase(); 	this.isGecko       = (ua.indexOf('gecko') != -1 && ua.indexOf('safari') == -1);	this.isSafari      = (ua.indexOf('safari') != - 1);	this.isOpera       = (ua.indexOf('opera') != -1); 	this.isIE          = (ua.indexOf('msie') != -1 && !this.isOpera && (ua.indexOf('webtv') == -1) ); 	this.isMozilla     = (this.isGecko && ua.indexOf('gecko/') + 14 == ua.length);	this.isNS          = ( (this.isGecko) ? (ua.indexOf('netscape') != -1) : ( (ua.indexOf('mozilla') != -1) && !this.isOpera && !this.isSafari && (ua.indexOf('spoofer') == -1) && (ua.indexOf('compatible') == -1) && (ua.indexOf('webtv') == -1) && (ua.indexOf('hotjava') == -1) ) );	this.isFirefox = (ua.indexOf('firefox') != - 1);		// browser version	this.versionMinor = parseFloat(navigator.appVersion); 		// correct version number	if (this.isGecko && !this.isMozilla) {		this.versionMinor = parseFloat( ua.substring( ua.indexOf('/', ua.indexOf('gecko/') + 6) + 1 ) );	}	else if (this.isMozilla) {		this.versionMinor = parseFloat( ua.substring( ua.indexOf('rv:') + 3 ) );	}	else if (this.isIE && this.versionMinor >= 4) {		this.versionMinor = parseFloat( ua.substring( ua.indexOf('msie ') + 5 ) );	}	else if (this.isSafari) {		this.versionMinor = parseFloat( ua.substring( ua.lastIndexOf('safari/') + 7 ) );	}	else if (this.isOpera) {		this.versionMinor = parseFloat( ua.substring( ua.indexOf('opera') + 6 ) );	}		this.versionMajor = parseInt(this.versionMinor); 	}var browser = new BrowserDetect();var useFilter = browser.isIE;function nextImage(){	img1 = images[current_image];	current_image ++;	if (current_image >= 2)		current_image = 0;	img2 = images[current_image];	o1 = document.getElementById('anim1');	o2 = document.getElementById('anim2');	if (useFilter)	{		o1.style.filter = "fade(duration:2)";//		o1.style.filter.Apply();		o1.style.background = "url('"+img2+"')";//		o1.style.filter.Play();		window.setTimeout("nextImage()", 5000);	}	else	{		o1.style.background = "url('"+img1+"')";		o2.style.background = "url('"+img2+"')";		fadeIn('anim2', 0);	}}function fadeIn(id, opacity){	o = document.getElementById(id);	if (opacity <= 100)	{		setOpacity(o, opacity);		opacity += 4;		window.setTimeout("fadeIn('"+id+"',"+opacity+")", 50);	}	else		window.setTimeout("nextImage()", 5000);}function setOpacity(obj, opacity) {	opacity = (opacity == 100)?99.999:opacity;	obj.style.KHTMLOpacity = opacity/100; // Safari<1.2, Konqueror	obj.style.MozOpacity = opacity/100; // Older Mozilla and Firefox	obj.style.opacity = opacity/100; // Safari 1.2, newer Firefox and Mozilla, CSS3}
