$(document).ready(function(){
	$("a[rel='external']").click(function(){
		if ($(this).attr("href") != "") {
			if ((! $(this).attr("id")) && ($(this).attr("id") != "")) {
				window.open($(this).attr("href"), $(this).attr("id"));
			} else {
				window.open($(this).attr("href"));
			}
		}
		return false;
	});
});

function extWin (url, title, w, h) {
	if ((url != "") && (title != "")) {
		if ((w == 0) && (h == 0)) {
			window.open(url, title);
		} else {
			window.open(url, title, "width=" + w + ", height=" + h + ", scrollbars=yes, resizable=yes");
		}
	}
	return false;
}



function setSidemenu(){
	$(".sidemenu li.np").css("opacity","0.5");
	
	$(".sidemenu li").mouseover(function(){
		if($(this).attr("className") != "np"){
			$(this).css("opacity","0.6");
		}
	});
	$(".sidemenu li").mouseout(function(){
		if($(this).attr("className") != "np"){
			$(this).css("opacity","1");
		}
	});
}

