if (typeof(jQuery) != 'undefined') {
	$(document).ready(function() {
		if ($('.contentOverlay')) {
			$('.summaryWrapper, #top_wrapper .contentOverlay, .top_sectie_blok .contentOverlay').each(function(){
				var origTop = $(this).parent().outerHeight() - $(this).outerHeight();
				if(this.className == 'contentOverlay')
					origTop = origTop + 200;
				else
					origTop = origTop;
				$(this).css('top', origTop).data('origTop', origTop).find('*').show();
			}).hover(function(){
				$(this).stop().animate({'top':0}, 200, 'swing');
				$(this).children('.topDiv').children('.elementFooter').addClass('elementFooterOpen');
			}, function(){
				$(this).stop().animate({'top': $(this).data('origTop')}, 200, 'swing');
				$(this).children('.topDiv').children('.elementFooter').removeClass('elementFooterOpen');
			});
		}
	});
}

/* Popup window functions */

function popupUrl(url, width, height) {
  var w = window.open(url,'','toolbar=no,statusbar=no,location=no,scrollbars=no,resizable=yes,width='+width+',height='+height);w.focus();
}

function popupUrlWithAutoScroll(url, width, height) {
  var w = window.open(url,'popup','toolbar=no,width='+width+',height='+height+',directories=no,status=no,location=no,scrollbars=yes,resizable=no,menubar=no');w.focus();
}

function fotovenster(imageurl, caption, copyright, width, height) {
  popupUrl('/jsp/foto_window.jsp?id='+imageurl+'&caption='+caption+'&copyright='+copyright+'&artid='+artid+'&artsec='+artsec+'&artparsec='+artparsec+'&arttit='+arttit, width, height);
}

/* getparameter from url */

function getParameter ( queryString, parameterName ) {
  var parameterName = parameterName + "=";
  if ( queryString.length > 0 ) {
    begin = queryString.indexOf ( parameterName );
    if ( begin != -1 ) {
      begin += parameterName.length;
      end = queryString.indexOf ( "&" , begin );
      if ( end == -1 ) {
        end = queryString.length
      }
      return unescape ( queryString.substring ( begin, end ) );
    }
    return "null";
  }
}

/* Class Act - CSS style manipulation

Possible actions are:

swap
    - replaces class c1 with class c2 in object o.
add
    - adds class c1 to the object o.
remove
    - removes class c1 from the object o.
check
    - test if class c1 is already applied to object o and returns true or false.
*/

function classAct(a,o,c1,c2) // action, object, class 1, class 2
{
  switch (a){
    case 'swap':
      o.className=!classAct('check',o,c1)?o.className.replace(c2,c1):o.className.replace(c1,c2);
    break;
    case 'add':
      if(!classAct('check',o,c1)){o.className+=o.className?' '+c1:c1;}
    break;
    case 'remove':
      var rep=o.className.match(' '+c1)?' '+c1:c1;
      o.className=o.className.replace(rep,'');
    break;
    case 'check':
      return new RegExp('\\b'+c1+'\\b').test(o.className)
    break;
  }
}

// ------------------------------------------------------------------------------------------------------------------------------------------
// add or remove highlight classes on menu item
// ------------------------------------------------------------------------------------------------------------------------------------------

function navset(obj, action) {
  classAct(action, obj, 'hilite');
  setsep(obj, action == 'remove' ? 'newsep' : 'newsept');
}

// ------------------------------------------------------------------------------------------------------------------------------------------
// function that highlights the surrounding separators of a highlighted menu item ( needs to pad the value with zeroes to match the IDs )
// ------------------------------------------------------------------------------------------------------------------------------------------

