/***********************************************
* Bottom slide tooltip- by Ron Grafe (mailto:grafer@REMOVETHIScolumbus.rr.com)
* Website URL: http://www.gdevresources.com
* Script modified by and available at Dynamic Drive: http://www.dynamicdrive.com/
* script modified by Timothy Sink (mailto:tim@squaredtechnologies.com)
***********************************************/

//SET TOOLTIP DESCRIPTIONS BELOW
//Extend or contract array as needed
var description=new Array()

description[0]="<div style='position:absolute;bottom:1%;top:1%;left:1%;right:1%;overflow:hidden;border:0px solid blue;background:#4B7935;'></div>"

description[0]+="<div style='position:absolute;width:60%;height:79%;top:10px;left:10px;overflow:hidden;border:1px solid blue'><iframe src ='Technologies-menu2.html' style='position:absolute;width:99%;height:99%;bottom:1%;top:1%;left:1px;right:1px;overflow:hidden;border:0px solid blue'></iframe></div>"

description[0]+="<img NAME='Pic1' SRC='SquaredTechnologiesInc.jpg'  ALT='T&#178' style='position:absolute;width:22%;top:2%;height:15%;right:7%;overflow:hidden;border:1px solid blue;'>"

description[0]+="<div style='position:absolute;width:36%;right:4px;top:20%;overflow:hidden;border:0px solid blue;' class='menulink2' class=&{ns4class}; ><a href='https://www.squaredtechnologies.com/ssl/technologiesmanger.html' target='MainPage' class='menulink2' class=&{ns4class}; >Computer</a></div>"

description[0]+="<div style='position:absolute;width:36%;right:4px;top:30%;overflow:hidden;border:0px solid blue;' class='menulink2' class=&{ns4class}; ><a href='http://www.squaredtechnologies.com/TechnologiesMainPage3.html' target='MainPage' class='menulink2' class=&{ns4class}; >Desktop</a></div>"

description[0]+="<div style='position:absolute;width:36%;right:4px;bottom:20%;overflow:hidden;border:0px solid blue;' class='menulink' class=&{ns4class}; ><a href='RemoteAssistance.html' target='MainPage' class='menulink' class=&{ns4class}; >Help and Support</a></div>"

description[0]+="<div style='position:absolute;width:33%;bottom:-10%;height:24%;right:2%;overflow:hidden;border:0px solid blue;'><a target='MainPage' href='http://cert.startcom.org/'><img src='http://www.squaredtechnologies.com/secured.gif' alt='Free SSL Secured By StartCom' title='Free SSL Secured By StartCom' ></a></div>"

description[0]+="<div style='position:absolute;width:60%;top:80%;height:17%;left:10px;overflow:hidden;border:1px solid blue;'><iframe src ='Technologies-search.html' style='position:absolute;width:98%;height:98%;bottom:2%;top:2%;left:1px;right:1px;background:#53829d;overflow:hidden;border:0px solid blue'></div>"





description[1]=""

description[2]=''

//Do not edit below here

iens6=document.all||document.getElementById
ns4=document.layers

//<!--GLOBAL VARIABLES-->
var thename
var theobj=null;
var thetext
var winHeight
var winPositionFromTop
var winWidth
var startH=10
var openTimer

var vbottom=0
<!--END GLOBAL VARIABLES-->

//<!--GLOBAL FUNCTIONS-->

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function changeImg(imgid,imgsrc,ctooltext)
{
	if(imgid!=null && imgsrc!=null)document.getElementById(imgid).src = imgsrc;

	if(ctooltext!=null)
	{
	
	}
}

function searchTechnologies()
{
	parent.MainPage.location="http://www.squaredtechnologies.com/store/TSearch.asp?txtSearchFor=" + document.getElementById('sbi').value ;
}

