// Bookmarking START //
function bookmark(caption, url){
	if (document.all) {
		window.external.AddFavorite(url, caption);
	}else if (window.sidebar) {
		window.sidebar.addPanel(caption, url, "");
	}
}
// Bookmarking END //

// Show and hide element START //
function showBox(box_id) {

	var winW = 630, winH = 460;

	if (parseInt(navigator.appVersion)>3) {
	 if (navigator.appName=="Netscape") {
	  winW = window.innerWidth;
	  winH = window.innerHeight;
	 }
	 if (navigator.appName.indexOf("Microsoft")!=-1) {
	  winW = document.body.offsetWidth;
	  winH = document.body.offsetHeight;
	 }
	}
	
	x_location = (winW / 2) - 250;
	y_location = (winH / 2) - 100;
	
	document.getElementById(box_id).style.position = 'absolute';
	document.getElementById(box_id).style.left = x_location + "px";
	document.getElementById(box_id).style.top = y_location + "px";
	document.getElementById(box_id).style.display = 'block';
}

function hideBox(box_id) {
	document.getElementById(box_id).style.display = 'none';
}
// Show and hide element END //