function setsep(obj, navclass) {
  var navindex = parseInt(obj.id.slice(3,5),10);
  var navrow = (obj.id.slice(0,3));

  var navindexstr = navindex;
  var navindexstrplus = navindex+1;

  if(navindexstr<10){ navindexstr = "0"+navindex; }
  if(navindexstrplus<10){ navindexstrplus = "0"+navindexstrplus; }

/*
  if (navrow == 'bot') {
    console.log(obj.id);

    var offset = $(obj.id).offset();
    console.log( "left: " + offset.left + ", top: " + offset.top );
    obj.style.border="1px solid red";
  }
*/

  if(document.getElementById(navrow+"row"+navindexstr) != null && document.getElementById(navrow+"row"+navindexstr).className != "newsep selekt") {
    document.getElementById(navrow+"row"+navindexstr).className = navclass;
  }

  if(document.getElementById(navrow+"row"+navindexstrplus) != null && document.getElementById(navrow+"row"+navindexstrplus).className != "newsep selekt") {
    document.getElementById(navrow+"row"+navindexstrplus).className = navclass;
  }
}

function niftyLoad(){
  Nifty("div.rounded-right" ,"normal right");
  Nifty("div.rounded-left"  ,"normal left" );
  Nifty("div.rounded"       ,"normal");
  Nifty("h2.rounded-right" ,"normal right");
  Nifty("h2.rounded-left"  ,"normal left" );
  Nifty("h2.rounded"       ,"normal");
  Nifty("h4.rounded-right" ,"normal right");
  Nifty("h4.rounded-left"  ,"normal left" );
  Nifty("h4.rounded"       ,"normal");
}

if (window.addEventListener)
 window.addEventListener("load", niftyLoad, false);
else if (window.attachEvent)
 window.attachEvent("onload", niftyLoad);

/* SWFObject v2.1 - http://code.google.com/p/swfobject/ */

var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();

/* Tooltip lib */

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('4 z=f(){4 6=\'2\';4 k=3;4 A=3;4 B=Q;4 m=H;4 8=H;4 n=R;4 9=S;4 2,t,c,b,h;4 o=7.T?U:V;W{X:f(v,w,I){g(2==Y){2=7.p(\'q\');2.r(\'6\',6);t=7.p(\'q\');t.r(\'6\',6+\'k\');c=7.p(\'q\');c.r(\'6\',6+I);b=7.p(\'q\');b.r(\'6\',6+\'Z\');2.s(t);2.s(c);2.s(b);7.10.s(2);2.5.x=0;2.5.J=\'9(x=0)\';7.11=12.K}2.5.j=\'C\';c.13=v;2.5.D=w?w+\'y\':\'14\';g(!w&&o){t.5.j=\'E\';b.5.j=\'E\';2.5.D=2.L;t.5.j=\'C\';b.5.j=\'C\'}g(2.L>B){2.5.D=B+\'y\'}h=15(2.16)+k;F(2.8);2.8=M(f(){z.G(1)},8)},K:f(e){4 u=o?N.17+7.O.18:e.19;4 l=o?N.1a+7.O.1b:e.1c;2.5.k=(u-h)+\'y\';2.5.A=(l+A)+\'y\'},G:f(d){4 a=9;g((a!=n&&d==1)||(a!=0&&d==-1)){4 i=m;g(n-a<m&&d==1){i=n-a}P g(9<m&&d==-1){i=a}9=a+(i*d);2.5.x=9*.1d;2.5.J=\'9(x=\'+9+\')\'}P{F(2.8);g(d==-1){2.5.j=\'E\'}}},1e:f(){F(2.8);2.8=M(f(){z.G(-1)},8)}}}();',62,77,'||tt||var|style|id|document|timer|alpha||||||function|if|||display|top||speed|endalpha|ie|createElement|div|setAttribute|appendChild|||||opacity|px|tooltip|left|maxw|block|width|none|clearInterval|fade|100|kleurId|filter|pos|offsetWidth|setInterval|event|documentElement|else|300|95|80|all|true|false|return|show|null|bot|body|onmousemove|this|innerHTML|auto|parseInt|offsetHeight|clientY|scrollTop|pageY|clientX|scrollLeft|pageX|01|hide'.split('|'),0,{}))

