
function positioneerElement() {
    $breedte = ($(window).width() - 1124) / 2;
        $('#bg_left').css({
            'width': $breedte
        });
        $('.container').css({
            'margin-left': $breedte
        });
        $('#footer').css({
            'margin-left': 101
        });
}
$(document).ready(function () {
							
    function fixhoogte() {
		$sidebar_hoogte = $('#sidebar').height() - 100;
		$content_hoogte = $('#content').height() + 38;
        $hoogteContent = $sidebar_hoogte - 123;

		if ($('#content').hasClass('no_header')){
							$sidebar_hoogte = $('#sidebar').height();
							$hoogteContent += 159

			}
						if ($('#content').hasClass('searchh')){
							$sidebar_hoogte = $('#sidebar').height();
							$hoogteContent += 27

			}
            if ($sidebar_hoogte > $content_hoogte) {

                $('#content').css({
                    "height": $hoogteContent
                });
            }

    }
	fixhoogte();
    $ct = $('#numbers .center').children().size() * 47;
    $('#numbers .center').css({
        'width': $ct
    });
    $('#flickr div a').css({
        opacity: 0.6
    });
    $('#flickr div a').hover(function () {
        $(this).animate({
            opacity: 1
        },
        300);
    },
    function () {
        $(this).animate({
            opacity: 0.6
        },
        300);
    });
    $('.lastfm_recent_image a').css({
        opacity: 0.6
    });
    $('#lastfm_recent li').hover(function () {
        $(this).find('.lastfm_recent_image a').css({
            'opacity': 1
        });
    },
    function () {
        $(this).find('.lastfm_recent_image a').css({
            'opacity': 0.6
        });
    });
    $(".entry").each(function () {
        if ($(this).find('.tags span').children().size() == 0) {
            $(this).find('.tags').hide();
        }
    });
    $(".website").each(function () {
        if ($(this).find('a').attr("href") == "") {
            $(this).remove();
        }
    });
    $('#twitter a').hover(function () {
        $(this).parent().css({
            "backgroundPosition": "left bottom",
            "height": "41px"
        });
        $(this).css({
            "backgroundPosition": "left bottom",
            "height": "41px"
        });
        $(this).find("span").css({
            "backgroundPosition": "right bottom",
            "paddingTop": "8px"
        });
    },
    function () {
        $(this).parent().css({
            "backgroundPosition": "left top",
            "height": "33px",
            "overflow": "hidden"
        });
        $(this).css({
            "backgroundPosition": "left top",
            "height": "33px"
        });
        $(this).find("span").css({
            "backgroundPosition": "right top",
            "paddingTop": "0px"
        });
    });
    $('.wp-caption').hover(function () {
        $(this).css({
            "border": "1px solid #64b9e2"
        });
    },
    function () {
        $(this).css({
            "border": "1px solid #D9D8C9"
        });
    });
    positioneerElement();
    $("#flickr div a:eq(2) img").attr({
        src: " wp-content/themes/hypowired/images/niets.gif"
    });
	$('.widget:eq(0)').css({marginTop:0})
    $("#flickr div a:eq(2)").removeAttr("href", "title");
    $("#flickr div:eq(2) > img").remove();
    $('#submit').hover(function () {
        $(this).attr({
            src: " wp-content/themes/hypowired/images/submitcommenth.png"
        });
    },
    function () {
        $(this).attr({
            src: " wp-content/themes/hypowired/images/submitcomment.png"
        });
    });
    $('#leaveacomment').hover(function () {
        $(this).attr({
            src: " wp-content/themes/hypowired/images/leave_comment2h.png"
        });
    },
    function () {
        $(this).attr({
            src: " wp-content/themes/hypowired/images/leave_comment2.png"
        });
    });
    $('.dag span').each(function () {
        $datum = jQuery.trim($(this).html());
        $een = $datum.substring(0, 1);
        $twee = $datum.substring(1, 2);
        $imgeen = "wp-content/themes/hypowired/images/" + $een + ".png";
        $imgtwee = "wp-content/themes/hypowired/images/" + $twee + ".png";
        $(this).parent().find("img:eq(0)").attr({
            src: $imgeen
        });
        $(this).parent().find("img:eq(1)").attr({
            src: $imgtwee
        });
        $(this).remove();
    });
    $('.entry ol').each(function () {
        $positie = 0;
        $(this).find('li').each(function () {
            $positie += 1;
            $(this).css({
                "backgroundImage": "url(wp-content/themes/hypowired/images/li_" + $positie + ".png)"
            });
        })
    });
    $("blockquote").wrap("<div class='blockquote'><div></div></div>");;
});
$(window).resize(function () {
    positioneerElement();
});
/*function positioneerElement(){$breedte=($(window).width()-1124)/2;if($breedte){$('#bg_left').css({'width':$breedte});$('.container').css({'margin-left':$breedte});$('#footer').css({'margin-left':101});}
else{window.setTimeout(function(){positioneerElement();},100);}}$(document).ready(function(){function fixhoogte(){$hoogteContent=Math.max($('#sidebar').height()-100,$('#content').height()+38);if($hoogteContent){if($('#sidebar').height()-100<$('#content').height()+38){$('#content').css({"height":$hoogteContent});}}
else{window.setTimeout(function(){fixhoogte();},100);}}
$ct=$('#numbers .center').children().size()*47;$('#numbers .center').css({'width':$ct});$('#flickr div a').css({opacity:0.6});$('#flickr div a').hover(function(){$(this).animate({opacity:1},300);},function(){$(this).animate({opacity:0.6},300);});$('.lastfm_recent_image a').css({opacity:0.6});$('#lastfm_recent li').hover(function(){$(this).find('.lastfm_recent_image a').css({'opacity':1});},function(){$(this).find('.lastfm_recent_image a').css({'opacity':0.6});});$(".entry").each(function(){if($(this).find('.tags span').children().size()==0){$(this).find('.tags').hide();}});$(".website").each(function(){if($(this).find('a').attr("href")==""){$(this).remove();}});$('#twitter a').hover(function(){$(this).parent().css({"backgroundPosition":"left bottom","height":"41px"});$(this).css({"backgroundPosition":"left bottom","height":"41px"});$(this).find("span").css({"backgroundPosition":"right bottom","paddingTop":"8px"});},function(){$(this).parent().css({"backgroundPosition":"left top","height":"33px","overflow":"hidden"});$(this).css({"backgroundPosition":"left top","height":"33px"});$(this).find("span").css({"backgroundPosition":"right top","paddingTop":"0px"});});$('.wp-caption').hover(function(){$(this).css({"border":"1px solid #64b9e2"});},function(){$(this).css({"border":"1px solid #D9D8C9"});});positioneerElement();$("#flickr div a:eq(2) img").attr({src:" wp-content/themes/hypowired/images/niets.gif"});$("#flickr div a:eq(2)").removeAttr("href","title");$("#flickr div:eq(2) > img").remove();$('#submit').hover(function(){$(this).attr({src:" wp-content/themes/hypowired/images/submitcommenth.png"});},function(){$(this).attr({src:" wp-content/themes/hypowired/images/submitcomment.png"});});$('#leaveacomment').hover(function(){$(this).attr({src:" wp-content/themes/hypowired/images/leave_comment2h.png"});},function(){$(this).attr({src:" wp-content/themes/hypowired/images/leave_comment2.png"});});$('.dag span').each(function(){$datum=jQuery.trim($(this).html());$een=$datum.substring(0,1);$twee=$datum.substring(1,2);$imgeen="wp-content/themes/hypowired/images/"+$een+".png";$imgtwee="wp-content/themes/hypowired/images/"+$twee+".png";$(this).parent().find("img:eq(0)").attr({src:$imgeen});$(this).parent().find("img:eq(1)").attr({src:$imgtwee});$(this).remove();});$('.entry ol').each(function(){$positie = 0;$(this).find('li').each(function(){$positie+=1;$(this).css({"backgroundImage":"url(wp-content/themes/hypowired/images/li_"+$positie+".png)"});})							 });$("blockquote").wrap("<div class='blockquote'><div></div></div>");
;});$(window).resize(function(){positioneerElement();});*/