$(document).ready(function(){
	
	$('.nav_item').bind("mouseenter",function(){
		$(this).addClass('over');
	})
	.bind("mouseleave",function(){
		$(this).removeClass('over');					  
	})
	.bind("click",function(){
		window.location.href=$('#'  + this.id +  ' span a').attr('href');				  
	});
						   
});


function share(pledge){


FB.ui(
   {
     method: 'stream.publish',
     message: '',
     attachment: {
       name: pledge,
       caption: 'Payoff.com - wage fun on debt!',
       description: (
         'A &ldquo;real-life game&rdquo; that makes the process of paying off debt and saving more fun.'
       ),
       href: 'http://payoff.com',
	   media: [
              {type: 'image',src: 'http://payoff.com/images/payoff_logo.gif', href: 'http://payoff.rockurchin.com/images/payoff_logo.gif'} ]
     },
	  
	 //,
     //action_links: [
     //  { text: 'Code', href: 'http://github.com/facebook/connect-js' }
     //],
     //user_prompt_message: 'Share your thoughts about Connect'
   },
   function(response) {
     //if (response && response.post_id) {
     //  alert('Post was published.');
     //} else {
     //  alert('Post was not published.');
     //}
   }
 );


}
