<!--
//BROWSER SNIFF
var isIE4 = (document.all && !document.getElementById) ? true : false;
var isIE5 = (document.all && document.getElementById) ? true : false;
var isNS6 = (!document.all && document.getElementById) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
var isDHTML = (isIE5 || isNS6);
var isPc = navigator.userAgent.indexOf("Windows") != -1;
var isMac = !isPc;
var yPos = 0;

//FLASH SNIFF
var useFlash = false;

if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ) {
// Check for Flash version 5 or greater in Netscape
var plugin = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
//alert(plugin);
//alert(parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)));
if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1))>=5)
	useFlash = true;
} else if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	// Assume any Windows IE except for Windows 3.1 supports the OBJECT tag
	useFlash = true;
}


//FUNCTIONS

function swap(name,state) {
    if(thePics[name+state] && thePics[name+state].complete) {
        document.images[name].src = thePics[name+state].src;
    }
}


function preloadPics(thePics) {
	for (i=0;i<thePics.length;i++){
		thePics[thePics[i]] = new Image();
		thePics[thePics[i]].src = 'images/'+thePics[i]+'.gif';
		thePics[thePics[i]+'_on'] = new Image();
		thePics[thePics[i]+'_on'].src = 'images/'+thePics[i]+'_on.gif';
	}
}

var thePics = new Array("nav_whatwedo","nav_whoweare","nav_pfl","nav_pfs","nav_networking","nav_contact","copyright_tsc","somethumb_com");	

preloadPics(thePics);


function propPop(popURL) 
{
	var popWin;
	var popAttr = "width=1000,height=600,resizable=0,scrollbars=1,top=30,left=30,screenX=30,screenY=30";
	popWin = window.open("listings_ln.asp?staffEmail="+popURL,"propPop",popAttr);
	if (popWin.opener == null) popWin.opener = self;
	popWin.focus();
}

function propPopLN(propType) 
{
	var popWin;
	var popAttr = "width=1000,height=600,resizable=0,scrollbars=1,top=30,left=30,screenX=30,screenY=30";
	popWin = window.open("listings_ln.asp?propType="+propType,"propPop",popAttr);
	if (popWin.opener == null) popWin.opener = self;
	popWin.focus();
}

function VerifySignup() {
	form = document.contact
	if (form.Name.value == null || form.Name.value == "")
		{
		alert("Please enter your Name");
		form.Name.focus();
		return false
		} else
			
	/* check if the email address field is empty */		
	var CheckEmptyEmail = form.Email.value
		
	if (CheckEmptyEmail == null || CheckEmptyEmail == "")
		{
		alert("Please enter your Email Address");
		form.Email.focus();
		return false
		} else
		
/* The validation process determines if the email 
is less than 9 characters. If so, then it sets 
the return variable to true indicating a failed 
validation. It also adds the appropriate message 
to the existing message string. */
	if (CheckEmptyEmail != null || CheckEmptyEmail != "")
		{
		if (CheckEmptyEmail.length < 9)  {
			alert("Please enter a valid Email Address");
			form.Email.focus();
			return false;
			}
		} else
		
/* Next, we check for the existence of the @ character */
	if (CheckEmptyEmail != null || CheckEmptyEmail != "")
		{
 	    var charA = CheckEmptyEmail.indexOf("@");
		if (charA == -1)  {
			alert("Please enter a valid Email Address");
			form.Email.focus();
			return false;
			}
		} else
	
/* Once it has been determined that there is an 
@ character, the validation process checks to see if 
it is it more than two characters in from the left 
side of the string. */	
	if (CheckEmptyEmail != null || CheckEmptyEmail != "")
		{
 	    var charA = CheckEmptyEmail.indexOf("@");		
			if (charA < 2 )  {
			alert("Please enter a valid Email Address");
			form.Email.focus();
			return false;
			}
		} else

		
/* The check continues to determine if a . (period) 
exists. It begins the search from the right side of 
the string. */
	if (CheckEmptyEmail != null || CheckEmptyEmail != "")
		{
		var charP = CheckEmptyEmail.lastIndexOf(".");
		if (charP == -1)  {
			alert("Please enter a valid Email Address");
			form.Email.focus();
			return false;
			}
		} else

/* Now that we have a . (period), is it at
the proper place at the end of the string. */
	if (CheckEmptyEmail != null || CheckEmptyEmail != "")
		{
		var charP = CheckEmptyEmail.lastIndexOf(".");
		if (charP != CheckEmptyEmail.length - 3 && charP != CheckEmptyEmail.length - 4)  {
			alert("Please enter a valid Email Address");
			form.Email.focus();
			return false;
			}
		} else

/* Okay, now that we have both the @ and . (period)
characters, are they separated by at least two characters? */
	if (CheckEmptyEmail != null || CheckEmptyEmail != "")
		{
		var charP = CheckEmptyEmail.lastIndexOf(".");
			if (charP < charA + 3)  {
			alert("Please enter a valid Email Address");
			form.Email.focus();
			return false;
			}
		}

	return true;
}

//-->