function setObj(text,theswitch,inwidth,inheight) {
	thetext=text

	winHeight=screen.height/2
	if(theswitch=="autoclose" && (theobj==null || startH<=winHeight))
	{	return;  }

	
	if(theobj!=null)
	{
		stopIt(null);
		return;
	}
	
	if(iens6){
		thename = "viewer"
		theobj=document.getElementById? document.getElementById(thename):document.all.thename

		winHeight=100
			if(iens6&&document.all) {
				winPositionFromTop=!window.opera? ietruebody().clientHeight : document.body.clientHeight  - vbottom
				winWidth=(ietruebody().clientWidth-ietruebody().leftMargin)
			}
			if(iens6&&!document.all) {
				winPositionFromTop=window.innerHeight  - vbottom
				winWidth=(window.innerWidth-(ietruebody().offsetLeft+30))
			}
			if(theswitch=="override") {
				winWidth=inwidth
				winHeight=inheight
			}
			if(theswitch=="calc") {
				winWidth=screen.width/3
				winHeight=screen.height/2
			}

		theobj.style.width=winWidth+"px"
		theobj.style.height=startH+"px"
			if(iens6&&document.all) {
//				theobj.style.top=ietruebody().scrollTop+winPositionFromTop+"px"
				theobj.style.bottom=vbottom;
				//window.status=winPositionFromTop
				theobj.innerHTML = ""
				theobj.insertAdjacentHTML("BeforeEnd","<table cellspacing=0 width="+winWidth+" height="+winHeight+" border=1><tr><td width=100% valign=top><font type='times' size='2' style='color:black;font-weight:normal'>"+thetext+"</font></td></tr></table>")
			}
			if(iens6&&!document.all) {
//				theobj.style.top=window.pageYOffset+winPositionFromTop+"px"
				theobj.style.bottom=vbottom;
				theobj.innerHTML = ""
				theobj.innerHTML="<table cellspacing=0 width="+winWidth+" height="+winHeight+" border=1><tr><td width=100% valign=top><font type='times' size='2' style='color:black;font-weight:normal'>"+thetext+"</font></td></tr></table>"
			}
	}
	if(ns4){
		thename = "nsviewer"
		theobj = eval("document."+thename)
		winPositionFromTop=window.innerHeight  - vbottom
		winWidth=window.innerWidth
		winHeight=100
			if(theswitch=="override") {
				winWidth=inwidth
				winHeight=inheight
			}
			if(theswitch=="calc") {
				winWidth=screen.width/3
				winHeight=screen.height/2
			}
			
		theobj.moveTo(0,eval(window.pageYOffset+winPositionFromTop))
		theobj.width=winWidth
		theobj.clip.width=winWidth
		theobj.document.write("<table cellspacing=0 width="+winWidth+" height="+winHeight+" border=1><tr><td width=100% valign=top><font type='times' size='2' style='color:black;font-weight:normal'>"+thetext+"</font></td></tr></table>")
		theobj.document.close()
	}
	viewIt()
}

function viewIt() {
	if(theobj!=null && startH<=winHeight) {
		if(iens6) {
			theobj.style.visibility="visible"
				if(iens6&&document.all) {
					//theobj.style.top=(ietruebody().scrollTop+winPositionFromTop)-startH+"px"
					theobj.style.bottom=vbottom
				}
				if(iens6&&!document.all) {
//					theobj.style.top=(window.pageYOffset+winPositionFromTop)-startH+"px"
					theobj.style.bottom=vbottom
				}
			theobj.style.height=startH+"px"
			startH+=10
			openTimer=setTimeout("viewIt()",10)
		}
		if(ns4) {
			theobj.visibility = "visible"
			theobj.moveTo(0,(eval(window.pageYOffset+winPositionFromTop)-startH))
			theobj.height=startH
			theobj.clip.height=(startH)
			startH+=10
			openTimer=setTimeout("viewIt()",10)
		}
	}else{
		clearTimeout(openTimer)
	}
//	pageScroll();
}

function stopIt(imgid) {
    
    if(theobj==null) return;
    
	if(iens6) {
		theobj.innerHTML = ""
		theobj.style.visibility="hidden"
		startH=2
	}
	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
		startH=2
	}
	theobj=null;
}



