var isPc = (navigator.userAgent.indexOf("Windows") != -1); 
var isMac = (navigator.userAgent.indexOf("Mac") != -1); 
var isNS = (navigator.appName == "Netscape"); 
var isNSMac = ((navigator.appName == "Netscape") && (navigator.userAgent.indexOf("Mac") != -1)); 
var isNSPc = ((navigator.appName == "Netscape") && (navigator.userAgent.indexOf("Windows") != -1)); 
var isNS4 = ((navigator.appName == "Netscape") && (navigator.userAgent.indexOf("Gecko") == -1)); 
var isNS4Mac = ((navigator.appName == "Netscape") && (navigator.userAgent.indexOf("Mac") != -1) && (navigator.userAgent.indexOf("Gecko") == -1)); 
var isNS4Pc = ((navigator.appName == "Netscape") && (navigator.userAgent.indexOf("Win") != -1) && (navigator.userAgent.indexOf("Gecko") == -1)); 
var isNS6 = ((navigator.appName == "Netscape") && (navigator.userAgent.indexOf("Gecko") != -1)); 
var isNS6Mac = ((navigator.appName == "Netscape") && (navigator.userAgent.indexOf("Mac") != -1) && (navigator.userAgent.indexOf("Gecko") != -1)); 
var isNS6Pc = ((navigator.appName == "Netscape") && (navigator.userAgent.indexOf("Windows") != -1) && (navigator.userAgent.indexOf("Gecko") != -1)); 
var isIE = ((navigator.userAgent.indexOf("MSIE") != -1) && (navigator.userAgent.indexOf("Opera") == -1)); 
var isIEMac = ((navigator.userAgent.indexOf("MSIE") != -1) && (navigator.userAgent.indexOf("Mac") != -1) && (navigator.userAgent.indexOf("Opera") == -1)); 
var isIEPc = ((navigator.userAgent.indexOf("MSIE") != -1) && (navigator.userAgent.indexOf("Windows") != -1) && (navigator.userAgent.indexOf("Opera") == -1)); 
var isIE5 = ((navigator.userAgent.indexOf("MSIE 5.") != -1) && (navigator.userAgent.indexOf("Opera") == -1)); 
var isIE5Mac = ((navigator.userAgent.indexOf("MSIE 5.") != -1) && (navigator.userAgent.indexOf("Mac") != -1) && (navigator.userAgent.indexOf("Opera") == -1)); 
var isIE5Pc = ((navigator.userAgent.indexOf("MSIE 5.0") != -1) && (navigator.userAgent.indexOf("Windows") != -1) && (navigator.userAgent.indexOf("Opera") == -1)); 
var isIE55Pc = ((navigator.userAgent.indexOf("MSIE 5.5") != -1) && (navigator.userAgent.indexOf("Windows") != -1) && (navigator.userAgent.indexOf("Opera") == -1)); 
var isIE6 = ((navigator.userAgent.indexOf("MSIE 6.") != -1) && (navigator.userAgent.indexOf("Opera") == -1)); 
var isIE6Mac = ((navigator.userAgent.indexOf("MSIE 6.") != -1) && (navigator.userAgent.indexOf("Mac") != -1) && (navigator.userAgent.indexOf("Opera") == -1)); 
var isIE6Pc = ((navigator.userAgent.indexOf("MSIE 6.") != -1) && (navigator.userAgent.indexOf("Windows") != -1) && (navigator.userAgent.indexOf("Opera") == -1)); 
var isIE6Pc2K = ((navigator.userAgent.indexOf("MSIE 6.") != -1) && (navigator.userAgent.indexOf("Windows NT 5.0") != -1) && (navigator.userAgent.indexOf("Opera") == -1)); 
var isIE6PcXP = ((navigator.userAgent.indexOf("MSIE 6.") != -1) && (navigator.userAgent.indexOf("Windows NT 5.1") != -1) && (navigator.userAgent.indexOf("Opera") == -1)); 
var isOpera = (navigator.userAgent.indexOf("Opera") != -1); 
var isOpera5 = (navigator.userAgent.indexOf("Opera 5.") != -1); 
var isOpera5Mac = ((navigator.userAgent.indexOf("Opera 5.") != -1) && (navigator.userAgent.indexOf("Mac") != -1)); 
var isOpera5Pc = ((navigator.userAgent.indexOf("Opera 5.") != -1) && (navigator.userAgent.indexOf("Windows") != -1)); 
var isOpera6Pc = ((navigator.userAgent.indexOf("Opera 6.") != -1) && (navigator.userAgent.indexOf("Windows") != -1)); 

