var popupStatus = 0;  

function loadPopup()
{  
	if(popupStatus==0)
	{  
		jQuery("#popup_window_rss").fadeIn("slow");  
 		popupStatus = 1;  
 	}  
};  

function disablePopup()
{  
   if(popupStatus==1)
   {  
   		jQuery("#popup_window_rss").fadeOut("slow");  
  		popupStatus = 0;  
   }  
};  

function centerPopup()
{  
	if(popupStatus==1)
	{  
		var windowWidth = document.documentElement.clientWidth;  
		var windowHeight = document.documentElement.clientHeight;  
		var popupHeight = jQuery("#popup_window_rss").height();  
		var popupWidth = jQuery("#popup_window_rss").width();  
	 
	   jQuery("#popup_window_rss").css({  
			"position": "absolute",  
			"top": windowHeight/2-popupHeight/2,  
			"left": windowWidth/2-popupWidth/2  
	  });  
   }
}; 

function popUpData(title, url)
{
	jQuery("#popup_title_bar").html(title);
	jQuery("#fullRSSBox a").html(url).attr("href", url); 
	jQuery("#link_igoogle").attr("href", "http://www.google.com/ig/add?feedurl="+url);
	jQuery("#link_my_yahoo").attr("href", "http://add.my.yahoo.com/content?url="+url); 
	jQuery("#link_windows_live").attr("href", "http://www.live.com/Default.aspx?add="+url);
	jQuery("#link_netvibes").attr("href", "http://www.netvibes.com/subscribe.php?url="+url);  
	jQuery("#link_wikio").attr("href", "http://www.wikio.es/subscribe?url="+url);
	jQuery("#link_planetaki").attr("href", "http://www.planetaki.com/subscription/add?url="+url);
	jQuery("#link_bloglines").attr("href", "http://www.bloglines.com/sub/"+url);
};
