jQuery.fn.layOut = function() { browser.safari && jQuery("input[type=file]").css({ backgroundColor: "transparent", border: "none" }); if (browser.winIE6Down) { jQuery("img[src$=.png]").ifixpng(); try { document.execCommand("BackgroundImageCache", false, true) } catch (a) { } } if (browser.winIE) { jQuery("input:checkbox, input:radio, input:hidden").css({ border: "none", background: "none" }); jQuery("#container.wide .right-pane:first").insertBefore("#container.wide .content-pane"); jQuery("#frontend .btn-sidebar").corner("4px"); jQuery("#frontend .rnd-small").corner("4px"); jQuery("#frontend .rnd-big").corner("8px"); jQuery("#frontend #toolbar").corner("4px"); jQuery("#frontend #toolbar a").corner("4px"); jQuery("#frontend .toolbarUser a").corner("4px") } }; jQuery.fn.fontSize = function() { jQuery.each(["txt-size-01", "txt-size-02", "txt-size-03"], function(b, c) { jQuery("." + c).click(function(d) { d.preventDefault(); jQuery("body").removeClass(); jQuery.cookie("fontSize", c, { path: "/", expires: -1 }); c != "txt-size-01" && jQuery("body").addClass(c); return false }) }); var a = jQuery.cookie("fontSize"); a && a != "" && a != "txt-size-01" && jQuery("body").addClass(a) }; jQuery.fn.toggleVal = function() { return this.focus(function() { if (this.value == this.defaultValue) this.value = "" }).blur(function() { if (!this.value.length) this.value = this.defaultValue }) }; jQuery.fn.toggleSeq = function(a, b, c) { jQuery("#" + a + " li a:first").addClass(c); jQuery("#" + a + " li div:first").show(); jQuery("#" + a + " li a").click(function() { var d = jQuery(this).next(); if (d.is("div.drempel")) { if (!d.is(":visible")) { jQuery("#" + a + " li a").removeClass(c); jQuery(this).addClass(c); jQuery("#" + a + " div.drempel:visible").animate({ height: "toggle" }, { queue: true, duration: 600 }); d.animate({ height: "toggle" }, { queue: true, duration: 600 }) } return false } }) }; jQuery.fn.toggleDiv = function(a, b, c, d) { return this.toggle(function() { var e = jQuery("#" + this.href.split("#")[1]); jQuery(this).text(b); jQuery(this).removeClass(c); jQuery(this).addClass(d); e.animate({ height: "toggle" }, { queue: false, duration: 600 }) }, function() { var e = jQuery("#" + this.href.split("#")[1]); jQuery(this).text(a); jQuery(this).removeClass(d); jQuery(this).addClass(c); e.animate({ height: "toggle" }, { queue: false, duration: 400 }) }) }; jQuery.fn.tooltip = function() { xOffset = -20; yOffset = 0; jQuery("a.tooltip, span.insight-none").hover(function(a) { this.t = this.title; this.title = ""; if (jQuery(this).hasClass("insight")) { jQuery("body").append("<p id='tooltip'>" + this.t + "</p>"); jQuery("#tooltip").css("top", a.pageY - xOffset + "px").css("left", a.pageX + yOffset + "px").fadeIn("fast") } }, function() { this.title = this.t; jQuery("#tooltip").remove() }); jQuery("a.tooltip, span.insight-none").mousemove(function(a) { jQuery("#tooltip").css("top", a.pageY - xOffset + "px").css("left", a.pageX + yOffset + "px") }) }; function strikeTrough(a) { $(a).toggleClass("strikeTrough") } function checkEntry(a, b) { if (!a.defTxt) { a.defTxt = b; a.onblur = function() { trimField(this); with (this) if (value == "" || value == defTxt) { value = defTxt; a.style.color = "#a5acb2" } } } if (a.value == a.defTxt) { a.value = ""; a.style.color = "#000000" } } function trimField(a) { var b = a.value.replace(/^ +| +$/g, ""); a.value = b } function createMouseOvers() { var a = 0, b = document.images; prelImgs = []; for (var c = 0; c < b.length; c++) { var d = b[c]; if (d.src.indexOf("_out") != -1) { var e = d.src, f = e.length, g = e.substring(f - 4, f); d.outSrc = e; d.overSrc = e.substring(0, f - 8) + "_over" + g; d.onmouseover = function() { this.src = this.overSrc }; d.onmouseout = function() { this.src = this.outSrc }; prelImgs[a] = new Image; prelImgs[a].src = d.overSrc; a++ } } } jQuery.fn.externalLinks = function() { for (var a = location.href.split("/")[2], b = Array("doc", "xls", "pdf"), c = document.getElementsByTagName("A"), d = 0; d < c.length; d++) { for (var e = c[d], f = e.href, g = f.substring(f.length - 4, f.length).toLowerCase(), i = false, h = 0; h < b.length; h++) if (g == "." + b[h]) { i = true; break } if (f.split("/")[2] != a && f.indexOf("mailto:") == -1 && f.indexOf("javascript:") == -1 || i) { $(e).addClass("external"); e.onclick = function() { window.open(this.href); return false } } } }; function addEvent(a, b, c, d) { if (a.addEventListener) { a.addEventListener(b, c, d); return true } else if (a.attachEvent) return a.attachEvent("on" + b, c); else a["on" + b] = c } function ascendDOM(a, b) { for (; a.nodeName.toLowerCase() != b && a.nodeName.toLowerCase() != "html"; ) a = a.parentNode; return a.nodeName.toLowerCase() == "html" ? null : a } function hi_cell(a) { var b; if (window.event && window.event.srcElement) b = window.event.srcElement; if (a && a.target) b = a.target; if (b) { b = ascendDOM(b, "td"); if (b != null) { a = ascendDOM(b, "tr"); if (a != null) if (ascendDOM(a, "table") != null) a.className += " hi" } } } function hi_cell_def(a) { var b; if (window.event && window.event.srcElement) b = window.event.srcElement; if (a && a.target) b = a.target; if (b) { b = ascendDOM(b, "td"); if (b != null) { a = ascendDOM(b, "tr"); if (a != null) if (ascendDOM(a, "table") != null) if (a.className.indexOf("hi_def") > -1) a.className = a.className.replace(/\b ?hi_def\b/, ""); else a.className += " hi_def" } } } function lo_cell(a) { var b; if (window.event && window.event.srcElement) b = window.event.srcElement; if (a && a.target) b = a.target; if (b) { b = ascendDOM(b, "td"); if (b != null) { a = ascendDOM(b, "tr"); if (b != null) { var c = ascendDOM(a, "table"); if (b != null) a.className = a.className.replace(/\b ?hi\b/, "") } } } } function addListeners() { if (document.getElementsByTagName) for (var a = document.getElementsByTagName("td"), b = 0; b < a.length; b++) { addEvent(a[b], "mouseover", hi_cell, false); addEvent(a[b], "mouseout", lo_cell, false); addEvent(a[b], "click", hi_cell_def, false) } } function fnMy_CheckboxSelected() { for (var a = false, b = document.getElementById("checkboxTable").getElementsByTagName("input"), c = 0; c < b.length; c++) if (b.item(c).checked) a = true; a || alert("Selecteer een of meer artikel(en) voor download."); return a } jQuery(function() { jQuery(".drempel").css({ display: "none" }); jQuery(".noscript").css({ display: "block !important" }); jQuery("ul.nav li").hover(function() { $(this).addClass("active") }, function() { $(this).removeClass("active") }); $(document).ready(function() { $("a.open-options").live("click", function() { $(".page-container").slideToggle(); return false }) }); window.addListeners(); jQuery("html").externalLinks(); jQuery("html").layOut(); jQuery("html").fontSize(); jQuery("html").tooltip(); jQuery(".togval").toggleVal() }); function fnOpenSendAFriend(a) { a = jQuery("base")[0].href + "Popin/SendAFriend.aspx?strUrl=" + encodeURI(a); return Aspacts.Idios3.I_CAP.Scripting.InlineWin.OpenPopinUrlStyle(a, 440, 440, true, "Rabo") } function fnOpenVideo(a, b) { a = jQuery("base")[0].href + "Popin/Video.aspx?strVideoUrl=" + encodeURI(a) + "&strTitle=" + encodeURI(b); return Aspacts.Idios3.I_CAP.Scripting.InlineWin.OpenPopinUrlStyle(a, 535, 380, true, "Rabo") } function fnSwitchJargon() { jQuery(".page-options-jargon").text() == "Jargon verklaard" ? jQuery(".page-options-jargon").text("Verklaar jargon") : jQuery(".page-options-jargon").text("Jargon verklaard"); jQuery("span.insight, span.insight-none").toggleClass("insight").toggleClass("insight-none") } function fnShowVideo(a) { var b = new SWFObject("/Images/css/raboplayer.swf", "player706", "512", "288", "8", "#FFFFFF", "high"); b.addParam("wmode", "transparent"); b.addVariable("ra_flvar_objid", "player706"); b.addVariable("ra_flobj_height", "288"); b.addVariable("ra_flobj_width", "512"); b.addVariable("ra_flvar_videopath", a); b.write("flashvideo") } function rsTextSelection() { if (document.getSelection) var a = document.getSelection(); else if (document.all) a = document.selection.createRange().text; else if (window.getSelection) a = window.getSelection(); if (document.rs_form) { document.rs_form.selectedtext.value = a; if (!Engine.State.btPageIsAjaxCapable || !Engine.Configuration.btEnableAjax) if (document.rs_form.url) if (!document.rs_form.url.value) if (window.location.href) document.rs_form.url.value = window.location.href; else if (document.location.href) document.rs_form.url.value = document.location.href } } function copyselected() { setTimeout("rsTextSelection()", 50); return true } function openAndRead() { window.open("", "rs", "width=380,height=180,toolbar=0"); setTimeout("document.rs_form.submit();", 500) } document.onmouseup = copyselected; document.onkeyup = copyselected;