﻿var fb_social_icon_state = 0;
	function open_fb_social_icon()
	{
		jQuery("#facebook_iframe").animate({ right: '0px' }, 
			{
				duration: 300,
				complete: function() 
				{
					fb_social_icon_state = 1;
				}
			}
		);
	}
	jQuery().ready(function()
	{
		
		jQuery("#facebook_iframe").mouseenter(function()
		{
			//if(fb_social_icon_state == 0)
			//{
				//setTimeout('open_fb_social_icon()',500);
				//jQuery("#facebook_iframe").animate({ width: 'show' });
				jQuery("#facebook_iframe").animate({ right: '0px' }, 
					{
						duration: 500,
						queue: false
						//complete: function() 
						//{
      						//	fb_social_icon_state = 1;
    						//}
    					}
    				);
			//}
		});
		//jQuery("#facebook_iframe").mouseover(function()
		//{
		//	//jQuery("#facebook_iframe").animate({ width: 'show' });
		//	jQuery("#facebook_iframe").animate({ right: '0px' });
		//});
		//jQuery("#fb_iframe_id").mouseover(function()
		//{
		//	//jQuery("#facebook_iframe").animate({ width: 'show' });
		//	jQuery("#facebook_iframe").animate({ right: '0px' });
		//});
		jQuery("#facebook_iframe").mouseleave(function()
		{
			//if(fb_social_icon_state == 1)
			//{
				//jQuery("#facebook_iframe").animate({ width: 'hide' });
				jQuery("#facebook_iframe").animate({ right: '-312px' }, 
					{
						duration: 500,
						queue: false
						//complete: function() 
						//{
      						//	fb_social_icon_state = 0;
    						//}
    					}
				);
			//}
		});
		
		
			});
