function land(ref,target) {
	lowtarget=target.toLowerCase();
	
if (lowtarget=="_self")
	window.location=loc;
else 
	if (lowtarget=="_top")
		top.location=loc;
	else
		if (lowtarget=="_blank")
			window.open(loc);
		else 
			if (lowtarget=="_parent")
				parent.location=loc;
			else
				parent.frames[target].location=loc;
}	

function jump(menu) {

	ref = menu.choice.options[menu.choice.selectedIndex].value;
	splitc = ref.lastIndexOf("*");
	target = "self"; // Change this to desired frame, if needed
	
	if (splitc!=-1) {
		loc=ref.substring(0,splitc);
		target=ref.substring(splitc+1,1000);
	}
	else {
		loc=ref; 
		target="self";
	}

	if (ref != "")
		land(loc,target);
}

function search(target, q) {
	q = q.replace("%20","+");
	q = q.replace(" ","+");
	var query = target + "?q="+q;
	location.href=query;
}

function toggleVisibility(id) {
	document.getElementById(id).style.display = ( document.getElementById(id).style.display == '' || document.getElementById(id).style.display == 'block' || document.getElementById(id).style.display == 'inline') ? 'none':'block';
}

function show(id, where) {
		document.getElementById(id).style.display = where;
}

function hide(id) {
		document.getElementById(id).style.display = 'none';
}

function toggleOpacity(id) {
	if (document.getElementById(id).style.opacity == '1') {
		document.getElementById(id).style.filter = 'alpha(opacity=0.7)';
		document.getElementById(id).style.opacity = '0.6';
	}
	else {
		document.getElementById(id).style.filter = 'alpha(opacity=1)';
		document.getElementById(id).style.opacity = '1';
	}
}

function columnHover(id, action) {
	if (action == '1' || action == 'on') {		
		document.getElementById(id).style.cursor = "pointer";
		document.getElementById(id).style.background = "#E1E1E1";		
	}
	
	if (action == '0' || action == 'off') {
		document.getElementById(id).style.cursor = "default";
		document.getElementById(id).style.background = "#EEEEEE";	
	}
}

// labnol.blogspot.com
function bookmark(title, url) {
	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title); }
	else if(window.opera && window.print) { // Opera Hotlist
		return true; }
}