$(document).ready(function(){
	//startList();

	setPillar();
	
	if($("#gallery").length){
		$('#gallery').galleryView({
			panel_width: 756,
			panel_height: 265,
			show_filmstrip: false,
			transition_speed: 'slow'
			});
	}
});

function startList() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("navlist");
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", "");
   }
   }
  }
 }
}

function setPillar(){
	var pillar = $("#pillar");
	var pillar_middle = $("#pillar_middle");
	var contentHeight = $("#contentContainer");
	pillar.css("height",contentHeight.height());
	
	pillar_middle.css("height", contentHeight.height()-291);
	if($.browser.msie){
		if($.browser.version == 7){
			pillar_middle.css("height", contentHeight.height());
		} else if($.browser.version == 6){
			pillar_middle.css("height", contentHeight.height()-10);
		}
	}
	
}
