$(function(){$("#docs h5 a").click(function(){var a=$(this).attr("href");$(a).slideToggle();return false});$(".parameter").hide();$("select, input[type='checkbox'], input[type='radio'], input[type='file']").uniform();$("a.btn[rel='disable']").live("click",function(){$("select, input[type='checkbox'], input[type='radio'], input[type='file']").attr("disabled",true);$.uniform.update();$(this).attr("rel","enable").text("Enable All");return false});$("a.btn[rel='enable']").live("click",function(){$("select, input[type='checkbox'], input[type='radio'], input[type='file']").removeAttr("disabled");$.uniform.update();$(this).attr("rel","disable").text("Disable All");return false});$("a.btn[rel='reset']").click(function(){$("form").get(0).reset();$.uniform.update();return false}); });


 
/* Edited by Dave buckthorpe for ZA Redesign */

/* Pop up window functions for whats it worth and finance calculator*/

function viewWhatsWorthPanel(URL) {
    var dleft = parseInt(self.screenLeft) + 310;
    var dtop = parseInt(self.screenTop) + 110;
    var suggWin = window.open(URL,'whats_worth','width=625,height=537,status=0,toolbar=0,menubar=0,location=0,resizeable=0,scrollbars=0,left=' + dleft + ",top=" + dtop );
    suggWin.focus();
}

// calculator popop window
function calculator(URL){
window.open(URL, 'Help', 'width=510,height=500, left=2, top=2,scrollbars,resizable');
}


// bcard popop window
function bcard(URL){
window.open(URL, 'Help', 'width=550,height=210, left=2, top=2,scrollbars,resizable');
}

