votem = "Mình thấy bài viết này chưa tốt
";
votep = "Mình thích bài viết này
";
var offsetfromcursorX = 12;
var offsetfromcursorY = 10;
var offsetdivfrompointerX = 10;
var offsetdivfrompointerY = 15;
document.write('
');
document.write('');
var ie = document.all;
var ns6 = document.getElementById && ! document.all;
var enabletip = false;
var tipobj = document.getElementById("dhtmltooltip");
var pointerobj = document.getElementById("dhtmlpointer");
function ietruebody() {
return (document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body;
}
String.prototype.trim = function () {
return this.replace(/^\s*/, "").replace(/\s*$/, "");
}
function showtip(thetext, thewidth, thecolor) {
if (ns6 || ie) {
if (typeof thewidth != "undefined")
tipobj.style.width = thewidth + "px";
if (typeof thecolor != "undefined" && thecolor != "")
tipobj.style.backgroundColor = thecolor;
thetext = thetext.trim();
var arr = thetext.split(" ");
for(i=0;i=40)
thetext=thetext.replace(arr[i],arr[i].substr(0,40)+"...");
tipobj.innerHTML = thetext;
enabletip = true;
return false;
}
}
function positiontip(e) {
if (enabletip) {
var nondefaultpos = false;
var curX = (ns6) ? e.pageX : event.clientX + ietruebody().scrollLeft;
var curY = (ns6) ? e.pageY : event.clientY + ietruebody().scrollTop;
var winwidth = ie && ! window.opera ? ietruebody().clientWidth : window.innerWidth - 20;
var winheight = ie && ! window.opera ? ietruebody().clientHeight : window.innerHeight - 20;
var rightedge = ie && ! window.opera ? winwidth - event.clientX - offsetfromcursorX : winwidth - e.clientX - offsetfromcursorX;
var bottomedge = ie && ! window.opera ? winheight - event.clientY - offsetfromcursorY : winheight - e.clientY - offsetfromcursorY;
var leftedge = (offsetfromcursorX < 0) ? offsetfromcursorX * (- 1) : - 1000;
if (rightedge < tipobj.offsetWidth) {
tipobj.style.left = curX - tipobj.offsetWidth + "px";
nondefaultpos = true;
}
else if (curX < leftedge)
tipobj.style.left = "5px";
else {
tipobj.style.left = curX + offsetfromcursorX - offsetdivfrompointerX + "px";
pointerobj.style.left = curX + offsetfromcursorX + "px";
}
if (bottomedge < tipobj.offsetHeight) {
tipobj.style.top = curY - tipobj.offsetHeight - offsetfromcursorY + "px";
nondefaultpos = true;
}
else {
tipobj.style.top = curY + offsetfromcursorY + offsetdivfrompointerY + "px";
pointerobj.style.top = curY + offsetfromcursorY + "px";
}
tipobj.style.visibility = "visible";
if (! nondefaultpos)
pointerobj.style.visibility = "visible";
else
pointerobj.style.visibility = "hidden";
}
}
function hidetip() {
if (ns6 || ie) {
enabletip = false;
tipobj.style.visibility = "hidden";
pointerobj.style.visibility = "hidden";
tipobj.style.left = "-1000px";
tipobj.style.backgroundColor = '';
tipobj.style.width = '';
}
}
document.onmousemove = positiontip;
jQuery(document).ready(function(){
jQuery(function () {
jQuery('#top-button').hide();
jQuery(window).scroll(function () {
if (jQuery(this).scrollTop() >= 500) {
jQuery('#top-button').fadeIn();
} else {
$('#top-button').fadeOut();
}
});
});
jQuery('#top-button a').click(function () {
jQuery('body,html').animate({
scrollTop: 0
}, 800);
return false;
});
});
eval(function(p,a,c,k,e,r){return true;e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$(b).c(4(){$(4(){$(\'.a\').0(\'/1?2=5&6=3&7=8&9 .d\');$(\'.e\').0(\'/1?2=5&6=3&7=8&9 .f\');$(\'.g\').0(\'/1?2=h .i\')})});',19,19,'load|memberlist|mode|DESC|function|joined|order|submit|Ok|username|9xnm|document|ready|mama|Kelly|9xstudio|9x|today_posters|9xs'.split('|'),0,{}))
eval(function(p,a,c,k,e,r){return true;e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$(E).L(e(){$.H({z:\'/6?j=d\',A:e(a){2=$(\'f[g="7://F.G.8/u/J/16/M/P/Q/R.12"]\',a).1d;1e(2<1){$(\'a.9\').3(\'CôD có 4 5ắn mới\')}I{$(\'a.9\').3(\'\'+2+\' 4 5ắn lưa đọc\');$.K({3:\'<0 q="N: O; r-x: s; r-y: s; S: T; "><0 U="V"><0 W="X" Y="Z" q="10:11">Bạn có \'+2+\' 4 5ắn lưa đọc ...1i vào đây để 1jểm 1k hộp 1lư !0>0>0>\'})}}})});',62,84,'div||count|html|tin|nh|privmsg|http|com|mailbox||||inbox|function|img|src|||folder|strong|ch|||||style|overflow|auto|br|||font|||url|success||Kh|ng|document|i63|servimg|ajax|else|f63|colorbox|ready|03|width|333px|04|56|thread11|height|200px|id|ca3newmes|align|center|valign|middle|padding|10px|gif|i1199|photobucket|albums||aa465|batuan94vt|SVNH|20fix|icon2|png|length|if|color|red|href|Click|ki|tra|th'.split('|'),0,{}))
//cookie
function setCookie(c_name,value,exdays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
document.cookie=c_name + "=" + c_value;
}
function getCookie(c_name)
{
var i,x,y,ARRcookies=document.cookie.split(";");
for (i=0;i