if (isPc){
if (isNS4Pc || isNS6Pc || isIEPc && !isIE5Pc && !isIE55Pc && !isIE6 && !isIE6Pc && !isIE6Pc2K && !isIE6PcXP) {

	floatX=7;
	floatY=10;
	layerwidth=530;
	layerheight=470;
	halign="left";
	valign="bottom";
	delayspeed=3;

function adjust() {

	if (isNS) {

		if (lastX==-1 || delayspeed==0) {
			lastX=window.pageXOffset + floatX;
			lastY=window.pageYOffset + floatY;
		} else {
			dx=Math.abs(window.pageXOffset+floatX-lastX);
			dy=Math.abs(window.pageYOffset+floatY-lastY);
			d=Math.sqrt(dx*dx+dy*dy);
			c=Math.round(d/10);

			if (window.pageXOffset+floatX>lastX) {lastX=lastX+delayspeed+c;}
			if (window.pageXOffset+floatX<lastX) {lastX=lastX-delayspeed-c;}
			if (window.pageYOffset+floatY>lastY) {lastY=lastY+delayspeed+c;}
			if (window.pageYOffset+floatY<lastY) {lastY=lastY-delayspeed-c;}
		}
	
		if (isNS4) {
			document.layers['floatlayer'].pageX = lastX;
			document.layers['floatlayer'].pageY = lastY;
		} else if (isNS6) {
			document.getElementById('floatlayer').style.left=lastX;
			document.getElementById('floatlayer').style.top=lastY;
		}
	
	} else if (isIE) {

		if (lastX==-1 || delayspeed==0) {
			lastX=document.body.scrollLeft + floatX;
			lastY=document.body.scrollTop + floatY;
		} else {
			dx=Math.abs(document.body.scrollLeft+floatX-lastX);
			dy=Math.abs(document.body.scrollTop+floatY-lastY);
			d=Math.sqrt(dx*dx+dy*dy);
			c=Math.round(d/10);

			if (document.body.scrollLeft+floatX>lastX) {lastX=lastX+delayspeed+c;}
			if (document.body.scrollLeft+floatX<lastX) {lastX=lastX-delayspeed-c;}
			if (document.body.scrollTop+floatY>lastY) {lastY=lastY+delayspeed+c;}
			if (document.body.scrollTop+floatY<lastY) {lastY=lastY-delayspeed-c;}
		}
	
		document.all['floatlayer'].style.posLeft = lastX;
		document.all['floatlayer'].style.posTop = lastY;

	}

setTimeout('adjust()',20);

}

function define() {

	if (isNS) { 
		layerwidth=104;
		layerheight=55;

		floatX=ifloatX;
		floatY=window.innerHeight-ifloatY-layerheight;
	} 
	
	if (isIE) {
		floatX=ifloatX;
		floatY=document.body.offsetHeight-ifloatY-layerheight;
	}

}

if (isNS4) {

	function popup() {
		window.open('nn_quick_browser/qb.html','Popup','scrollbars=yes,resizable=no,width=550,height=400')
	}
	document.write('<LAYER NAME="floatlayer" LEFT="'+floatX+'" TOP="'+floatY+'">');
	document.write('<a href="javascript:popup()"><img src="pageimages/qb_netscape.gif" border="0"></a>');
	document.write('</LAYER>');
} else if (isIE || isNS6) {

	document.write('<div id="floatlayer" style="position:absolute; z-index: 1000; left:'+floatX+'; top:'+floatY+';">');
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="530" height="470" id="test_xml" align="">');
	document.write('	<param name="movie" value="flash/qb.swf">');
	document.write('	<param name="quality" value="high">');
	document.write('	<param name="bgcolor" value="#ffffff">');
	document.write('	<param name="wmode" value="transparent">');
	document.write('	<param name="menu" value="false">');
	document.write('	<embed src="flash/_xml.swf" quality="high" bgcolor="#ffffff" width="530" height="470" name="test_xml" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write('</object></div>');

}

ifloatX=floatX;
ifloatY=floatY;
define();
window.onresize=define;
lastX=-1;
lastY=-1;
adjust();

} else if (isIE5Pc || isIE55Pc || isIE6 || isIE6Pc || isIE6Pc2K || isIE6PcXP) {

	document.write('<div id="navButton" style="position:absolute; z-index: 0";>');
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="530" height="470" id="test_xml" align="">');
	document.write('	<param name="movie" value="flash/qb.swf">');
	document.write('	<param name="quality" value="high">');
	document.write('	<param name="wmode" value="transparent">');
	document.write('	<param name="menu" value="false">');
	document.write('	<embed src="flash/_xml.swf" quality="high" bgcolor="#ffffff" width="530" height="470" name="test_xml" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write('</object></div>');

markW = 530;      // pixels wide
markH = 470;      // pixels high
markX = 7;        // pixels left
markY = 10;       // pixels down
markRefresh = 25; // milliseconds

if (!document.all) document.all = document;
if (!document.all.navButton.style) document.all.navButton.style = document.all.navButton;

wMark = document.all.navButton.style;
wMark.width = markW;
wMark.height = markH;
navDOM = window.innerHeight;
 
	function setVals() {
	barW = 0;
	barH = 0;

		if (navDOM) {
			if (document.height > innerHeight) barW = 20;
			if (document.width > innerWidth) barH = 20;
		} else {
			innerWidth = document.body.clientWidth;
			innerHeight = document.body.clientHeight;
		}

	posX = markX;
	posY = ((innerHeight - markH)-barH) - markY;
	}

	function wRefresh() {
		wMark.left = posX + (navDOM?pageXOffset:document.body.scrollLeft);
		wMark.top = posY + (navDOM?pageYOffset:document.body.scrollTop);
	}

	function markMe() {
		setVals();
		window.onresize=setVals;
		markID = setInterval ("wRefresh()",markRefresh);
	}

markMe();

}

function flashup() {
	if (navigator.appVersion.indexOf('MSIE 6.0') < 0) {	
		document.all.floatlayer.style.zIndex=1000;
	} else {
		document.all.navButton.style.zIndex=1000;
	}
}

function flashdown() {
	if (navigator.appVersion.indexOf('MSIE 6.0') < 0) {	
		document.all.floatlayer.style.zIndex=1000;
	} else {
		document.all.navButton.style.zIndex=1000;
	}
}

}