$(function(){$("a[rel*=external]").click(function(){window.open(this.href);
return false
})
});
$(function(){$('a[class*="confirm"]').click(function(d){d.preventDefault();
var b=$(this).attr("href");
var f=$(this).attr("title");
var a=$("span.prompt",this).html();
var c=$("<div></div>").html(a).dialog({resizable:false,title:f,height:150,modal:true,closeOnEscape:true,autoOpen:false,buttons:{Ok:function(){$.ajax({url:b,data:"xhr=true",success:function(){if($(this).hasClass("delete")){$.get("overzicht.do?pagina=index")
}else{location.reload(true)
}}})
},Cancel:function(){$(this).dialog("close")
}}});
c.dialog("open")
})
});
$(function(){$('a[class*="xhr"]').click(function(b){b.preventDefault();
var a=$(this).attr("href");
$.ajax({url:a,data:"xhr=true",success:function(){location.reload(true)
}})
})
});
$(function(){$('a[class*="dialog"]').click(function(c){c.preventDefault();
var a=$(this).attr("href");
var d=$(this).attr("title");
var b=jQuery.FrameDialog.create({url:a,title:d,width:500,height:500,modal:true,buttons:{},hide:"slide",show:"slide",closeOnEscape:true,autoOpen:false}).bind("dialogclose",function(e,f){location.reload(true)
});
b.dialog("open")
})
});
var calculateWordDimensions=function(d,a,c){if(a===undefined){a=[]
}if(c===undefined){c=true
}a.push("textDimensionCalculation");
var e=document.createElement("div");
e.setAttribute("class",a.join(" "));
if(c===true){$(e).text(d)
}else{e.innerHTML=d
}document.body.appendChild(e);
var b={width:jQuery(e).outerWidth(),height:jQuery(e).outerHeight()};
e.parentNode.removeChild(e);
return b
};
