$(function(){$("#btm_hlh5").click(function(){window.location="http://xlive.com/hlh5"});$("#btm_socialme").click(function(){window.location="http://xlive.com/socialme"});$("#btmmenu_applications_tab").click(function(){window.location="http://www.xlive.com/"});$("#btm_hlh5").mouseover(function(){$(this).addClass("hover")});$("#btm_hlh5").mouseout(function(){$(this).removeClass("hover")});$("#btm_socialme").mouseover(function(){$(this).addClass("hover")});$("#btm_socialme").mouseout(function(){$(this).removeClass("hover")});$("#btmmenu_error_section").mouseover(function(){$(this).addClass("hover")});$("#btmmenu_error_section").mouseout(function(){$(this).removeClass("hover")});$("#btmmenu_error_section_click").click(function(){window.location="http://www.xlive.com/login.php?aff=pb"});$("#btm_videos").mouseover(function(){$(this).addClass("hover")});$("#btm_videos").mouseout(function(){$(this).removeClass("hover")});$("#btm_videos").click(function(){window.location="http://www.xlive.com/videos/videos.php"});$("#btm_photos").mouseover(function(){$(this).addClass("hover")});$("#btm_photos").mouseout(function(){$(this).removeClass("hover")});$("#btm_photos").click(function(){window.location="http://www.xlive.com/photos/photos.php"});$("#btm_blogs").mouseover(function(){$(this).addClass("hover")});$("#btm_blogs").mouseout(function(){$(this).removeClass("hover")});$("#btm_blogs").click(function(){window.location="http://www.xlive.com/community/blogs.php"});$("#btm_twitter").mouseover(function(){$(this).addClass("hover")});$("#btm_twitter").mouseout(function(){$(this).removeClass("hover")});$("#btm_twitter").click(function(){window.open("http://twitter.com/xlivedotcom","","")});$("#btm_facebook").mouseover(function(){$(this).addClass("hover")});$("#btm_facebook").mouseout(function(){$(this).removeClass("hover")});$("#btm_facebook").click(function(){window.open("http://www.facebook.com/xLivedotcom","","")});function _(E,_){var F,A,B,C,D;B="http://www.xlive.com/play.php?v="+video_video_id;D="http://www.xlive.com/login.php?ref=XLVVPCT&url="+B;if(video_chat_login==1)video_msg_history=video_msg_history+"<li>Chat is not supported in your browser, please upgraded to latest Firefox or IE7.</li>";else video_msg_history=video_msg_history+"<li>Chat is enabled for login users only, please <span><a href='"+D+"'>Login</a></span> or <span><a href='http://www.xlive.com/signup.php?ref=XLVVPCT' target='_blank' >Signup</a></span>. It's FREE.</li>";F="\t<div id=\"chat_window_wrapper_video\" class=\"chat_window_wrapper_video\"> \t\t\t\t\t\t\t\t\t<div class=\"chat_window\"> \t\t\t\t\t\t\t\t\t\t<div style=\"width: 318px;\" class=\"chat_header\" id=\"chat_header_video\"> \t\t\t\t\t\t\t\t\t\t\t<div class=\"chat_header_name\">"+video_chatroom_name+"</div> \t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t<div id=\"chat_content_"+E+"\" class=\"chat_conv\"  style=\"width: 318px;\"> \t\t\t\t\t\t\t\t\t    <div id=\"chatedit_"+E+"\" class=\"chat_conv_content chatedit\"> \t\t\t\t\t\t\t\t\t\t\t\t<ol id=\"ol_"+E+"\">"+video_msg_history+"\t\t\t\t\t\t\t\t\t\t\t\t</ol> \t\t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t\t<div class=\"chat_input_div\"> \t\t\t\t\t\t\t\t\t\t\t\t<form id=\"chatter_"+E+"\" class=\"chatter\">                             <div class=\"chat_input_icon\"> </div> \t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"chatmessage\" id=\"chatmessage_"+E+"\" maxlength=\"140\" class=\"chat_input\" style=\"width: 290px; height: 18px;\" /> \t\t\t\t\t\t\t\t\t\t\t\t</form> \t\t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t";A="<script> $(\"#chatter_"+E+"\").submit(function(event){             if (video_chat_login == 1) {                 alert(\"Chat is not supported in your browser, please upgraded to latest Firefox or IE7.\");             } else {                 yesno_rtn = confirm(\"Chat is enabled for login users only, do you want to login or signup?  It's FREE.\");                 if (yesno_rtn)                     window.location = \""+D+"\";             }             return false; }\t) </script>";$("#video_chat").append(F+A);$("#chatmessage_"+E).attr("autocomplete","off").focus()}if(typeof(video_play_chat)!="undefined")if(video_play_chat==1)_(video_roomid,video_roomname)})