//]*>)/','',()).'");
hide = true;
}
}
// Binding hide hotkeys
$(document).bind("keydown", "Ctrl+Shift+h",function (evt){
hidePage();
return false; }
);
// Custom check boxes
$("input[type=\'checkbox\']").custCheckBox();
$("input[type=\'radio\']").custCheckBox();
$("a.comments").cluetip({
waitImage: false,
width: "300px",
cluezIndex: "900",
showTitle: true,
topOffset: 30,
dropShadow: false,
ajaxCache: false,
arrows: true,
cursor: "pointer",
cluetipClass: "comments",
hoverIntent: {
sensitivity: 1,
interval: 250,
timeout: 250
}
,
fx: { open: "fadeIn", openSpeed: "slow" }
});
$("a.linkinfo").cluetip({
waitImage: false,
width: "350px",
cluezIndex: "900",
showTitle: true,
positionBy: 'mouse',
leftOffset: 40,
dropShadow: false,
ajaxCache: false,
arrows: true,
cursor: "pointer",
cluetipClass: "comments",
hoverIntent: {
sensitivity: 1,
interval: 250,
timeout: 250
}
,
fx: { open: "fadeIn", openSpeed: "slow" }
});
$("a.linktitle").cluetip({
waitImage: false,
width: "155px",
cluezIndex: "900",
showTitle: true,
topOffset: 30,
dropShadow: false,
ajaxCache: false,
arrows: true,
cursor: "pointer",
cluetipClass: "tips",
fx: { open: "fadeIn", openSpeed: "slow" },
hoverIntent: {
sensitivity: 1,
interval: 250,
timeout: 250
}
});
$("#toplist").accordion({
header: "div.title",
autoheight: false
});
$("#toplist").animate({ opacity: "show" }, "fast");
// Cookie shit
$(function() {
// set cookie by date
$('.vote').click(function() {
var date = new Date();
var COOKIE_NAME = $(this).attr("name");
var COOKIE_VALUE = $(this).attr("value");
var votes = $(this).siblings(".votes").html();
votes = parseInt(votes)+1;
var vote_good = $(this).parents("ul").find("li").eq(0).find(".votes").html();
var vote_bad = $(this).parents("ul").find("li").eq(1).find(".votes").html();
if(COOKIE_VALUE == 'vote_good') {
vote_good = votes;
}
else {
vote_bad = votes;
}
date.setTime(date.getTime() + (3 * 24 * 60 * 60 * 1000));
$.cookie(COOKIE_NAME, COOKIE_VALUE, { path: '/', expires: date });
$("#voteresult").load("/index/vote?link_id="+COOKIE_NAME+"&vote=" + COOKIE_VALUE);
$(this).parents("ul").find("li").eq(0).html(vote_good + '
');
$(this).parents("ul").find("li").eq(1).html(vote_bad + '
');
return false;
});
});
});
//]]>