function moveButtoncontainer(){jQuery('.addreactionblock .formholder, .mailafriendblock .formholder').each(function(){var t = this;var buttonContainer = jQuery('.button-container', t);jQuery(t).after(buttonContainer);});}function makeButton(){jQuery('.jobreactionblock a, .button-container input, .button-container a, .buttons input, .quickorder input, .checkout a, .button-container ul li a, .categorybutton, .mailafriendblock a, .mailagentblock a, .clearbasket a, .basketaddblock a, .objectbasketblock .remove a, .button-container .button, .rssbuttonholder a, .htmlblock div.pdf a').not(jQuery('.linkblock .linkbutton, #login .button-container input')).each(function(){var button = this;if(button.type != 'hidden') {    jQuery(button).wrap('<span class="wrapper"></span>');    jQuery(button).wrap('<span class="candywrapper"></span>');} else {jQuery(button).css('display','none');}});}function mouseOver(){jQuery('.candywrapper a, .candywrapper input').not(jQuery('#left .linkblock .candywrapper a, #right .linkblock .candywrapper a')).mouseover(function(){var disabled = this.getAttribute('disabled');if(!disabled){jQuery(this).addClass('linkhover')}}).mouseout(function(){jQuery(this).removeClass('linkhover')});jQuery('.candywrapper').mouseover(function(){var disabled = this.firstChild != null ? this.firstChild.getAttribute('disabled') : false;if(!disabled){jQuery(this).addClass('hover')}}).mouseout(function(){jQuery(this).removeClass('hover')});}function changeForm(){jQuery('.surveycontainer .q_multipleresponse').each(function() {var t = this;var newDiv = jQuery('<div class="checkboxes">');var spanText = jQuery('.question-text',t);var getTables = jQuery('table',t);var getSelect = jQuery('select',t);var breakIt  = jQuery('br',t);             var element = new Array;var type = new Array;var aantalChilds;if ((getTables.length+getSelect.length)==0){breakIt.remove();aantalChilds = t.childNodes.length;for (var x = 0; x<aantalChilds;x++){if (t.childNodes[x].tagName=='INPUT'){    element[x] = t.childNodes[x];type[x] = t.childNodes[x].tagName;}if (t.childNodes[x].tagName=="LABEL"){element[x] = t.childNodes[x];type[x] = t.childNodes[x].tagName;}}for (var x = 0; x<aantalChilds;x++){if(element[x] =='object');                        {newDiv.append(element[x]);}if(type[x] == 'LABEL'){newDiv.append(jQuery('<br>'));}}spanText.after(newDiv);}});}function hideBlocks(){    if(jQuery('.mm_wysiwyg_container').length == 0) {jQuery('#topItem, #bottomItem, #cbi_left, #cbi_right').each(function() {var t=this;var aantal = jQuery('.block-output', t).length;if(aantal==0) {jQuery(t).hide();}});} }jQuery(function() {hideBlocks();changeForm();moveButtoncontainer();makeButton();mouseOver();});
