var helvetica = {
	src: '/wp-content/themes/stonesthrow/image/Helvetica.swf'
	,ratios: [6,1.41,9,1.35,15,1.29,21,1.25,22,1.22,27,1.24,29,1.21,34,1.22,41,1.21,45,1.2,46,1.21,59,1.2,68,1.19,69,1.2,96,1.19,97,1.18,102,1.19,103,1.18,112,1.19,114,1.18,116,1.19,120,1.18,121,1.19,1.18]
};

sIFR.delayCSS  = true;

sIFR.activate(helvetica);

sIFR.replace(helvetica, {
	selector: '#blogHeading'
	,css: {
	'.sIFR-root': {'font-size': '28px', 'color': '#000000','font-weight': 'bold', 'letter-spacing': -0.5,'cursor': 'hand' }
	}
	,filters: {
		DropShadow: {
		distance: 0
		,color: '#9F8AB3'
		,strength: 2
		,knockout: true
		}
	}
	, wmode: 'transparent'

});

$(document).ready(function(){
	_uacct = "UA-102827-6";
	urchinTracker();
	
	
	//Configuration Options
	var max_width = 530; 	//Sets the max width, in pixels, for every image
	var selector = 'img'; 	//Sets the syntax for finding the images.  Defaults to all images.
				//For images inside of a particular element (id="abc") or class (class="abc"),
				//use '.abc img' or '#abc img' respectively.  Don't leave off the img tag!!!
	//End configuration options.  You don't need to change anything below here.
	
	$(selector).each(function(){
		var width = $(this).width();
		var height = $(this).height();
		if (width > max_width) {
			//Set variables	for manipulation
			var ratio = (height / width );
			var new_width = max_width;
			var new_height = (new_width * ratio);
			
			//Shrink the image and add link to full-sized image
			$(this).height(new_height).width(new_width);
			$(this).hover(function(){
				$(this).attr("title", "This image has been scaled down.  Click to view the original image.")
				$(this).css("cursor","pointer");
				});
			$(this).click(function(){
				window.location = $(this).attr("src");
				});
		} //ends if statement
	} //ends each function
	);

});
