/* Author: */
/* Rosetta - 2011 */

/********** PENS **********/
$('#use-frixion .share-ans').click(function(event){ 
	FB.ui(
   	{
		 method: 'feed',
		 name: 'People are using FriXion',
		 link: 'http://www.notjustapen.com/Pens#frixion',
		 picture: 'http://pilotfb.rosettadnn.com/FanPage/PickPen/images/pens_0001_frix.jpg',
		 caption: '',
		 description: "",
		 message: 'I just shared how I use my FriXion pen on notjustapen.com'
  	 },
   	function(response) { 
		if (response && response.post_id) {  } 
     	else { }
   	});
});
$('#use-g2 .share-ans').click(function(event){ 
	FB.ui(
   	{
		 method: 'feed',
		 name: 'People are using G2',
		 link: 'http://www.notjustapen.com/Pens#g2',
		 picture: 'http://pilotfb.rosettadnn.com/FanPage/PickPen/images/pens_0002_g2.jpg',
		 caption: '',
		 description: "",
		 message: 'I just shared how I use my G2 pen on notjustapen.com'
  	 },
   	function(response) { 
		if (response && response.post_id) {  } 
     	else { }
   	});
});
$('#use-b2p .share-ans').click(function(event){ 
	FB.ui(
   	{
		 method: 'feed',
		 name: 'People are using B2P',
		 link: 'http://www.notjustapen.com/Pens#b2p',
		 picture: 'http://pilotfb.rosettadnn.com/FanPage/PickPen/images/pens_0000_b2p.jpg',
		 caption: '',
		 description: "",
		 message: 'I just shared how I use my B2P pen on notjustapen.com'
  	 },
   	function(response) { 
		if (response && response.post_id) {  } 
     	else { }
   	});
});
$('#use-v5v7 .share-ans').click(function(event){ 
	FB.ui(
   	{
		 method: 'feed',
		 name: 'People are using V5/V7',
		 link: 'http://www.notjustapen.com/Pens#v5v7',
		 picture: 'http://pilotfb.rosettadnn.com/FanPage/PickPen/images/pens_0003_v5.jpg',
		 caption: '',
		 description: "",
		 message: 'I just shared how I use my V5/V7 pen on notjustapen.com'
  	 },
   	function(response) { 
		if (response && response.post_id) {  } 
     	else { }
   	});
});


/********** TIPS **********/
$('#TipsSection #tips-join #social-links #fb-tips-join a').click(function(event){  
	FB.ui(
   	{
		 method: 'feed',
		 name: 'Share your Tips',
		 link: 'http://www.notjustapen.com/Tips',
		 picture: 'http://pilotfb.rosettadnn.com/FanPage/PickPen/images/pens_0003_v5.jpg',
		 caption: '',
		 description: "",
		 message: ''
  	 },
   	function(response) { 
		if (response && response.post_id) {  } 
     	else { }
   	});
});
$('#TipsSection #tips-join #tw-tips-join').click(function(event){  
	window.open ("http://twitter.com/intent/tweet?text=Share%20your%20Tips%20@PilotPenUSA%20&url=http://www.notjustapen.com", "mywindow");
});
$('#TipsSection #tips-share #tw-tips').click(function (event) {
    window.open("http://twitter.com/intent/tweet?text=Share%20your%20Tips%20@PilotPenUSA%20&url=http://www.notjustapen.com/tips", "mywindow");
});



