//<script="javascript">

if (self.location != top.location) top.location = self.location;

img1 = new Image();
img1.src = "img/contact.png";
img2 = new Image();
img2.src = "img/win250126.png";
img3 = new Image();
img3.src = "img/win250200.png";
img4 = new Image();
img4.src = "img/win300400.png";


var ie2 = document.all?true:false;
if (!ie2) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = getMouseXY;
var objwidth=300;
var openwindow="";

function getMouseXY(e) {
if (openwindow.charAt(0)=="e") {
  if (ie2) {
    var mouX = event.clientX + document.body.scrollLeft;
    var mouY = event.clientY + document.body.scrollTop;} 
  else { var mouX = e.pageX; var mouY = e.pageY;}
  var docwidth=(ie)? iebody.clientWidth : window.innerWidth;
  var objx = docwidth/2-objwidth/2;  
  if (mouX<(objx-10) || mouX>(objx+objwidth) || mouY<90 || mouY>485) closewin(openwindow);
  }
return true
}

var ie = document.all && !window.opera;
var IEfadelength=0.3 //fade in duration for IE, in seconds

function displaywin(winid,leftx,topy){
if (openwindow) {closewin(openwindow);}
openwindow=winid;
var dom=document.getElementById
objref=(dom)? document.getElementById(winid) : document.all.winid;
var iebody = (document.compatMode=="CSS1Compat")? document.documentElement : document.body;
var scroll_top=(ie)? iebody.scrollTop : window.pageYOffset;
var docwidth=(ie)? iebody.clientWidth : window.innerWidth
objref.style.left = leftx + docwidth/2-objref.offsetWidth/2+"px"
objref.style.top = topy + scroll_top+"px"
if (objref.filters){
objref.filters[0].duration=IEfadelength
objref.filters[0].Apply()
objref.filters[0].Play()
}
objref.style.visibility="visible"
}

function closewin(winid2){
openwindow="";
var dom=document.getElementById
objref=(dom)? document.getElementById(winid2) : document.all.winid2;
objref.style.visibility="hidden";
}



iens6=document.all||document.getElementById
ns4=document.layers

var theobj
var winHeight = 60;
var rootY = 500;
var winWidth = 504;
var initH=30;
var startH=initH;
var stepH=1;
var framet=7;
var openTimer;

var bottomwin = '<a href="contactform.html" onmouseout="clearTimeout(openTimer);stopIt()"><img src="img/contact.png" width="504" height="60" alt="" border="0" align=""></a>';

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function setObj() {
	if(iens6){
	    ctop.style.visibility="hidden";
		thename = "viewer"
		theobj=document.getElementById? document.getElementById(thename):document.all.thename
		theobj.style.width=winWidth+"px"
		theobj.style.height=startH+"px"
			if(iens6&&document.all) {
				theobj.style.top=ietruebody().scrollTop+rootY+"px"
				window.status=rootY
				theobj.innerHTML = ""
				theobj.insertAdjacentHTML("BeforeEnd",bottomwin)
			}
			if(iens6&&!document.all) {
				theobj.style.top=window.pageYOffset+rootY+"px"
				theobj.innerHTML = ""
				theobj.innerHTML = bottomwin; 
			}
	}
	if(ns4){
		ctop.visibility="hidden";
		thename = "nsviewer"
		theobj = eval("document."+thename)
		theobj.moveTo(0,eval(window.pageYOffset+rootY))
		theobj.width=winWidth
		theobj.clip.width=winWidth
		theobj.document.write(bottomwin)
		theobj.document.close()
	}
    var iebody = (document.compatMode=="CSS1Compat")? document.documentElement : document.body;	
	var docwidth = (ie)? iebody.clientWidth : window.innerWidth
    theobj.style.left = docwidth/2 - theobj.offsetWidth/2 + "px";	
	viewIt();
}

function viewIt() {
	if(startH<=winHeight) {
		if(iens6) {
			theobj.style.visibility="visible"
				if(iens6&&document.all) {
					theobj.style.top=(ietruebody().scrollTop+rootY)-startH+"px"
				}
				if(iens6&&!document.all) {
					theobj.style.top=(window.pageYOffset+rootY)-startH+"px"
				}
			theobj.style.height=startH+"px"
			startH+=stepH
			openTimer=setTimeout("viewIt()",framet)
		}
		if(ns4) {
			theobj.visibility = "visible"
			theobj.moveTo(0,(eval(window.pageYOffset+rootY)-startH))
			theobj.height=startH
			theobj.clip.height=(startH)
			startH+=stepH
			openTimer=setTimeout("viewIt()",framet)
		}
	}else{
		clearTimeout(openTimer)
	}
}

function stopIt() {
	if(iens6) {
		theobj.innerHTML = ""
		theobj.style.visibility="hidden"
	    ctop.style.visibility="visible";
		startH=initH
	}
	if(ns4) {
		theobj.document.write("")
		theobj.document.close()
		theobj.visibility="hidden"
		theobj.width=0
		theobj.height=0
		theobj.clip.width=0
		theobj.clip.height=0
	    ctop.visibility="visible";		
		startH=initH
	}
}





var openpara="f2";

function disppara(paraid) {
if (openpara==paraid) return;
if (openpara) hidepara(openpara);
openpara=paraid;
objref=document.getElementById(paraid);
objref2=document.getElementById(paraid+"b");
objref2.innerHTML="";
if (objref.filters) {objref.filters[0].Apply(); objref.filters[0].Play();}
if (objref.style.display=="block") objref.style.display="none"; else objref.style.display="block";
}

function hidepara(paraid) {
openpara="";
objref=document.getElementById(paraid);
objref2=document.getElementById(paraid+"b");
objref2.innerHTML="<span style='font-weight:300;'>&nbsp; <i>- click for more</i></span>";
if (objref.filters) {objref.filters[0].Apply(); objref.filters[0].Play();}
objref.style.display="none";
}

