
		  $(document).ready(function(){
			  $("#pdfIcon").attr("src", "/images/icon_pdf.gif");
			  $("#bioIcon").attr("src", "/images/icon_bio_blk.gif");
			  $("#contactIcon").attr("src", "/images/icon_contact_black.gif");
			  $("#linksIcon").attr("src", "/images/icon_links_black.gif");
			  $("#blogIcon").attr("src", "/images/icon_blog_black.gif");
			  
			  $("#pdfIcon").hover(function() {  
   				 $(this).attr("src", "/images/icon_pdf_grey.gif");
			  $("#bioIcon").attr("src", "/images/icon_bio_blk.gif");
			  $("#contactIcon").attr("src", "/images/icon_contact_black.gif");
			  $("#linksIcon").attr("src", "/images/icon_links_black.gif");
			  $("#blogIcon").attr("src", "/images/icon_blog_black.gif"); 
  					},function() { 
    				$(this).attr("src", "/images/icon_pdf.gif") 
  					}); 
				
					
				$("#bioIcon").hover(function() {  
   				 $(this).attr("src", "/images/icon_bio_grey.gif");
				 $("#pdfIcon").attr("src", "/images/icon_pdf.gif");
			  $("#contactIcon").attr("src", "/images/icon_contact_black.gif");
			  $("#linksIcon").attr("src", "/images/icon_links_black.gif");
			  $("#blogIcon").attr("src", "/images/icon_blog_black.gif"); 
  					},function() { 
    				$(this).attr("src", "/images/icon_bio_blk.gif") 
  					});
					
					$("#contactIcon").hover(function() {  
   				 $(this).attr("src", "/images/icon_contact_grey.gif");
				 $("#pdfIcon").attr("src", "/images/icon_pdf.gif");
			  $("#bioIcon").attr("src", "/images/icon_bio_blk.gif");
			  $("#linksIcon").attr("src", "/images/icon_links_black.gif");
			  $("#blogIcon").attr("src", "/images/icon_blog_black.gif"); 
  					},function() { 
    				$(this).attr("src", "/images/icon_contact_black.gif") 
  					}); 
					
					$("#linksIcon").hover(function() {  
   				 $(this).attr("src", "/images/icon_links_grey.gif");
				 $("#pdfIcon").attr("src", "/images/icon_pdf.gif");
			  $("#bioIcon").attr("src", "/images/icon_bio_blk.gif");
			  $("#contactIcon").attr("src", "/images/icon_contact_black.gif");
			  $("#blogIcon").attr("src", "/images/icon_blog_black.gif"); 
  					},function() { 
    				$(this).attr("src", "/images/icon_links_black.gif") 
  					}); 
					
					$("#blogIcon").hover(function() {  
   				 $(this).attr("src", "/images/icon_blog_grey.gif");
				 $("#pdfIcon").attr("src", "/images/icon_pdf.gif");
			  $("#bioIcon").attr("src", "/images/icon_bio_blk.gif");
			  $("#contactIcon").attr("src", "/images/icon_contact_black.gif");
			  $("#linksIcon").attr("src", "/images/icon_links_black.gif"); 
  					},function() { 
    				$(this).attr("src", "/images/icon_blog_black.gif") 
  					});  
			
		 });
		  
function MM_setTextOfLayer(objId,x,newText) { //v9.0
  with (document) if (getElementById && ((obj=getElementById(objId))!=null))
    with (obj) innerHTML = unescape(newText);
}

function createXHR() 
{
    var request = false;
        try {
            request = new ActiveXObject('Msxml2.XMLHTTP');
        }
        catch (err2) {
            try {
                request = new ActiveXObject('Microsoft.XMLHTTP');
            }
            catch (err3) {
		try {
			request = new XMLHttpRequest();
		}
		catch (err1) 
		{
			request = false;
		}
            }
        }
    return request;
}


function getBody(content) 
{
   test = content.toLowerCase();    // to eliminate case sensitivity
   var x = test.indexOf("<body");
   if(x == -1) return "";

   x = test.indexOf(">", x);
   if(x == -1) return "";

   var y = test.lastIndexOf("</body>");
   if(y == -1) y = test.lastIndexOf("</html>");
   if(y == -1) y = content.length;    // If no HTML then just grab everything till end

   return content.slice(x + 1, y);   
} 

/**
	Loads a HTML page
	Put the content of the body tag into the current page.
	Arguments:
		url of the other HTML page to load
		id of the tag that has to hold the content
*/		

function loadHTML(url, fun, storage, param)
{
	var xhr = createXHR();
	xhr.onreadystatechange=function()
	{ 
		if(xhr.readyState == 4)
		{
			//if(xhr.status == 200)
			{
				storage.innerHTML = getBody(xhr.responseText);
				fun(storage, param);
			}
		} 
	}; 

	xhr.open("GET", url , true);
	xhr.send(null); 

} 

	/**
		Callback
		Assign directly a tag
	*/		


	function processHTML(temp, target)
	{
		target.innerHTML = temp.innerHTML;
	}

	function loadWholePage(url)
	{
		var y = document.getElementById("storage");
		var x = document.getElementById("contentDiv");
		loadHTML(url, processHTML, x, y);
	}	

function loadMenu(url)
	{
		var y = document.getElementById("storage");
		var x = document.getElementById("menuMyDiv");
		loadHTML(url, processHTML, x, y);
	}	
	
