
/* Merged Plone Javascript file
 * This file is dynamically assembled from separate parts.
 * Some of these parts have 3rd party licenses or copyright information attached
 * Such information is valid for that section,
 * not for the entire composite file
 * originating files are separated by - filename.js -
 */

/* - input-label.js - */
// http://isc.dse.vic.gov.au/portal_javascripts/input-label.js?original=1
var ploneInputLabel={focus: function(e){var t=jq(e.target);if(t.hasClass('inputLabelActive')&&t.val()==t.attr('title'))
t.val('').removeClass('inputLabelActive')},blur: function(e){var t=jq(e.target);if(!t.val())
t.addClass('inputLabelActive').val(t.attr('title'))},submit: function(e){jq('input[title].inputLabelActive').filter(function(){return jq(this).val()==this.title}).val('').removeClass('inputLabelActive')}};jq(function(){jq('form:has(input[title].inputLabel)').submit(ploneInputLabel.submit);jq('input[title].inputLabel').each(function(){jq(this).focus(ploneInputLabel.focus).blur(ploneInputLabel.blur);if(!jq(this).val())
jq(this).val(this.title).removeClass('inputLabel').addClass('inputLabelActive')})});

/* - dse.js - */
// http://isc.dse.vic.gov.au/portal_javascripts/dse.js?original=1
kukit.actionsGlobalRegistry.register("closeLoginBox", function(oper){oper.evaluateParameters([],{},'closeLoginBox action');var overlay=document.getElementById("lbOverlay");var center=document.getElementById("lbCenter");var contentCont=document.getElementById("lbContent");var contentBody=document.getElementById("lbContentBody");var closeLink=document.getElementById("lbClose");contentCont.appendChild(closeLink);contentBody.parentNode.removeChild(contentBody);overlay.style.visibility='hidden';overlay.style.hidden='';center.style.visibility='hidden';center.style.hidden='';contentCont.style.visibility='hidden';contentCont.style.hidden=''});kukit.commandsGlobalRegistry.registerFromAction('closeLoginBox',kukit.cr.makeGlobalCommand);kukit.actionsGlobalRegistry.register("showLightBox", function(oper){oper.evaluateParameters([],{'boxWidth':'400'},'showMessageBoxTwo action');var ie=(document.all)?1:0;var overlay=document.getElementById("lbOverlay");var boxWidth=oper.parms.boxWidth;if(boxWidth<150){boxWidth=150}
var center=document.getElementById("lbCenter");var contentCont=document.getElementById("lbContent");var oheight=document.body.clientHeight+40;var pageWidth=document.documentElement.clientWidth;overlay.style.zIndex='5';overlay.style.display='block';overlay.style.visibility='visible';overlay.style.left='0px';overlay.style.position='absolute';overlay.style.backgroundColor='Black';overlay.style.top='0px';overlay.style.height=oheight+'px';overlay.style.width=pageWidth+'px';if(ie){overlay.style.filter='alpha(opacity=50)'}else{overlay.style.opacity='0.5'}
overlay.style.cursor='wait';var top=document.documentElement.scrollTop+60+'px';center.style.position='absolute';center.style.display='inline';center.style.zIndex='100';center.style.visibility='visible';center.style.top=top;center.style.width=boxWidth+'px';center.style.left=pageWidth/2-(boxWidth/2)+'px';contentCont.style.display='inline';contentCont.style.zIndex='101';contentCont.style.visibility='visible';contentCont.style.width=boxWidth+'px'});
