(function() {

  document.write('<style type="text/css">#chuxchatArea a:visited, #chuxchatArea a:active, #chuxchatArea a:link { color: #527CCE; text-decoration: none; }#chuxchatArea a:hover, #chuxchatArea a:visited:hover { color: #ff9933; text-decoration: none;}</style><div id="chuxchat" style="position:fixed;bottom:0px;right:0px;text-align:right;z-index:99998;"><table border="0" cellpadding="0" cellspacing="0" height="20" style="line-height:0px;padding:0px;margin:0px"><tr style="padding:0px;margin:0px"><td valign="top" style="padding:0px;margin:0px"><img src="http://www.freestyleforum.net/chatmini/Left.gif" width="3" height="20" style="padding:0px;margin:0px;border:0;"></td><td id="chuxchatArea" style="height:20px;background:url(http://www.freestyleforum.net/chatmini/Mid.gif) top left repeat-x;font-family: Arial, sans-serif;font-size:10px;color:#666666;vertical-align:middle;line-height:10px;letter-spacing:0px;text-transform:none;">&nbsp;<div id="fireflyPeopleOn" style="font-weight:bold;display:inline"></div>&nbsp; <div id="fireflyInFirefly" style="font-weight:bold;display:inline"><img src="http://www.freestyleforum.net/chat/online.php?font_size=8&size_y=10&red=00&green=00&blue=00&bg_red=239&bg_blue=239&bg_green=239" border="0" align="abstop"></img></div>&nbsp;<a href="javascript:Start(\'http://www.freestyleforum.net/chatizen.php\')";" >Online</a> <img src="http://www.freestyleforum.net/chatmini/Bar.gif" width="2" height="10" style="margin:0px;padding:0px;border:0;vertical-align:bottom;padding-left:3px;padding-right:3px;"> <a href="javascript:Start(\'http://www.freestyleforum.net/chat\')";" >Start Chatting</a> <img src="http://www.freestyleforum.net/chatmini/barBar.gif" width="2" height="10" style="padding:0px;margin:0px;border:0;vertical-align:bottom;padding-left:3px;padding-right:3px;"> <a href="javascript:void(0)" onClick="document.getElementById(\'chuxchat\').style.display=\'none\';">Close</a>&nbsp; </td><td valign="top" style="padding:0px;margin:0px"><img src="http://www.freestyleforum.net/chatmini/Right.gif" width="3" height="20" style="padding:0px;margin:0px;border:0"></td><td width="12" style="font-size:10px">&nbsp;</td></tr></table></div>');

  var agt = navigator.userAgent.toLowerCase();
  var chuxchatUserFunc = undefined;
  var cmode = document.compatMode;

  if (agt.indexOf("msie") != -1 && (cmode == undefined || cmode != "CSS1Compat" || agt.indexOf("msie 7") == -1))
  {
    if (window.onscroll)
      chuxchatUserFunc = window.onscroll;
    window.onscroll = function()
    {
      var top = document.documentElement.scrollTop; 
      var left = document.documentElement.scrollLeft; 

      if (top == 0 && document.body.scrollTop)
      {
	top = document.body.scrollTop;
	left = document.body.scrollLeft;
      }

      document.getElementById('chuxchat').style.top = top + document.documentElement.clientHeight - 20;//document.getElementById('chuxchat').offsetHeight;
      document.getElementById('chuxchat').style.left = left + document.documentElement.clientWidth - ((agt.indexOf("msie 7")!=-1)?400:document.getElementById('chuxchat').offsetWidth);

      if (chuxchatUserFunc != undefined)
	chuxchatUserFunc();
    }

    document.getElementById('chuxchat').style.position = "absolute";
  }


 })()

function Start(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,width=533,height=536");
}
