<!--
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//if (window.attachEvent) window.attachEvent("onload", TB_init);

function scrollRight(pag,tot,cat) {
	$.ajax({
		   type: "GET",
		   url: "_inc/galleryUpdate.inc.php",
		   data: "page="+pag+"&cat="+cat,
		   success: function(msg){
			 			document.getElementById('galleriaScroll').innerHTML = msg;
						TB_init();
		   			}
		   });
	return false;
}

function scrollItLeft(pag,tot,cat) {
	$.ajax({
		   type: "GET",
		   url: "_inc/galleryUpdate.inc.php",
		   data: "page="+pag+"&cat="+cat,
		   success: function(msg){
			 			document.getElementById('galleriaScroll').innerHTML = msg;
						TB_init();
	   			}
		   });
	return false;
}

function TB_init(){

	$("a.thickbox").click(function(){

	var t = this.title || this.innerHTML || this.href;
		myRE = new RegExp("<img", "i")
		if(t.match(myRE)){
			t = '';
		}
	var g = this.rel || false

	tb_show(t,this.href,g);
	
	this.blur();

	return false;

	});
}

/*
function TB_init(){
	$("a.thickbox").click(function(){
								var t = this.title || this.name || null;
								var g = this.rel || false;
								TB_show(t,this.href,g);
								this.blur();
								$("a.thickbox").removeClass("thickbox"); // I added this line…
								return false;
							});
}*/

-->