function inlinevideo(mid) {
var flashvars={
file:'http://i.juick.com/video/'+mid+'.mp4',
image:'http://i.juick.com/thumbs/'+mid+'.jpg',
skin:'http://static.juick.com/glow.zip'
};
var params={
allowfullscreen:'true'
};
swfobject.embedSWF('http://static.juick.com/player.swf','video-'+mid,'640','390','9.0.115','false',flashvars,params,null);
}
function postformListener(formEl,ev) {
if(ev.ctrlKey && (ev.keyCode==10 || ev.keyCode==13)) formEl.submit();
}
function showMoreReplies(id) {
$('#'+id+' .msg-comments').hide();
var replies=$('#replies>li');
var flagshow=0;
for(var i=0; i');
c.before('');
c.append('');
}
// $('#replies #'+rid+' .msg-links').hide();
$('#replies #'+rid+' .msg-comment').show();
$('#replies #'+rid+' textarea')[0].focus();
$('#replies #'+rid+' textarea').autoResize({
extraSpace: 0,
minHeight: 1
});
return false;
}
function unfoldReply() {
if((0+window.location.hash.substring(1))>0) {
var el=$(window.location.hash);
while(el.is(":hidden")) {
el=el.prev();
}
showMoreReplies(el.attr('id'));
window.location.replace(window.location.hash);
}
}
$(document).ready(function() {
var tareply=$('textarea.reply');
tareply.autoResize({
extraSpace: 0,
minHeight: 1
});
tareply.click(function () {
$(this).addClass("narrow");
$(this).after('');
$(this).off('click');
});
if(!!$('.stickya').offset()) {
var stickyTop = $('.stickya').offset().top;
$(window).scroll(function() {
var windowTop = $(window).scrollTop();
if (stickyTop < windowTop) {
$('.stickya').css({
position:'fixed'
});
} else {
$('.stickya').css('position','absolute');
}
});
}
});