var ie5=document.all&&document.getElementById
var ns6=document.getElementById&&!document.all

function scrollStyle(){
	cframe.document.body.style.scrollbar3dLightColor = "#CCCCCC";
	cframe.document.body.style.scrollbarDarkShadowColor = "#000000";
	cframe.document.body.style.scrollbarHighlightColor = "#FFFFFF";
	cframe.document.body.style.scrollbarShadowColor = "#999999";
	cframe.document.body.style.scrollbarTrackColor = "#666666";
	cframe.document.body.style.scrollbarArrowColor = "#000000";
	cframe.document.body.style.scrollbarFaceColor = "#CCCCCC";
}

idt=window.setTimeout("interval();",0);
	
function interval(){
	scrollStyle();
	idt=window.setTimeout("interval();",0);
}

function iecompattest(){
	return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function loadwindow(url,width,height){
	if (!ie5&&!ns6)
		window.open(url,"","width=width,height=height,scrollbars=1")
	else{
		document.getElementById("dwindow").style.display=''
		document.getElementById("dwindow").style.width=initialwidth=width+"px"
		document.getElementById("dwindow").style.height=initialheight=height+"px"
		document.getElementById("dwindow").style.left=ns6? "137px" : "136px"
		document.getElementById("dwindow").style.top=ns6? "48px" : "48px"
		document.getElementById("cframe").src=url
	}
}

function closeit(){
	document.getElementById("dwindow").style.display="none"
}

function movstar(a,time){
	movx=setInterval("mov("+a+")",time)
}

function movover(){
	clearInterval(movx)
}

function mov(a){
	scrollx=cframe.document.body.scrollLeft
	scrolly=cframe.document.body.scrollTop
	scrolly=scrolly+a
	cframe.window.scroll(scrollx,scrolly)
}

function no_error(){ 
	return true;
}
window.onerr=no_error;

var statusmsg=""

function hidestatus(){
	window.status=statusmsg
	return true
}

function hidestatus1(){
	window.status=''
	return true
}

if (document.layers){
	document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
}
document.onmouseover=hidestatus1
document.onmouseout=hidestatus1

document.write('<div id="dwindow" style="position:absolute;background-color:#000000;border-color:#000000;border-width:thin;left:0px;top:0px;display:none;z-index:9;">\
	<div id="dwindowcontent" style="height:100%">\
		<div class="ref">\
			<div class="pic21"><img src="company/faq/FAQ11.gif" border="0" style="height: 350px; width: 145px"></div>\
			<div class="pic22"><iframe id="cframe" name="cframe" style="height: 316px; width: 470px" marginheight=0 marginwidth=0 src="" noResize vspale="0" border=0 frameborder=0 framespacing=0></iframe></div>\
			<div class="pic31"><img src="company/faq/FAQ21.gif" border="0" style="height: 135px; width: 145px"></div>\
			<div class="pic32"><img src="company/faq/FAQ22.gif" border="0" style="height: 135px; width: 275px"></div>\
			<div class="pic33"><img src="company/faq/FAQ23scroll.gif" style="height: 135px; width: 100px" onMouseDown=movover();movstar(3,2) onMouseOut=movover() onMouseOver=movstar(1,20) onMouseUp=movover();movstar(1,20) style="cursor:hand"></div>\
			<div class="pic34"><img src="company/faq/FAQ24close.gif" style="height: 135px; width: 100px" onClick="closeit()" border="0" style="cursor:hand"></div>\
			<div class="pic35"><img src="company/faq/FAQ25.gif" border="0" style="height: 135px; width: 22px"></div>\
		</div>\
	</div>\
</div>')

function faqLink(x, y){
	var ns6=document.getElementById&&!document.all
	var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
	
	if(ie4){
		document.write('<div id="Layer2" style="position:absolute; left:' + x + 'px; top:' + y + 'px; z-index:9">\
					   <p><a href="javascript:loadwindow(\'http://www.speedygroup.com/company/faq/faqTextIE.htm\',640,515)">FAQ</a></p>\
					   </div>')
	}
	if(ns6){
		document.write('<p style="position:absolute; left:' + x + 'px; top:' + (y - 9) + 'px; z-index:9"><a href="javascript:loadwindow(\'http://www.speedygroup.com/company/faq/faqTextNS.htm\',640,515)">FAQ</a></p>')
	}
}
