// google analytics
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

// jquery functions
$(document).ready(function() {
	var x;
	var y;
	var img;
	var object_class;
	var box_contents;
	
    $("#contents img").each(function(){
		 x = $(this).width();
		 y = $(this).height() - 15;
		 img = $(this).attr("src");
		 object_class = $(this).attr('class');
		 box_contents = '<div class="image_box ' + object_class + '" style="width: ' + x + 'px; height: ' + y + 'px; background-image: url(' + img + ');">&nbsp;</div>';
		 $(this).replaceWith(box_contents);
		 // alert (object_class);
    });
	
	$(".image_box").corner();
	$(".attention").corner();
	
	// google analytics
	try {
		var pageTracker = _gat._getTracker("UA-5684134-1");
		pageTracker._trackPageview();
	} catch(err) {}
	
	__sfga();
});
