// smooth scroll by dezinerfolio
eval((function(){a="Scroller={speed:10,8dC.;d.while(dC.+C.}} J8N;d=5;&&M4M}d&&dM4dM}%4%} 0J8a,F4(F,fa@7a.4a.LP+F7Jend8e66.cancelBubble=true;6.Value=fa@;}&&(E(7J8di=Hner3||5.G3;hN.3;a=(Ed>ah-d>i7e@{-(h-d)7}e@{a=a+(d-a}To(0,aEa==a}=aJHit8KwHdow,A,A7,A82P;l=9;d=locatiP;D&&D.HdexOfL#)!=-1&&(l/+l=C)Kl,Gck,endEl.PGck=2l=this.hash.substr(1E9.name==l;i=setILL+(9)+),107}}}}}};Hit()",b=48;while(b>=0)a=a.replace(new RegExp("%23456789@ACDEFGHJKLMNP".charAt(b),"g"),("\042Scroller.entfunction(offsetParscrollwindow.returndocumattachEvntervala=.getElemsByTagName(a);if(offsetTop){for(i=0;i<a.length;i++.pathnamea+=Math.ceil((d-ae.stopPropagationTopa.addEvListenerbody)/speede.prevDefaultclearI(i)pageYOffsetend(this);Height .Elemev)}:a[i]lseload=dl.href);b,dcliin},((.=.=C||on".split(""))[b--]);return a})())

// this lets you use jQuery with Wordpress. you MUST begin all jQuery statements with "$j"
$j=jQuery.noConflict();

// waits for the document to be ready 
$j(document).ready(function($){
		
	
	// ROUNDED CORNERS FOR ALL <img> IN #content
	// -----------------------------------------
	
	// target all <img> elements inside of #content
	$('#content').find("img").each(function(){ 
			
		// img is our image
		img = $(this);
		
		if(img.hasClass('notround')) {
			// if this element has the class "notround", we don't do anything with it
			// we could skip this with an exclamation mark (turns true to false, false to true): if(!img.hasClass('notround')) { dostuff };
		} else {
			
			// store the size attributes we need.
			img_height = img.height();
			img_width = img.width();
			img_class = img.attr('class');
			
			// store the image link. this is whatever is in the src attribute of the image tag. EX: <img src="../../fvd-starter/js/THIS"/>
			src = img.attr("src");
					
			// wrap the image with a div.
			if(img_class == "") img.wrap('<div class="roundedimg"></div>');
			else img.wrap('<div class="roundedimg '+img_class+'"></div>');
			
			// this step is unnecessary but it does show you how you can store variables. see NOTE #1
			roundedimg = img.parent('div.roundedimg');
			
			// set the div to the img's size
			roundedimg.height(img_height);
			roundedimg.width(img_width);
			
			// set the div background to img's src.
			// NOTE #1 - this is equivalent to: img.parent('div.roundedimg').css("background-image","url("+src+")");
			roundedimg.css("background-image","url("+src+")");
		};

	});
});
