function addToFavorites() {
	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(document.title, top.location.href,"");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite(top.location.href, document.title); 
	}	
}

function equalHeight(cols) {
	tallest = 0;
	cols.each(function() {
		thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	cols.height(tallest);
}

function smartColumns() {
	
	$("ul.column").css({ 'width' : "100%"});
	
	var colWrap = $("ul.column").width();
	var colNum = Math.floor(colWrap / 200);
	var colFixed = Math.floor(colWrap / colNum);
	
	$("ul.column").css({ 'width' : colWrap});
	$("ul.column li").css({ 'width' : colFixed});
	
}



/* jQuery 
---------------------------------------- */
$(document).ready(function(){	

	/* Tabs
	----------------------------------------- */
	// If javascript is enabled, initially hide all panes. Otherwise if javascript is disabled, show all the panes
	$(".panes .pane").css('display', 'none');
	
	// activate the tabs
	$("ul.tabs").tabs("div.panes > .pane");

	
	
	/* Initialize plugins/functions that require activation 
	----------------------------------------- */
	equalHeight($(".eqheight"));

	/* Photo gallery
	----------------------------------------- */
	$('.polaroids a').lightBox({
		imageLoading: '../gallery/lightbox/images/loading.gif',
		imageBtnClose: '../gallery/lightbox/images/close.gif',
		imageBtnPrev: '../gallery/lightbox/images/prev.gif',
		imageBtnNext: '../gallery/lightbox/images/next.gif'
	});
		
});	



 	


