var $$ = jQuery.noConflict();
	$$(document).ready(function()
		{

			$$("body").append("<div id='ChatPopup'><div><a class='Chatlink' href='javascript:void(0);'><img src='http://vixenhill.com/phpLiveHelper/onlinestatus.php'></a><br><a class='CloseLink' href='javascript:void(0);'>Close</a></div></div>");
			
			$$("div#ChatPopup a.CloseLink").click(function()
				{
					clearInterval(ScrollInterval);
					$$("div#ChatPopup").remove();
				});
			
			$$("div#ChatPopup a.Chatlink").click(function()
				{
					startchat('','');
				});
			
			$$("div#ChatPopup img").animate({bottom: 0}, 1000).animate({bottom: 35}, 200).animate({bottom: 0}, 200);
			$$("div#ChatPopup a.CloseLink").animate({bottom: 82}, 1000).animate({bottom: 117}, 200).animate({bottom: 82}, 200);
			PopDiv = $$('div#ChatPopup div');
			
			if ($$('div#ChatPopup').css('position') != 'fixed')
			{
			ScrollInterval = setInterval("UpdateScroll()", 200);
			}
			
		});
		
		function UpdateScroll()
		{
			if (LastScrollTop != $$(this).scrollTop())
			{
				PopDiv.animate({top: $$(this).scrollTop()}, 200);
			}
			LastScrollTop = $$(this).scrollTop();
		}
		var LastScrollTop = 0;
		var ScrollInterval;
