function toggle(divid, onoff)
{
if (onoff == 0) document.getElementById(divid).style.display = "none";
else document.getElementById(divid).style.display = "block";
}
function minmax(divid)
{
if (document.getElementById(divid).style.display == "none") document.getElementById(divid).style.display = "block";
else document.getElementById(divid).style.display = "none";
}
function dropmenu(divid)
{
var ourdiv = document.getElementById(divid);
if(ourdiv.style.display == "block") ourdiv.style.display = "none";
else ourdiv.style.display = "block";
return false;
}
function makecookie(name, value, expires, path, domain, secure)
{
var today = new Date();
today.setTime( today.getTime() );
if (expires) expires = expires * 1000 * 60 * 60 * 24;
var expires_date = new Date(today.getTime() + (expires));
document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) +
( ( path ) ? ";path=" + path : "" ) +
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
}
function update(msg)
{
field = document.commentform.message;
if (document.selection)
{
field.focus();
sel = document.selection.createRange();
sel.text = msg;
}
else if (field.selectionStart || field.selectionStart == 0)
{
var startPos = field.selectionStart;
var endPos = field.selectionEnd;
field.value = field.value.substring(0, startPos) + msg + field.value.substring(endPos, field.value.length);
}
else
{
field.value += msg;
}
}
function checkall()
{
$("INPUT[type='checkbox']").attr('checked', 'checked');
}
function uncheckall()
{
$("INPUT[type='checkbox']").attr('checked', '');
}
function counthit(linkid, hittype)
{
var hittype = (hittype == null) ? "regular" : hittype;
var tosend = "http://www.gezondheidsoverzicht.nl/ajax.php?action=counthit" + escape("&") + "linkid=" + linkid + escape("&") + "hittype=" + hittype;
$.get(tosend,{},function(response) {})
}
function imageover(ima)
{
ima.style.borderColor = 'blue';
}
function imageout(ima)
{
ima.style.borderColor = 'black';
}
function sndRequest(vote,id_num,ip_num)
{
var selectit = '#unit_long'+id_num;
var element = $(selectit);
element.html('
Loading ...
');
$.post("http://www.gezondheidsoverzicht.nl/ajax.php",{ j: vote, q: id_num, t: ip_num },
function(xml)
{
var update = new Array();
if(xml.indexOf('|') != -1)
{
update = xml.split('|');
toselect = '#' + update[0];
$(toselect).html(update[1]);
}
});
}
function changeText(div2show, text)
{
var selectit = '#' + divtoshow;
$(selectit).html(text);
}
function selectstyle(stylename)
{
var i, cacheobj, altsheets=[""]
if (document.getElementById)
{
for(i=0; (cacheobj=document.getElementsByTagName("link")[i]); i++)
{
if (cacheobj.getAttribute("rel").toLowerCase()=="alternate stylesheet")
{
cacheobj.disabled = true;
altsheets.push(cacheobj);
if(cacheobj.getAttribute("title") == stylename) cacheobj.disabled = false;
}
}
makecookie("stylesheet", stylename, 365);
$.post("http://www.gezondheidsoverzicht.nl/index.php", "action=setstyle&style="+stylename+"&userauthcode=6f97ecbffc0b");
}
}
function login()
{
if ($('#loginmarker').is(':visible')) $('#loginmarker').fadeOut().removeClass('quicklogin');
else $('#loginmarker').addClass('quicklogin').fadeIn();
}
/*
* Thickbox 3 - One Box To Rule Them All.
* By Cody Lindley (http://www.codylindley.com)
* Copyright (c) 2007 cody lindley
* Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/
var tb_pathToImage = "/templates/images_default/loadingAnimation.gif";
eval(function(p,a,c,k,e,r){e=function(c){return(c35?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}('$(o).2S(9(){1u(\'a.18, 3n.18, 3i.18\');1w=1p 1t();1w.L=2H});9 1u(b){$(b).s(9(){6 t=X.Q||X.1v||M;6 a=X.u||X.23;6 g=X.1N||P;19(t,a,g);X.2E();H P})}9 19(d,f,g){3m{3(2t o.v.J.2i==="2g"){$("v","11").r({A:"28%",z:"28%"});$("11").r("22","2Z");3(o.1Y("1F")===M){$("v").q("<4 5=\'B\'>4><4 5=\'8\'>4>");$("#B").s(G)}}n{3(o.1Y("B")===M){$("v").q("<4 5=\'B\'>4><4 5=\'8\'>4>");$("#B").s(G)}}3(1K()){$("#B").1J("2B")}n{$("#B").1J("2z")}3(d===M){d=""}$("v").q("<4 5=\'K\'><1I L=\'"+1w.L+"\' />4>");$(\'#K\').2y();6 h;3(f.O("?")!==-1){h=f.3l(0,f.O("?"))}n{h=f}6 i=/\\.2s$|\\.2q$|\\.2m$|\\.2l$|\\.2k$/;6 j=h.1C().2h(i);3(j==\'.2s\'||j==\'.2q\'||j==\'.2m\'||j==\'.2l\'||j==\'.2k\'){1D="";1G="";14="";1z="";1x="";R="";1n="";1r=P;3(g){E=$("a[@1N="+g+"]").36();25(D=0;((D&1d;&1d;2T &2R;1e>"}n{1D=E[D].Q;1G=E[D].u;14="<1e 5=\'1U\'>&1d;&1d;&2O; 2N1e>"}}n{1r=1b;1n="1t "+(D+1)+" 2L "+(E.1c)}}}S=1p 1t();S.1g=9(){S.1g=M;6 a=2x();6 x=a[0]-1M;6 y=a[1]-1M;6 b=S.z;6 c=S.A;3(b>x){c=c*(x/b);b=x;3(c>y){b=b*(y/c);c=y}}n 3(c>y){b=b*(y/c);c=y;3(b>x){c=c*(x/b);b=x}}13=b+30;1a=c+2G;$("#8").q("<1I 5=\'2F\' L=\'"+f+"\' z=\'"+b+"\' A=\'"+c+"\' 23=\'"+d+"\'/>"+"<4 5=\'2D\'>"+d+"<4 5=\'2C\'>"+1n+14+R+"4>4><4 5=\'2A\'>1l 1k 1j 1s4>");$("#Z").s(G);3(!(14==="")){9 12(){3($(o).N("s",12)){$(o).N("s",12)}$("#8").C();$("v").q("<4 5=\'8\'>4>");19(1D,1G,g);H P}$("#1U").s(12)}3(!(R==="")){9 1i(){$("#8").C();$("v").q("<4 5=\'8\'>4>");19(1z,1x,g);H P}$("#1X").s(1i)}o.1h=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}n 3(I==3k){3(!(R=="")){o.1h="";1i()}}n 3(I==3j){3(!(14=="")){o.1h="";12()}}};16();$("#K").C();$("#1L").s(G);$("#8").r({Y:"T"})};S.L=f}n{6 l=f.2r(/^[^\\?]+\\??/,\'\');6 m=2p(l);13=(m[\'z\']*1)+30||3h;1a=(m[\'A\']*1)+3g||3f;W=13-30;V=1a-3e;3(f.O(\'2j\')!=-1){1E=f.1B(\'3d\');$("#15").C();3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"4><4 5=\'2e\'>1l 1k 1j 1s4>4> ")}n{$("#B").N();$("#8").q(" ")}}n{3($("#8").r("Y")!="T"){3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"4><4 5=\'2e\'>1l 1k 1j 1s4>4><4 5=\'F\' J=\'z:"+W+"p;A:"+V+"p\'>4>")}n{$("#B").N();$("#8").q("<4 5=\'F\' 3c=\'3b\' J=\'z:"+W+"p;A:"+V+"p;\'>4>")}}n{$("#F")[0].J.z=W+"p";$("#F")[0].J.A=V+"p";$("#F")[0].3a=0;$("#1H").11(d)}}$("#Z").s(G);3(f.O(\'37\')!=-1){$("#F").q($(\'#\'+m[\'26\']).1T());$("#8").24(9(){$(\'#\'+m[\'26\']).q($("#F").1T())});16();$("#K").C();$("#8").r({Y:"T"})}n 3(f.O(\'2j\')!=-1){16();3($.1q.35){$("#K").C();$("#8").r({Y:"T"})}}n{$("#F").34(f+="&1y="+(1p 33().32()),9(){16();$("#K").C();1u("#F a.18");$("#8").r({Y:"T"})})}}3(!m[\'1A\']){o.21=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}}}}31(e){}}9 1m(){$("#K").C();$("#8").r({Y:"T"})}9 G(){$("#2Y").N("s");$("#Z").N("s");$("#8").2X("2W",9(){$(\'#8,#B,#1F\').2V("24").N().C()});$("#K").C();3(2t o.v.J.2i=="2g"){$("v","11").r({A:"1Z",z:"1Z"});$("11").r("22","")}o.1h="";o.21="";H P}9 16(){$("#8").r({2U:\'-\'+20((13/2),10)+\'p\',z:13+\'p\'});3(!(1V.1q.2Q&&1V.1q.2P<7)){$("#8").r({38:\'-\'+20((1a/2),10)+\'p\'})}}9 2p(a){6 b={};3(!a){H b}6 c=a.1B(/[;&]/);25(6 i=0;i