$(document).ready(function(){var myFile=document.location.toString();if(myFile.match('#')){var myComment='#'+myFile.split('#')[1];$(myComment).removeClass("com-box");$(myComment).addClass("com-box-active");}});function externalLinks(){if(!document.getElementsByTagName)return;var anchors=document.getElementsByTagName("a");for(var i=0;i<anchors.length;i++){var anchor=anchors[i];if(anchor.getAttribute("href")&&(anchor.getAttribute("rel")=="external"||anchor.getAttribute("rel")=="external nofollow"||anchor.getAttribute("rel")=="nofollow external"))
anchor.target="_blank";}}
window.onload=function(){externalLinks();}
function setFavourite(pic_id,status,type){var url='controllers.php?do=setFavourite&type='+type+'&status='+status+'&pic_id='+pic_id;$('#fav-'+type+'-'+pic_id).load(url);if(type=='fav'&&status=='off')$('#'+type+'-cont-'+pic_id).hide("slow");}
$(function(){$("#commbind").focus(function(){$(this).css({color:"black",background:"#F0F8FF"});})})
$(function(){$("#commbind").blur(function(){$(this).css({color:"#333333",background:"white"});})})
$(document).unbind('keypress');$(document).keydown(function(e){var color=$("#commbind").css("color");if(color=="rgb(51, 51, 51)" || logged == '0'){switch(e.which){case 37:if(previd!="")location.href="http://mellbimbo.eu/view-"+previd+".html"
break;case 39:if(nextid!="")location.href="http://mellbimbo.eu/view-"+nextid+".html"
break;}}}); function postTumblr(pic){$("#tumblr").empty();$("#tumblr").html('<img src="http://mellbimbo.eu/templates/default/images/ajaxload.gif" />');$("#tumblr").load("http://mellbimbo.eu/tumblr.php?url="+pic);}
