//$(".lavaLamp").lavaLamp({ click: function(event, menuItem) { return false; } });

 $("a").hover(function () {
    $(this).css({'background-color' : 'yellow', 'font-weight' : 'bolder'});
  }, function () {
    var cssObj = {
      'background-color' : '#ddd',
      'font-weight' : '',
      'color' : 'rgb(0,40,244)'
    }
    $(this).css(cssObj);
  });
  

function gotoUrl(site)
{
	//alert(site);
	if(site=="digital-library"){
		newwindow=window.open('http://dl.globalstf.org/','name','');
		if (window.focus) {newwindow.focus()}
	}
}

function gotopage(pg)
{	
		document.getElementById("page").value = pg;
		//setTimeout(function(){ document.getElementById('ifr_pgcontents').src = 'common/'+pg+'.html'; }, 500);
		//setTimeout(function(){ document.getElementById('ifr_pgcontents').src = 'common/'+pg+'.html'; }, 500);
		window.location.href = pg + ".php";
}

function gotopage2(pg)
{	
		//document.getElementById("page").value = pg;
		window.location = "../" + pg + ".php";
		//window.location = pg + ".php";
}


function gup( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}


//no select script
function noselect(id)
{
	var element = document.getElementById(id);

	element.onselectstart = function () { return false; } // ie
	element.onmousedown = function () { return false; } // mozilla
}
document.onselectstart = function() {return false;} // ie
document.onmousedown = function() {return false;} // mozilla


//http://www.foo.com/index.html?bob=123&frank=321&tom=213#top
//You want to get the value from the frank parameter so you call the javascript function as follows:
//var frank_param = gup( 'frank' );

