$(function(){$(scherm());$(box());$(window).resize(function(){$(scherm());$(box());$(scrollbox());$(afbeeldingen());});});function box(){$(function(){var breedte=$('#container').width();var hoogte=$('#container').height();$("#container-box").css({width:breedte-80,height:hoogte-80});$("#container-box").css({margin:40,padding:0});});}
function scherm()
{$(function(){var x="px";var winbreedte=$(window).width();var winbreedteX=((winbreedte/16)*13.5).toFixed(0);var winhoogte=$(window).height();var winhoogteX=((winbreedteX/16)*9).toFixed(0);var winhoogteXX=String(winhoogteX)+String(x);var winbreedteXX=String(winbreedteX)+String(x);$("#container").css({width:winbreedteXX,height:winhoogteXX});});}
function scrollbox(){var x="px";var breedte=$('#inhoudbox').width();var hoogte=$('#inhoudbox').height();var boxbreed=String(breedte)+String(x);var boxbreed2=String(breedte-20)+String(x);var boxhoog=String(hoogte-120)+String(x);var productbreed=String(breedte-60)+String(x);var producthoog=String(hoogte-170)+String(x);var producthoog2=String(hoogte-190)+String(x);var producthoog3=String(hoogte-220)+String(x);$(".jScrollPaneContainer").css('width',boxbreed);$(".jScrollPaneContainer").css('height',boxhoog);$("#fadeout").css('width',boxbreed2);$("#maincontent").css('width',boxbreed);$("#maincontent").css('height',boxhoog);if($('#artist2').is('.hide')){}
else{$('#maincontent').jScrollPane().stop(true,true);};$("#product_list").css('width',productbreed);$("#product_holder").css('height',producthoog2);$("#product_list").css('height',producthoog);$(".kunstwerkbox").css('width',productbreed);$(".kunstwerkbox").css('height',producthoog);$(".kunstwerk-afbeelding").css('width',productbreed);$(".kunstwerk-afbeelding").css('height',producthoog3);$(".kunstwerk-desc").css('width',productbreed);};function afbeeldingen(){var $actief=$(".kunstwerkbox:visible > div div .browseProductImage");var breedte=$('div.kunstwerkbox').width();var hoogte=$('div.kunstwerkbox').height();var breedte2=breedte-70;var hoogte2=hoogte-(0.08*hoogte);var hoogorg=$actief.height();var breedorg=$actief.width();var kunstbreed=(((hoogte2)/(hoogorg))*breedorg);var kunsthoog=(((breedte2)/(breedorg))*hoogorg);if(hoogorg>breedorg){$actief.attr('height',hoogte2);$actief.attr('width',kunstbreed);$actief.css("border","0px solid #FF6600");}
else if(hoogorg<breedorg){$actief.attr('height',kunsthoog);$actief.attr('width',breedte2);$actief.css("border","0px solid #FF6600");}
else{$actief.attr('height',hoogte2);$actief.attr('width',kunstbreed);$actief.css("border","0px solid #CCC");}};$(document).ready(function(){$('.kunstwerk-desc2').replaceText(/\bSOLD\b/gi,'<div class="sold">&nbsp;<\/div>');});$(document).ready(function(){if($('#current').is('.item7')){$("#links3").css({'display':'block'});}
else{$("#links3").css({'display':'none'});};});$(document).ready(function(){if($('#active_menu').is('.mainlevel')){$("#artistbutton").css({'display':'block'});}
else{$("#artistbutton").css({'display':'none'});};});$(document).ready(function(){$('#container').centerXY();$(scrollbox());});$(document).ready(function(){$("p>img").parent().css({'float':'left','margin-top':'6px'});$("p>img").css({'padding-right':'10px'});$("div.jScrollPaneContainer:not(.jScrollPaneScrollable) div:first-child").css({'padding-right':'23px'});$('#rechts').hover(function(){$(".jScrollPaneTrack").stop().fadeTo('slow',1.0);},function(){$(".jScrollPaneTrack").stop().fadeTo('slow',0.4);});});$(document).ready(function(){if($(".jScrollPaneScrollable").is('div')){$("#fadeout").css({'display':'block'});$("div.article p:last-child").append('<br /><br /><br /><br />');$("#artist2 p:last-child").append('<br /><br /><br /><br />');$(scrollbox());}});$(document).ready(function(){if($('a#active_menu').is('.mainlevel')){$("#fadeout").css({'display':'none'});$('#maincontent').jScrollPaneRemove();return false;}});$(document).ready(function(){$(".switch").addClass('switch-cv');$("#artist2").addClass('hide');$(".switch").click(function(){$("#artist2").toggleClass("hide");$("#product_list").toggleClass("hide2");$(".switch").toggleClass("switch-cv");$(".switch").toggleClass("switch-work");$("#product_list").toggleClass("hide");if($('#artist2').is('.hide')){$('#maincontent').jScrollPaneRemove();$("#fadeout").css({'display':'none'});$(scherm());$(box());$(scrollbox());$(afbeeldingen());return false;}
else{$("#fadeout").css({'display':'block'});$(scrollbox());};});});$(document).ready(function(){$(".kunstwerkbox").css({'display':'none'});var $curr=$(".kunstwerkbox").eq(0);$curr.css("display","block");$(afbeeldingen());$(".next").click(function(){if($("#product_holder .kunstwerkbox").last().is(':visible')){$curr=$(".kunstwerkbox").eq(0);$(".kunstwerkbox").css({'display':'none'});$curr.css("display","block");}
else{$curr=$curr.next();$(".kunstwerkbox").css({'display':'none'});$curr.css("display","block");};$(afbeeldingen());});$(".prev").click(function(){if($("#product_holder .kunstwerkbox").first().is(':visible')){$curr=$("#product_holder .kunstwerkbox").last()
$(".kunstwerkbox").css({'display':'none'});$curr.css("display","block");}
else{$curr=$curr.prev();$(".kunstwerkbox").css({'display':'none'});$curr.css("display","block");};$(afbeeldingen());});});
