if(typeof scriptParsing=='function')scriptParsing('welcome');(function()
{96|1;var a={},b={profileInformation:!0,contactInformation:!0,apiAccess:!0,apiScope:"methods=users.getFriendsByLoggedinSorted,users.get,hubs.getByUser,wwws.create"},c=function()
{96|17;if(dd.ie&&dd.ie<8){this.hyvesError.innerHTML="Via Hyves inloggen is helaas niet mogelijk met Internet Explorer "+dd.ie+", sorry!";return}incrLoading("hyves",!1);this.hyvesError.innerHTML='<span style="font-style: italic; font-weight: normal; color: #222;">Make sure the popup that is opened isn\'t blocked by your browser!</span>';Hyves.connect.login.request(b,mkcb([this,h]))
},d=function(a)
{96|30;incrLoading();a.site=="hyves"?Hyves.connect.api.call("wwws.create",{visibility:"default",emotion:"Chatting with nice people on [url=http://www.tjetter.nl]tjetter.com[/url]!"},function(a)
{96|34;link()
}):ev.send("facebook!Light.facebookPromo",a.token,"Chatting with nice people on www.tjetter.com!",link)
},e=function(a,b,c,e)
{96|41;var f="Hyves",g="http://www.hyves.nl/profilemanage/settings/personal/";if(a.site=="facebook"){f="Facebook";g="http://www.facebook.com/editprofile.php"}if(b<=0){var h,i="Update your <a href='"+g+"' target='_blank'>"+f+" settings</a> and try again..";b==-3?h="There appears to be something wrong with the email address we received from "+f+": '"+(a["ax.value.email"]||"")+"'. "+i+"":b==-4?h=""+f+" doesn't quite know whether you're a man or a woman. "+i+"":b==-5?h="You haven't added your birthday yet on "+f+". "+i+"":b==-6?h="An error occurred. This might have happened because your computer has a faulty time configured. Fix it and try again!":b==-8?h="Your birthdate on "+f+" appears rather odd. "+i+"":b==-7?h="Sorry, you do not have enough "+f+" friends. We enforce a minimum for this, to prevent people from easily creating fake accounts.":h="Sorry, there's something wrong with your account... (code: "+b+") Email: support@tjetter.nl";typeof e=="string"&&(h+=" "+e);this[a.site+"Error"].innerHTML=h;decrLoading()}else if(c){decrLoading();(new Modal({title:"Continue?",content:"Tjetter is more fun if there are a lot of people on it to chat with. The more the merrier!<br /><br />And you can help us with that! Do you mind if we add the text below to your "+f+" feed?<div style='text-align: center; margin: 20px; font-size: 120%;'><em>Chatting with nice people on tjetter.nl!</em></div>",options:["no",[!1,link],"okay!",[d,a]]})).show()}else link()
},f=function(a,b,c)
{96|75;DBG("LOGIN2!");this.hyvesError.innerHTML="";a.site="hyves";ev.send("Light.signin","tjetter.com",a.openid,a.getSignature(),window.pq.cookie,b,c,[this,e,a])
},g=function(a,b)
{96|83;var c=this;Hyves.connect.api.call("hubs.getByUser",{userid:a.openid["ax.value.userid"],ha_resultsperpage:100},function(d)
{96|86;DBG("extraData2: "+toSemiJson(d,5));var e=c.pq=c.pq||window.pq||{};e.cookie?f.call(c,a,b,d):e.onAuth=mkcb([c,f,a,b,d])
})
},h=function(a)
{96|94;var b=this;DBG("onHyvesConnect",a);var c=Hyves.constants.response;if(!a){decrLoading();this.hyvesError.innerHTML="";return}if(a.getStatus()!=c.status.success){decrLoading();this.hyvesError.innerHTML="Login failed...";return DBG("login failed: "+a.getStatus())}Hyves.connect.api.call("users.get",{userid:a.openid["ax.value.userid"],ha_responsefields:"profilepicture,tags,geolocation,relationtype"},function(c)
{96|110;g.call(b,a,c);DBG("extraData1: "+toSemiJson(c,5))
})
},i=0,j=function(a,b,c)
{96|117;var d="fbJsonP_"+i;i+=1;window[d]=function()
{96|122;try{delete window[d]}catch(a){}callback(b,arguments)
};var e=document.createElement("script");e.src="https://graph.facebook.com/"+a+"?"+c+"&callback="+d;document.body.appendChild(e)
},k=["likes","groups","events"],l=function(a)
{96|137;DBG("LOGIN2fb!");this.facebookError.innerHTML="";ev.send("facebook!Light.signinFacebook","tjetter.com",window.pq.cookie,a,[this,e,a])
},m=function(a,b,c)
{96|144;if(!c.data){this.timeout("fbcheck");return e.call(this,a,-9,!1,toJson(c))}DBG("fbmerge: "+b+" "+toJson(c));if(b)a[b]=c.data;else for(var d in c)a[d]=c[d];for(var d=0;d<k.length;d++)if(!a[k[d]||"id"])return;this.timeout("fbcheck");DBG("fbmerge done");pq.cookie?l.call(this,a):pq.onAuth=mkcb([this,l,a])
},n=function(a)
{96|168;DBG("fbconnect: "+a);incrLoading();var b={token:a,site:"facebook"};for(var c=0;c<k.length;c++){var d=k[c];j("me"+(d?"/"+d:""),[this,m,b,d],a)}
},o=function(a)
{96|179;if(a.closed){decrLoading();this.facebookError.innerHTML=""}else this.timeout("fbcheck",[this,o,a],100)
},p=function()
{96|188;incrLoading("facebook",!1);this.facebookError.innerHTML='<span style="font-style: italic; font-weight: normal; color: #222;">Make sure the popup that is opened isn\'t blocked by your browser!</span>';var a=window.open("https://www.facebook.com/dialog/oauth?client_id=194950437200025&redirect_uri="+encodeURIComponent("http://tjetter.com"+"/fblogin?win="+window.name)+"&scope=user_birthday,user_events,user_groups,user_activities,user_interests,user_likes,user_location,user_photos,user_relationships,email,publish_stream&response_type=token",window.name+"fb","toolbar=0,scrollbars=1,location=1,statusbar=0,menubar=0,resizable=1,width=1024,height=800");a&&this.timeout("fbcheck",[this,o,a],1500)
},q=function()
{96|196;var a=localStorage.getItem("fbconnect");localStorage.removeItem("fbconnect");n.call(this,a);window.delCallback("onstorage",[this,q])
};a.finish=function()
{96|204;dd.ie6&&(document.body.style.height="100%");var a=window.urlMsg;a&&(a=escapeHtml(a));a=a?"<div style='margin-top: 20px; font-size: 150%; font-weight: bold; color: #ff0000; text-align: center;'>"+a+"</div>":"";this.msgE.setHtml(a);window.onFacebookConnect=mkcb([this,n]);window.addCallback("onstorage",[this,q]);this.facebookButton.addCallback("onclick",[this,p])
};window.WelcomeFinisher=makeWidget(a)
})();;if(typeof scriptReady=='function')scriptReady('welcome');
