

function email_this_page(i)
{
	var win, ht;
	ht=340;
	win=window.open('<?=$web_path?>pages/email_this_page.php?page='+i, 'email_this_item', 
			  'resizable,width=420,height='+ht+',left=200,top=120,status');
}

/*This function adds the page to a bookmark.*/
function addToFavourites()
{
	title = document.title;
	url = location.href;

	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
	{
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	}
}

function over(obj) {
  obj.src=obj.src.replace('.jpg', '-over.jpg');
}
 
function out(obj) {
  obj.src=obj.src.replace('-over', '');
}


// Show Popup Info Box

function ShowPopupInfoBox(nme)
{
	$('#popup_'+nme).fadeIn();
}

function ClosePopupInfoBox(nme)
{
	$('#popup_'+nme).fadeOut();
}