var DFBtooltip = function () {
	var id = 'tt';
	var top = 3;
	var left = 3;
	var maxw = 300;
	var speed = 100;
	var showtimer = 100;
	var hidetimer = 5000;
	var endalpha = 95;
	var alpha = 80;
	var tt, t, c, b, h;
	var ie = document.all ? true: false;
	return {
		show: function (titel, v, l, w, kleurId) {
			if (tt == null) {
				tt = document.createElement('div');
				tt.setAttribute('id', id);
				t = document.createElement('div');
				t.setAttribute('id', id + 'top');
				c = document.createElement('div');
				c.setAttribute('id', id + kleurId);
				b = document.createElement('div');
				b.setAttribute('id', id + 'bot');
				tt.appendChild(t);
				tt.appendChild(c);
				tt.appendChild(b);
				document.body.appendChild(tt);
				tt.style.opacity = 0;
				tt.style.filter = 'alpha(opacity=0)';
			}
			tt.titel = titel;
			document.onmousemove = this.pos
			tt.style.display = 'block';
			if (v.indexOf("...") > - 1)
				c.innerHTML = '<b>' + titel + '</b><br/>' + v + '<br/><br/><a target="_blank" title="Naar de volledige uitleg op De Financiële Begrippenlijst" href="' + l + '" onclick="tmgEvent(\'links\', \'exit\',\'' + l + '\']);">Meer uitleg op dfbonline.nl</a><br/><img src="/graphics/tooltip/DFB_150.gif"/>';
			else
				c.innerHTML = '<b>' + titel + '</b><br/>' + v+ '<br/><br/><img src="/graphics/tooltip/DFB_150.gif"/>';
			tt.style.width = w ? w + 'px': 'auto';
			if (!w && ie) {
				t.style.display = 'none';
				b.style.display = 'none';
				tt.style.width = tt.offsetWidth;
				t.style.display = 'block';
				b.style.display = 'block'
			}
			if (tt.offsetWidth > maxw) {
				tt.style.width = maxw + 'px'
			}
			h = parseInt(tt.offsetHeight) + top;
			clearInterval(tt.timer);
			tt.timer = setInterval(function () {
				DFBtooltip.fade(1)
			},
			showtimer)
		},
		pos: function (e) {
			var u = ie ? event.clientY + document.documentElement.scrollTop: e.pageY;
			var l = ie ? event.clientX + document.documentElement.scrollLeft: e.pageX;
			tt.style.top = (u - h) + 'px';
			tt.style.left = (l + left) + 'px';
			document.onmousemove = null;
		},
		fade: function (d) {
			var a = alpha;
			if ((a != endalpha && d == 1) || (a != 0 && d == -1)) {
				var i = speed;
				if (endalpha - a < speed && d == 1) {
					i = endalpha - a
				} else if (alpha < speed && d == -1) {
					i = a
				}
				alpha = a + (i * d);
				tt.style.opacity = alpha * .01;
				tt.style.filter = 'alpha(opacity=' + alpha + ')'
			} else {
				clearInterval(tt.timer);
				if (d == -1) {
					tt.style.display = 'none'
				}
				tmgEvent('links', 'tooltip overgeld', tt.titel);
			}
		},
		hide: function () {
			clearInterval(tt.timer);
			tt.timer = setInterval(function () {
				DFBtooltip.fade( - 1)
			},
			hidetimer)
		}
	}
} ();

function navigate(url)
{
  if ((jQuery.browser.msie) && (parseInt(jQuery.browser.version) < 9))
  {
    var referLink = document.createElement('a');
    referLink.href = url;
    document.body.appendChild(referLink);
    referLink.click();
} else {
    location.href = url;
  }
} 

/* Readspeak */

function openAndRead() {
  window.open('','rs','width=380,height=180,toolbar=0');setTimeout("document.rs_form.submit();",500);
}

