$('fblike_iframe_a').id='fblike_iframe_a1';
var ajaxsent=false;
jq(function(){
FB.Event.subscribe('edge.create', function(href,widget){ fb_like(href) });
set_like_display('');
FB.Event.subscribe('edge.remove', function(href){ fb_unlike(href) });
});
function fb_like(href){
if(href=='http://www.getjetso.com/forum/viewthread.php?tid=311686' || href=='http://www.getjetso.com/forum/thread-311686-1-1.html' ||
href=='http://www.getjetso.info/forum/viewthread.php?tid=311686' || href=='http://www.getjetso.info/forum/thread-311686-1-1.html' ||
href=='http://getjetso.info/t311686' || href=='http://jetso.info/t311686'){
//&& typeof(reply_hidden)!='undefined' && ajaxsent==false){
jq.get('misc.php?action=update-fblike&tid=311686&type=like');
return '';
ajaxsent=true;
set_like_display('');
jq("#fb_hide_block").removeClass().html('

資料正在載入中,請稍等一下。');
jq.post('./viewthread.php?action=paging&pid=676074&tid=311686',{tagkey: 'b69e'},function(res){
jq('#postmessage_676074').html(res);
});
}else if(href.match(/www\.facebook\.com/)){
}
}
//jq.post("/forum/include/javascript/fb-like.php", {like: 1} );
function fb_unlike(href){
if(href.match(/www\.facebook\.com/)){
setcookie('fbpage_','',-16678400000,'/','');
}
}
function set_like_display(show){
jq('#fblike_iframe_a').show();
jq('#fblike_iframe_a1').show();
}
jq('#fb_like_page').show();
jq("#vtright").show();
var _fb=jq("#fb_like_bar").offset();
var _bo; var _fb_bar=false;_fb=_fb.top+110;
var _vt_right_end=jq("#vt_right_end").offset();
var _vt_right_pos_left=_vt_right_end.left;
_vt_right_end=_vt_right_end.top; var _vt_right_box=false;
jq(window).scroll(function () {
_bo=jq(window).scrollTop() ;
//like bar
if(_bo >_fb && _fb_bar==false){
jq("#fb_like_bar").attr("class","fb_top").fadeIn("slow"); _fb_bar=true;
}else if(_fb >_bo){
jq("#fb_like_bar").removeClass('fb_top'); _fb_bar=false;
}
if(_bo >_vt_right_end && _vt_right_box==false){ jq("#_ad_fix_id").attr("class","vt_right_box_top").fadeIn("slow"); _vt_right_box=true;
if(jq.browser.msie){jq("#_ad_fix_id").css('left',_vt_right_pos_left)};
}else if(_bo < _vt_right_end){ jq("#_ad_fix_id").removeClass('vt_right_box_top').attr('class','box'); _vt_right_box=false; }
});
jq(function ($){
$.fn.related_thread = function() {
return this.each(function() {$(this).bind('click',function(){jq.post("ajax.php?action=rt-trace", { url: this.href});return true;});});
}
$.fn.trace_tag = function() {
return this.each(function() {$(this).bind('click',function(){if(this.title==''){return true;}jq.post("ajax.php?action=trace-tag", { name: this.title});return true;});});
}
}(jQuery));
jq(function(){
jq('.relatedtag li a').related_thread();
jq('.posttags a').trace_tag();
//jq('.ysm_search_keyword a').trace_ysm_kw();
});