 jQuery.noConflict();
 jQuery(document).ready(function() {
	var options = {
	  handleOversize: 'resize'
	  ,animate: true
	  ,displayNav: true
	  ,overlayOpacity: 0.9
	  ,handleUnsupported: 'remove'
	  ,initialHeight:800
	  ,initialWidth: 700
	,continuous: true 
	};
	Shadowbox.init(options);
	jQuery('#infobox').css('width','60px');
	jQuery('#infobox a').css('display','none');
	jQuery('#infobox').hover(
	  function () {
		jQuery('#infobox').css('width','290px');
		jQuery('#infobox a').css('display','block');
	  }, function () {
		jQuery('#infobox').css('width','60px');
		jQuery('#infobox a').css('display','none');
	  }
	);

	jQuery('#content h1').each(function(index) {
		jQuery(this).html('<img src="render.php?name='+ jQuery(this).text() +' &tag=h1" alt="' + jQuery(this).text() + ' " />');
	});
	/*jQuery('#content h2').each(function(index) {
		jQuery(this).html('<img src="render.php?name='+ jQuery(this).text() +' &tag=h2" alt="' + jQuery(this).text() + ' " />');
	});
	jQuery('#content h3').each(function(index) {
		jQuery(this).html('<img src="render.php?name='+ jQuery(this).text() +' &tag=h3" alt="' + jQuery(this).text() + ' " />');
	});*/
	jQuery('#content .chulkduster').each(function(index) {
		jQuery(this).html('<img src="render.php?name='+ jQuery(this).text() +' &tag=chulkduster" alt="' + jQuery(this).text() + ' " />');
	});	
	
	jQuery('#right h1').each(function(index) {
		jQuery(this).html('<img src="render.php?name='+ jQuery(this).text() +' &tag=h1_right" alt="' + jQuery(this).text() + ' " />');
	});
	jQuery('#right h2').each(function(index) {
		jQuery(this).html('<img src="render.php?name='+ jQuery(this).text() +' &tag=h2_right" alt="' + jQuery(this).text() + ' " />');
	});
	jQuery('#right h3').each(function(index) {
		jQuery(this).html('<img src="render.php?name='+ jQuery(this).text() +' &tag=h3_right" alt="' + jQuery(this).text() + ' " />');
	});
	

});