/* Nifty Corners */

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('n 1H=(L.1l&&L.1I&&1m.1J.Q);n 1K=1L;2c.1J.g=m(1M){o(2d.2e(1M)>=0?1L:Z)};n 1n=1o.1p;6(1N(11)!=\'m\')11=m(){};6(1N(1n)==\'m\')1o.1p=m(){1n();11()};q 1o.1p=m(){11()};m 2f(u,7){6(1H==Z)o;6(1K==Z)2g();n i,v=u.M(","),h=0;6(7==R)7="";6(7.g("2h-12"))h=13(v[0])[0].14;z(i=0;i<v.w;i++)1O(v[i],7);6(7.g("12"))1P(u,h)};m 1O(u,7){n i,I="",J="",v=1Q 1m();6(7!=""){7=7.V("15","1q 1r");7=7.V("17","18 19");7=7.V("I","18 1q");7=7.V("J","19 1r");7=7.V("E","1s");6(7.g("1q")){I="1a";6(!7.g("18"))I="15"}q 6(7.g("18"))I="17";6(7.g("1r")){J="1a";6(!7.g("19"))J="15"}q 6(7.g("19"))J="17"}6(I==""&&J==""&&!7.g("2i")){I="1a";J="1a"}v=13(u);z(i=0;i<v.w;i++){1R(v[i]);6(I!="")1S(v[i],I,7);6(J!="")1T(v[i],J,7)}};m 1S(e,K,7){n d=W("b"),N=4,G="",p,i,A="r",H,B;d.l.1t="-"+O(e,"1U")+"C";d.l.1u="-"+O(e,"1V")+"C";6(7.g("1s")||(B=1b(e))=="E"){B="E";H="E";G=X(e);A="t"}q{H=X(e);G=1v(B,H)}d.l.1W=H;d.S="1w";p=O(e,"2j");6(7.g("1X")){d.l.1x=(p-2)+"C";A+="s";N=2}q 6(7.g("1Y")){d.l.1x=(p-10)+"C";A+="b";N=8}q d.l.1x=(p-5)+"C";z(i=1;i<=N;i++)d.1c(1y(i,K,B,G,A));e.l.2k="0";e.1Z(d,e.2l)};m 1T(e,K,7){n d=W("b"),N=4,G="",p,i,A="r",H,B;d.l.1t="-"+O(e,"1U")+"C";d.l.1u="-"+O(e,"1V")+"C";6(7.g("1s")||(B=1b(e))=="E"){B="E";H="E";G=X(e);A="t"}q{H=X(e);G=1v(B,H)}d.l.1W=H;d.S="1w";p=O(e,"2m");6(7.g("1X")){d.l.1z=(p-2)+"C";A+="s";N=2}q 6(7.g("1Y")){d.l.1z=(p-10)+"C";A+="b";N=8}q d.l.1z=(p-5)+"C";z(i=N;i>0;i--)d.1c(1y(i,K,B,G,A));e.l.2n=0;e.1c(d)};m 1y(20,K,B,G,A){n x=W("b");x.S=A+20;x.l.21=B;x.l.2o=G;6(K=="15"){x.l.2p="0";x.l.1u="0"}q 6(K=="17"){x.l.2q="0";x.l.1t="0"}o(x)};m W(x){o(L.1I(x))};m 1R(e){6(e.Y!=R&&e.Y.22!=R&&e.Y.22==Z)e.l.2r="2s-2t"};m 1P(u,1d){n i,v=u.M(","),t,j,D=[],1e;z(i=0;i<v.w;i++){t=13(v[i]);D=D.2u(t)}z(i=0;i<D.w;i++){6(D[i].14>1d)1d=D[i].14;D[i].l.12="2v"}z(i=0;i<D.w;i++){1e=1d-D[i].14;6(1e>0){t=W("b");t.S="2w";t.l.12=1e+"C";1A=D[i].2x;6(1A.S=="1w")D[i].1Z(t,1A);q D[i].1c(t)}}};m 13(u){n i,j,1f="",P="",1g=u,1h="",1i,k,f,a,s=[],F=[],c;6(u.g("#")){6(u.g(" ")){s=u.M(" ");n 1B=s[0].M("#");6(1B.w==1)o(F);f=L.1l(1B[1]);6(f){v=f.1C(s[1]);z(i=0;i<v.w;i++)F.Q(v[i])}o(F)}q{s=u.M("#");1g=s[0];1f=s[1];6(1f!=""){f=L.1l(1f);6(f)F.Q(f);o(F)}}}6(u.g(".")){s=u.M(".");1g=s[0];P=s[1];6(P.g(" ")){s=P.M(" ");P=s[0];1h=s[1]}}n v=L.1C(1g);6(P==""){z(i=0;i<v.w;i++)F.Q(v[i]);o(F)}z(i=0;i<v.w;i++){c=v[i].S.M(" ");z(j=0;j<c.w;j++){6(c[j]==P){6(1h=="")F.Q(v[i]);q{1i=v[i].1C(1h);z(k=0;k<1i.w;k++)F.Q(1i[k])}}}}o(F)};m X(x){n e=x.23,c;2y(e.2z.2A()!="2B"&&(c=1b(e))=="E")e=e.23;6(c=="E")c="#2C";o(c)};m 1b(x){n c=1D(x,"21");6(c==R||c=="E"||c.g("2D(0, 0, 0, 0)"))o("E");6(c.g("2E"))c=24(c);o(c)};m O(x,K){n p=1D(x,"2F"+K);6(p==R||!p.g("C"))o(0);o(1j(p))};m 1D(x,1E){6(x.Y)o(x.Y[1E]);6(L.25.26)o(L.25.26(x,\'\')[1E]);o(R)};m 24(27){n 1k="",v,h,i;n 28=/([0-9]+)[, ]+([0-9]+)[, ]+([0-9]+)/;n h=28.2G(27);z(i=1;i<4;i++){v=1j(h[i]).29(16);6(v.w==1)1k+="0"+v;q 1k+=v}o("#"+1k)};m 1v(1F,1G){n i,T,U,x,y,r=1Q 1m(3);6(1F.w==4)T=1;q T=2;6(1G.w==4)U=1;q U=2;z(i=0;i<3;i++){x=1j(1F.2a(1+T*i,T),16);6(T==1)x=16*x+x;y=1j(1G.2a(1+U*i,U),16);6(U==1)y=16*y+y;r[i]=2H.2I((x*2b+y*2b)/2J);r[i]=r[i].29(16);6(r[i].w==1)r[i]="0"+r[i]}o("#"+r[0]+r[1]+r[2])};',62,170,'||||||if|options|||||||el||find|||||style|function|var|return||else||||selector||length|||for|btype|color|px|els|transparent|objlist|border|bk|top|bottom|side|document|split|lim|getPadding|selclass|push|null|className|step1|step2|replace|CreateEl|getParentBk|currentStyle|false||NiftyLoad|height|getElementsBySelector|offsetHeight|left||right|tr|br|both|getBk|appendChild|maxh|gap|selid|tag|tag2|v2|parseInt|hex|getElementById|Array|oldonload|window|onload|tl|bl|alias|marginLeft|marginRight|Mix|niftycorners|marginBottom|CreateStrip|marginTop|nc|fs|getElementsByTagName|getStyleProp|prop|c1|c2|niftyOk|createElement|prototype|niftyCss|true|what|typeof|Rounded|SameHeight|new|FixIE|AddTop|AddBottom|Left|Right|background|small|big|insertBefore|index|backgroundColor|hasLayout|parentNode|rgb2hex|defaultView|getComputedStyle|value|regexp|toString|substr|50|String|this|indexOf|Nifty|AddCss|fixed|none|Top|paddingTop|firstChild|Bottom|paddingBottom|borderColor|borderRightWidth|borderLeftWidth|display|inline|block|concat|auto|niftyfill|lastChild|while|tagName|toUpperCase|HTML|FFFFFF|rgba|rgb|padding|exec|Math|floor|100'.split('|'),0,{}))
