function loadPage(){
	fixPosition();
	var menuContent = getElementsByClassName("menuContent")
	for(i = 0; i < menuContent[0].childNodes.length; i++){
		if(menuContent[0].childNodes[i].className.indexOf("item") != -1){
			if( i % 4 == 0){
				menuContent[0].childNodes[i].className = "home item";
			}
			if( i % 4 == 1){
				menuContent[0].childNodes[i].className = "biography item";
			}
			if( i % 4 == 2){
				menuContent[0].childNodes[i].className = "portfolio item";
			}
			if( i % 4 == 3){
				menuContent[0].childNodes[i].className = "contact item";
			}
		}		
	}
}

function fixPosition(){
	if(navigator.appName.indexOf("Microsoft") != -1 && navigator.appVersion.substring(22, 23) < 8){	
		var content = document.getElementById("content");
		content.style.position = "relative";
		content.style.top = "-2px";
	}
}

function getElementsByClassName(class_name)
{
  var all_obj,ret_obj=new Array(),j=0;
  if(document.all)all_obj=document.all;
  else if(document.getElementsByTagName && !document.all)all_obj=document.getElementsByTagName("*");
  for(i=0;i<all_obj.length;i++)
  {
    if(all_obj[i].className==class_name)
    {
      ret_obj[j]=all_obj[i];
      j++
    }
  }
  return ret_obj;
}  
