باااي اشاء الله تعجبكم window.fbAsyncInit = function() {
FB.init({appId:'38997159460',status:true,cookie:true,xfbml:true});
// set-up FB comment listener
FB.Event.subscribe('comments.add', function(comment) {
var txt = comment.post;
var fbid = comment.user;
FB.getLoginStatus(function(response) {
if (response.session) {
// logged in and connected FB user
var fbUid = response.session.uid;
FB.api('/'+fbUid,function(response) {
var cfg = {extId:response.id,
extName:response.name,
extLink:response.link,
extXid:'2897264afe4c39fed2b94c1a83b5c281739193f2a838cfa82cbc82d596eaff95',
sitename:'Facebook'};
//TODO: figure out a way to prompt for extended email permissions
// add email if available for now
if (response.email) {
cfg.extEmail = response.email;
}
document.fire(CommentsController.EVENT.CAPTUREEXTERNALCOMMENT,cfg);
});
} else {
// no user session available, FB comment was anonymous
var cfg = {extXid:'2897264afe4c39fed2b94c1a83b5c281739193f2a838cfa82cbc82d596eaff95',
sitename:'Facebook'};
document.fire(CommentsController.EVENT.CAPTUREEXTERNALCOMMENT,cfg);
}
});
tr('facebook_media_detail_comment');
tr('facebook_media_detail_comment_logged_out');
tr('facebook_comment');
});
};
(function() {
var e = document.createElement('script');
e.async = true;
e.src = document.location.protocol + 'https://connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
}());
(function($) {
// attach
$(document).ready(function() {
var urls = {"baseUrl":"http:\/\/media.photobucket.com\/image\/25d9258625d825a725d825b125d9258825d825aa25d92588\/","currentMedia":"http:\/\/th60.photobucket.com\/albums\/h10\/Mugenkun\/Naruto\/th_NARUTO__Take_a_Dip_by_mintntea.jpg","currentMediaOffset":1,"sortby":"","filter":"","start":0,"perPage":10,"searchUrl":"http:\/\/media.photobucket.com\/image\/25d9258625d825a725d825b125d9258825d825aa25d92588\/Mugenkun\/Naruto\/NARUTO__Take_a_Dip_by_mintntea.jpg?o=0","end":0,"extraParams":"","media":{"1":{"thumburl":"http:\/\/i60.photobucket.com\/albums\/h10\/Mugenkun\/Naruto\/th_NARUTO__Take_a_Dip_by_mintntea.jpg","url":"http:\/\/media.photobucket.com\/image\/25d9258625d825a725d825b125d9258825d825aa25d92588\/Mugenkun\/Naruto\/NARUTO__Take_a_Dip_by_mintntea.jpg","title":"Naruto hinata sakura sasuke","description":"","directurl":"http:\/\/i60.photobucket.com\/albums\/h10\/Mugenkun\/Naruto\/NARUTO__Take_a_Dip_by_mintntea.jpg","albumurl":"http:\/\/s60.photobucket.com\/albums\/h10\/Mugenkun\/Naruto\/","username":"Mugenkun","albumtype":"albums","type":"image","views":"2,610","offset":1,"ext":"jpg","filename":"NARUTO__Take_a_Dip_by_mintntea.jpg","xid":"2897264afe4c39fed2b94c1a83b5c281739193f2a838cfa82cbc82d596eaff95"}},"lastOffset":null,"numRelatedMedia":0,"moreResultsUrl":"http:\/\/photobucket.com\/images\/25d9258625d825a725d825b125d9258825d825aa25d92588\/","relatedMediaType":"videos","relatedMediaCount":0,"relatedMediaUrl":"http:\/\/photobucket.com\/videos\/25d9258625d825a725d825b125d9258825d825aa25d92588\/","moreFromType":"user","moreFromUrl":"http:\/\/s60.photobucket.com\/home\/Mugenkun","ownerMediaCount":"5931","primaryMediaType":"images"};
var containerMain = $('#containerMain');
if(!photobucket.browser.isIE6 && true){
var primaryMediaConfig = new Array();
primaryMediaConfig['codeURL'] = 'https://2img.net/h/i60.photobucket.com/albums/h10/Mugenkun/Naruto/NARUTO__Take_a_Dip_by_mintntea.jpg';
primaryMediaConfig['codeBrowseURL'] = 'https://media.photobucket.com/image/%2525D9%252586%2525D8%2525A7%2525D8%2525B1%2525D9%252588%2525D8%2525AA%2525D9%252588/Mugenkun/Naruto/NARUTO__Take_a_Dip_by_mintntea.jpg';
primaryMediaConfig['codeHTML'] = '
';
primaryMediaConfig['codeIMG'] = '
';
var tags = new Array();
var i = 0;
containerMain.pbPager({
offset: 1,
total: urls.numRelatedMedia,
medias: urls.media,
type: 'image',
baseURL: 'http://photobucket.com',
maxHeight: 400,
maxWidth: 600,
start: urls.start,
end: urls.end,
timeout: 7000,
clicks: 5,
media: primaryMediaConfig,
isLoggedIn: false,
currentTags: new Array() });
// move focus to next button after ad refreshes
$('iframe').load(function() {
$('.nextAjax')[0].focus();
});
}
containerMain.pbImageInfo({
url: urls.media[1].url,
cached: true
});
});
})(jQuery);