sfHover = function() {
  if (document.getElementById("gallery") && document.getElementById("gallery").getElementsByTagName("LI")) {
        var sfEls = document.getElementById("gallery").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);

var x = 5;

function index1(obj) {
   x++;
   $(obj).css('z-index', x);
}


function test(obj) {
   obj.style.width = "152px";
   obj.style.height = "190px";
   obj.style.top = "-12px";
   obj.style.left = "-14px";
   $(obj).css('z-index', '3000');
}

function test2(obj) {
   obj.style.width = "125px";
   obj.style.height = "156px";
   obj.style.top = "4px";
   obj.style.left = "0px";
   $(obj).css('z-index', '1');
}

