jQuery(function() {
			var tabContainers = jQuery('div.tabs > div');
			tabContainers.hide().filter(':first').show();
		   
			jQuery('div.tabs ul.tabNavigation a').click(function () {
					tabContainers.hide();
					tabContainers.filter(this.hash).show();
					jQuery('div.tabs ul.tabNavigation a').removeClass('selected');
					jQuery(this).addClass('selected');
					return false;
			}).filter(':first').click();
	});

/******************************* Separator *******************************/

//Seems to be responsible for window popup for Add/Remove favorites
//'this' on line #20 had to be replaced by "Favarites" to work in IE also works in FF
jQuery(document).ready(function() {
    jQuery('A[rel="external"]').click(function(){
		window.open(jQuery(this).attr('href'),"Favarites",'width=300,height=200');
		location.reload();
	return false;
    });
});
/******************************* Separator *******************************/

/*
---Seems to be not needed.
jQuery(function() {
	jQuery('#gallery a').lightBox();
});
*/

/******************************* Separator *******************************/
	function mailpage()
	{
	mail_str = "mailto:?subject=Check out " + document.title;
	mail_str += "&body=I thought you might be interested in " + document.title + "\r\r";
	mail_str += ". You can view this at, " + location.href;
	location.href = mail_str;
	}

/******************************* Separator *******************************/
/*
jQuery(document).ready(function() {
var timeout         = 500;
var closetimer		= 0;
var ddmenuitem      = 0;

function jsddm_open(){
	jsddm_canceltimer();
	jsddm_close();
	ddmenuitem = jQuery(this).find('ul').eq(0).css('visibility', 'visible');}

function jsddm_close(){	
	if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');
}

function jsddm_timer(){	
	closetimer = window.setTimeout(jsddm_close, timeout);
}

function jsddm_canceltimer(){	
	if(closetimer){	
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}
		
jQuery(document).ready(function(){

	jQuery('#jsddm > li').bind('mouseover', jsddm_open);
	jQuery('#jsddm > li').bind('mouseout',  jsddm_timer);});

document.onclick = jsddm_close;



startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;
});
*/
