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;

$(document).ready(function () {

$('#tabs').tabs()

function formatTitle(title, currentArray, currentIndex, currentOpts) {
    return '<div id="thumbnails"><span><a href="javascript:;" onclick="$.fancybox.close();"><img src="images/nav/fancy_close.png" /></a></span>' + (title && title.length ? '<b>' + title + '</b><br />' : '' ) + 'Image ' + (currentIndex + 1) + ' of ' + currentArray.length + '</div>';
}

$(".thumbnails").fancybox({
'showCloseButton': false,
'titlePosition': 'inside',
'titleFormat': formatTitle,
'zoomSpeedIn': 500,
'zoomSpeedOut': 500,
'overlayShow': true
});
});
