function show(id){
tag = document.getElementsByTagName("div")
   for(x=0; x<tag.length; x++){
      if(tag[x].id.substr(0,3) == 'pic'){
         document.getElementById(tag[x].id).style.display = 'none';
      }
   }
   document.getElementById(id).style.display = 'block';
}

function highit(id){
tag = document.getElementsByTagName("img")
   for(x=0; x<tag.length; x++){
      if(tag[x].id.substr(0,5) == 'thumb'){
         document.getElementById(tag[x].id).style.opacity = '0.5';
      }
   }
   document.getElementById(id).style.opacity = '1';
}

function getCookie(){
	isCount = document.cookie.substring(8,document.cookie.length)
	return isCount;
}

function deleteCookie(name){
	if (getCookie(name)){
		document.cookie = name + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
	}
}

function menuback(id){
	switch (id)
	{
		case 'menuabout':
			document.getElementById(id).style.backgroundColor = '#7a2531';
			document.getElementById('menuprojects').style.backgroundColor = '#666666';
			break;
		case 'menuprojects':
			document.getElementById(id).style.backgroundColor = '#c99900';
			document.getElementById('menuabout').style.backgroundColor = '#666666';
			break;
	}
}