

function reset_input(strId,strText)
{
	strId="#" + strId;
	//alert(strId);
	objTxt = $(strId);
	if(objTxt.val()==strText)
	{
		objTxt.val("");
	}
}

function openList(objThis)
{
	//alert(objThis.style.color);
	if(objThis.style.color== "#000" || objThis.style.color=="rgb(0, 0, 0)")
	{
		//if it's open, then jsut close it
		objThis.style.backgroundImage="url(/img/double_arrow_bullet.gif)";
		objThis.style.color="#008bc0";
		objDiv = objThis.parentNode.getElementsByTagName("div")[0];
		objDiv.style.display="none";
	}
	else
	{
		//do the reset
		iii=0;
		strLink="manual_link_" + iii;
		objLink=document.getElementById(strLink);
		while (objLink && iii<100)
		{
			//alert(strLink + " - " + objLink.id);
			objLink.style.backgroundImage="url(/img/double_arrow_bullet.gif)";
			objLink.style.color="#008bc0";
			objDiv = objLink.parentNode.getElementsByTagName("div")[0];
			objDiv.style.display="none";
			//iterate
			iii++;
			strLink="manual_link_" + iii;
			objLink=document.getElementById(strLink);
		}
		//alert(objThis.id);
		objThis.style.backgroundImage="url(/img/blue_arrow_bullet.gif)";
		objThis.style.color="#000";
		objDiv = objThis.parentNode.getElementsByTagName("div")[0];
		objDiv.style.display="block";
		//alert(objDiv);
		//alert();
	}
}




//newsletter signup

//page load error fix
str="";


/*
$(document).ready(function()
{
	$("#letter_form").submit(function(){
	// 'this' refers to the current submitted form
	var str = $(this).serialize();
	$.ajax({type: "POST",url: "signup_process.php",data: str,
	success: function(msg){
		$("#letter_note").ajaxComplete(function(event, request, settings)
		{
			if(msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
			{
				result = '<div class="notification_ok">Your message has been sent. Thank you!</div>';
				$("#letter_fields").hide();
			}
			else
			{
				result = msg;
			}
			$(this).html(result);
		});
	}
	});
	return false;
});
});
*/





/*
	$.ajax({type: "POST",url: "signup_process.php",data: str,
	success: function(msg){
		$("#letter_note").ajaxComplete(function(event, request, settings)
		{
			if(msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
			{
				result = '<div class="notification_ok">Your message has been sent. Thank you!</div>';
				$("#letter_fields").hide();
			}
			else
			{
				result = msg;
			}
			$(this).html(result);
		});
	}
	});
*/

function signup_input()
{
	strEmail = $("#txtNewsletter").val();

	$.ajax({
	type: "POST",
	url: "signup_process.asp",
	data: "email=" + strEmail,
	success: function(msg)
	{
		if(msg=='OK')
		{
			$("#txtNewsletter").hide();
			$("#btn_subscribe").hide();
			$("#news_msg").html("Thank you.<br />You have been added to our list");
			$("#p_news_copy").html("Thank you.<br />You have been added to our list");	
		}
		else
		{
			alert(msg);
		}
	}
	});
}


function deleteThis(strURL)
{
	if(confirm('Are you sure you want to delete this?\nThis action will irreversibly delete this item'))
	{
		document.location = strURL;
	}
}

function getPageScroll() 
{
    var xScroll, yScroll;
    if (self.pageYOffset) {
      yScroll = self.pageYOffset;
      xScroll = self.pageXOffset;
    } else if (document.documentElement && document.documentElement.scrollTop) {
      yScroll = document.documentElement.scrollTop;
      xScroll = document.documentElement.scrollLeft;
    } else if (document.body) {// all other Explorers
      yScroll = document.body.scrollTop;
      xScroll = document.body.scrollLeft;
    }
    return new Array(xScroll,yScroll)
}


















































