$(document).ready(function(){
   // Png Hack
   if ($.browser.msie && $.browser.version == 6) {
       DD_belatedPNG.fix('.wrapper, .logo, .navHome, .navAbout, .navBlog, .navContact, .navHomeHover, .navAboutHover, .navBlogHover, .navContactHover, #banner, ..balloonInner,#how .one, #how .two, #how .three, #why .one, #why .two, #why .three, .copyright span., .comeon, #featNum, .next, .prev, .confTextBox, .confInput');
    }

	// Scroll with easing
	$.easing.custom = function (x, t, b, c, d) { 
		var s = 1.70158;  
		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; 
		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; 
	}
	$("div.scrollable").scrollable({
		size:1,
		loop: true,
		interval: 15000,
		speed: 600,
		easing: 'custom'
		});	
	

	
	// Animate Ballon
	$(".balloonInner").animate({ 
		height: "100%"
      }, 2000 );

	// Table
	$('#tableWrapper table col:contains("Info")').hide();
	$('#tableWrapper table td:first-child("odd")').addClass('bigNmbr');
	$('#tableWrapper table td:last-child("col")').each(function (index) {
     $(this).wrapInner("<div class='overlay' id='overlay"+index+"'></div>").append("<a class='prchsAlllist' rel='#overlay"+index+"'></a>");
     });
	$(".prchsAlllist").hover(
      function () {
        $(this).addClass("prchsAlllistHover").fadeIn(100);
      }, 
      function () {
        $(this).removeClass("prchsAlllistHover").fadeIn(100);;
      });
	$(".prchsAlllist").overlay({ 
	expose: '#000' ,
	opacity: 0.7, 
    start:  {top: 100}	
	});	
	
	$(".comeon").overlay({ 
	expose: '#000' ,
	opacity: 0.7, 
    start:  {top: '-100px'}		
	});	
	
	//Contact Info
	$(".cntctMain").insertAfter("#cntctInfo h4");
	
	$('.inptCC').each(function(){
		$(this).wrapAll('<div class="confInput"></div>');
	  });
	
	$('.inptArea').each(function(){
	$(this).wrapAll('<div class="confTextBox"></div>');
	});

	
});

DD_roundies.addRule('#why, #how, #latestPost, #tweets', '8px', true);
swfobject.registerObject("myFlashContent", "9.0.0");