﻿<!-- Hide script from old browsers
var activeSub=0;
var SubNum=0;

//Define global variables
var timerID = null;
var timerOn = false;
var timecount = 1000;
var what = null;
var newbrowser = true;
var check = false;

//var is_opera = (agt.indexOf("opera") != -1);
//var is_opera2 = (agt.indexOf("opera 2") != -1 || agt.indexOf("opera/2") != -1);
//var is_opera3 = (agt.indexOf("opera 3") != -1 || agt.indexOf("opera/3") != -1);
//var is_opera4 = (agt.indexOf("opera 4") != -1 || agt.indexOf("opera/4") != -1);
//var is_opera5 = (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1);
//var is_opera6 = (agt.indexOf("opera 6") != -1 || agt.indexOf("opera/6") != -1); // new 020128- abk
//var is_opera7 = (agt.indexOf("opera 7") != -1 || agt.indexOf("opera/7") != -1); // new 021205- dmr
//var is_opera5up = (is_opera && !is_opera2 && !is_opera3 && !is_opera4);
//var is_opera6up = (is_opera && !is_opera2 && !is_opera3 && !is_opera4 && !is_opera5); // new020128
//var is_opera7up = (is_opera && !is_opera2 && !is_opera3 && !is_opera4 && !is_opera5 && !is_opera6); // new021205

function proposal_popup(url_pop,name,etc) {

var lef = (window.screen.width-350)/2;
var to = (window.screen.height-500)/2;

Yaldex=window.open(url_pop,'Request Proposal','width=350,height=500,left='+lef+',top='+to);
Yaldex.focus();
}

function init(){


if (document.layers) {
    layerRef="document.layers";
    styleSwitch="";
    visibleVar="show";
	screenSize = window.innerWidth;
	what ="ns4";
  }else if(document.all){
    layerRef="document.all";
    styleSwitch=".style";
    visibleVar="visible";
	screenSize = document.body.clientWidth + 18;
	what ="ie";
  }else if(document.getElementById){
    layerRef="document.getElementByID";
    styleSwitch=".style";
    visibleVar="visible";
	what="moz";
	
  }else{
	what="none";
	newbrowser = false;
  }
  check = true;
}

function print_about_us_rows(){
	document.write('sdgsrg');
	
}

function go_to(loc){
	location="http://www.hrsolutionsinc.com/index.cfm";
	
}

function showLayer(layerName){
	if(check){
		if (what =="none"){
			
			//document.layers.style.top="202px";
			return;
			}
    	else if (what == "moz"){
			//document.getElementById(layerName).style.width="133";
			//document.getElementById(layerName).style.top="202px";
			//document.getElementById(layerName).style.left="" + document.getElementById(layerName).style.left-2 + "";
			document.getElementById(layerName).style.visibility="visible";
			}
		else{
          eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
          }
 }
	else {// alert ("Please wait for the page to finish loading.");
		return;}
}
function hideLayer(layerName){
	if(check){
		if (what =="none"){
			return;
			}
		else if (what == "moz"){
			document.getElementById(layerName).style.visibility="hidden";
			}
		else{
          eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
		}

	}
	else {// alert ("Please wait for the page to finish loading.");
		return;}
}
function hideAll(){
	hideLayer('consult_tag_lay');
	hideLayer('survey_tag_lay');
	hideLayer('career_tag_lay');
	hideLayer('about_us_lay');
}
function startTime() {
    if (timerOn == false) {
        timerID=setTimeout( "hideAll()" , timecount);
        timerOn = true;
    }
}
function stopTime() {
    if (timerOn) {
        clearTimeout(timerID);
        timerID = null;
        timerOn = false;
    }
}
function onLoad(){
	init();
}

function highlight_off(tableCellRef) {
	tableCellRef.style.backgroundColor = '#000033';
}

function highlight( tableCellRef) {
	tableCellRef.style.backgroundColor = '#999999';
}
// End hiding script from old browsers -->


