// JavaScript Document
function hoverButton(imgDir, type){
	if (type === undefined)
	{
		 type = "jpg";
		
	}

	jQuery(".hoverbutton").hover(			   
      function () {
	   jQuery(this).attr({				 
		src: imgDir + "/images/" + this.id + "-on." + type
		});

      }, 
      function () {
        jQuery(this).attr({ 
		src: imgDir + "/images/" + this.id + "-off."  + type
		});
      }
    );
}
function roundCorners() {
try {
jQuery(".sidebar_list h2").corner("8px top");
jQuery(".postdate").corner("5px");
}
catch(err){}//ie6 doesn't like this
} 

function expandImage(imgLoc, styleDir)
  {
	 var imageTitle = jQuery(imgLoc > "img").attr("title");
	 var largeImage = jQuery(imgLoc).attr("rel");
	 
	 var bigWin = window.open("","bigWin");
	 bigWin.document.open();
     bigWin.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>' + imageTitle + '</title>');
	bigWin.document.write('<link href="'+styleDir+ '" rel="stylesheet" type="text/css"/><link href="styles-expand.css" rel="stylesheet" type="text/css"/>');
		 bigWin.document.write('</head>');
	      bigWin.document.write('<body>');
					bigWin.document.write('<p class="closelink"><a  href="#" onclick="window.close();return false;">&laquo; return to data2insight</a><p>');
     bigWin.document.write('<p style="text-align:center;"><img  src="' + largeImage + '" alt="expanded image" style="max-height:682px;max-width:1024px;"/></p>');
	//bigWin.document.write('<img  src="' + imgLoc + '" alt="' + imgDesc + '" title="' + imgDesc + '"><br/>');
	bigWin.document.write('<p class="closelink"><a  href="#" onclick="window.close();return false;">&laquo; return to data2insight</a><p>');
    bigWin.document.write('</body></html>'); 
   
   bigWin.document.close();
	 if (window.focus) {bigWin.focus();}

  }