function YahooAstrology(){

this.horoscopeSign="";//
this.proxyFile="proxy.php?url=";
this.loader="images/ajax-loader.gif";
this.done = false;

this.getDailyInfo = function(){
 
 var loader = this.loader;	
 var horoscopeSign = this.horoscopeSign;
 
 $.ajax({
 type:"GET",
 url:this.proxyFile+'http://shine.yahoo.com/rss/astrology/'+horoscopeSign+'/daily-overview/',
 dataType:"xml",
 beforeSend:function(){	
   $('body').append('<div id="horoscopeInfo"></div>');
  $('#horoscopeInfo').html('<center><div style="padding-top:85px;padding-bottom:85px;"><img src="'+loader+'" /><br/>Loading <b>'+horoscopeSign+'</b></div></center>');
 },
 success:function(xml){
	 var close_btn = '<a href="#" id="closeHoroscope">close</a>';
	 var horoscopeThumb = '<img src="gossipfeeds/horoscope-menu/images/'+horoscopeSign+'.gif" style="float:left;margin-right:5px;margin-bottom:5px;" width="80" height="75" />';
	 var dailyHoroscope = $(xml).find('description:eq(1)').text();
	 var cutFromPosition = dailyHoroscope.indexOf('<ul>');
 	 $('#horoscopeInfo').html('<h3 style="font-size:14px;color:#dd0aa9">'+horoscopeSign.toUpperCase()+':</h3>'+horoscopeThumb+dailyHoroscope.substr(0,cutFromPosition).replace("--",",")+close_btn);
	 
	 //Close the horoscope on click event
	 $('#closeHoroscope').click(function(){
	 $('#horoscopeInfo').html('<center><div style="padding-top:85px;padding-bottom:85px;"><img src="'+loader+'" /><br/>Closing <b>'+horoscopeSign+'</b></div></center>');									     setTimeout(function(){																																																							
	   $('#horoscopeInfo').remove();																																																								     },1500);
	 return false;
	 });//click()
	 
 },
 error:function(){
  $('#horoscopeInfo').html('<center><b>Unable to load,please try later.</b></center>');
 }
 });//ajax()
 
}//getDailyInfo()


this.showInfo = function(attrID){
   this.horoscopeSign = $(attrID).attr('id');
   var height = 220;
   var width = 300;
 
   if($.browser.msie){
   var top = (document.documentElement.clientHeight - height)/2;
   var left = (document.documentElement.clientWidth - width)/2;
   top+=100;
   }
   else{
   var top = (window.innerHeight - height)/2;
   var left = (window.innerWidth - width)/2;
   top+=100;
   }
   
   this.getDailyInfo();
    $('#horoscopeInfo').css({
	"position":"absolute",
	"top":top,
	"left":left,
	"width":width+"px",
	"height":height+"px"
	});
	
   $('#horoscopeInfo').show();
}//showInfo()


}