		

		function SubmitTopSearch(){
			if (document.TopSearch.freetext.value=='Search' || document.TopSearch.freetext.value.length < 2)
			{
				alert ('Please enter your search term in the search box');
				document.TopSearch.freetext.focus();
			}
			else
			{
				document.TopSearch.submit();
			}
		}

		function openWin(url){
			var newWin = window.open(url, 'SPnewWin', 'width=700,height=450,resizable=1,scrollbars=1');
			if (newWin) 
			{
				newWin.focus();
			} 
			else 
			{
				//alert ("Can't open pop-up window. Please change your browser settings to allow pop-ups from this site.");
			}
		}

		function openFullWin(url){
			var newWin=window.open (url,'SPnewWin','width=990,height=600,resizable=1,scrollbars=1,location=1,status=1,menubar=1,toolbar=1');
			if (newWin) {
				newWin.focus()
			} 
			else 
			{
				//alert ("Can't open pop-up window. Please change your browser settings to allow pop-ups from this site.")
			}

		}



	
	function showDialog(url,width,height,dialogParams)
	{
		var aParams;
		var sResponse ;
		return window.showModalDialog(url,dialogParams ,"dialogHeight:" +height+ "px;dialogWidth:" +width+ "px;status:no;help:no;resizable: yes;");
	}

	function showFrammedDialog(url,width,height,dialogParams,title)
	{
		return showDialog("DialogFrame.asp?title="+title+"&dialog=" +url,width,height,dialogParams,title);
	}

	function Showbox(id,bg){
		var newin=showFrammedDialog("editor.asp", 770,550,"bg=%23" + bg + "&id=" + id,"RichTextArea"); 	
		location.reload();
	}

	$.fn.extend({
		disableSelection: function() {
			this.each(function() {
				if (typeof this.onselectstart != 'undefined') {
					this.onselectstart = function() { return false; };
				} else if (typeof this.style.MozUserSelect != 'undefined') {
					this.style.MozUserSelect = 'none';
				} else {
					this.onmousedown = function() { return false; };
				}
			});
		}
	});

$(document).ready(function(){
	$('#LogoDiv').click(function() {location.href='/'});
});

