    
    
	/**** Set Language ****/
    function SetLanguage(langid){
    curUrl = top.window.document.location.href.split("?");
    top.window.document.location = curUrl[0]+'?sc_lang=' + langid;
    }
      
      
   function addFav() {
    try{window.external.AddFavorite(window.location.href, document.title);return;}catch(e){}
    try{window.sidebar.addPanel(document.title, window.location.href, "");return;}catch(e){}
    }

	/**** Dropdown links ****/
    function gotoURL(pUrl) {
	if (pUrl != '') { 
		location.href = pUrl;
	    //url = new String(pUrl);
	    //if(url.indexOf('_open_new_window_') > -1 ) {
		//	url = url.substring( 0, url.indexOf('_open_new_window_') );
		//	document.forms.frmGoto.action = url;
		//	document.forms.frmGoto.target = '_new';
	    //}
		//else {
		//document.forms.frmGoto.action = url;
		//document.forms.frmGoto.target = '_self';
		//} 
	    
	    //document.forms.frmGoto.submit();
	}
    }
    
    /***** MINI SEARCH *****/
    function clearDefault(el,defaultValue) {
	    if (defaultValue==el.value){el.value = "";}
	}
	
	function getSearchURL (obj,defaultValue) {
		 var TestVar = "/Search.aspx?dosearch=1&searchstring=";
		 var val = encodeURI(document.forms[0].searchString.value);
		 if (val.replace(/\s/g,"").length!=0 && document.forms[0].searchString.value!=defaultValue) {
			 obj.href = TestVar+val.replace(/&/gi,"");
			 return true
		} else {
			 return false
		}
	}
	
	function getKey(evt) {
		var typedKey = null;
		if(evt && evt.which)
		{ 
			typedKey = evt.which //character code is contained in NN4's which property
		}
		else
		{		
			typedKey = event.keyCode; //character code is contained in IE's keyCode property
		}
		if (typedKey == 13) {	    
			if(document.all) {
				window.event.cancelBubble='true';
				window.event.returnValue = false;
			} else {
				evt.stopPropagation();
				evt.preventDefault();
				
			}
		
			document.getElementById("searchLink").click();
		 }
	}
	
	
	