// Webfocus Design
// Common scripts for blog

jQuery().ready(function() {		
	
	//alert("Hello");
	
	// Other images rollovers using the "roll" class
	jQuery("a.roll").mouseover(function() {
		imgsrc = jQuery(this).children("img").attr("src");
		// Fail if no image found
		if (typeof(imgsrc) != 'undefined') {
			// Replace .gif with _over.gif
			imgsrcON = imgsrc.replace('.gif', '_over.gif');
			// Now change the src to the 'ON' value
			jQuery(this).children("img").attr("src", imgsrcON);
		}
	});
	
	jQuery("a.roll").mouseout(function(){
	  // trap for 'undefined' errors again
	  if (typeof(imgsrc) != 'undefined') {
		  jQuery(this).children("img").attr("src", imgsrc);
	  }
	});	
	
});
