
/* 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://douganconsulting.com/portal_javascripts/input-label.js?original=1
var ploneInputLabel={focus: function(){var t=jq(this);if(t.hasClass('inputLabelActive')&&t.val()==t.attr('title'))
t.val('').removeClass('inputLabelActive');if(t.hasClass('inputLabelPassword'))
ploneInputLabel._setInputType(t.removeClass('inputLabelPassword'),'password').focus().bind('blur.ploneInputLabel',ploneInputLabel.blur)},blur: function(){var t=jq(this);if(t.is(':password[value=""]')){t=ploneInputLabel._setInputType(this,'text').addClass('inputLabelPassword').bind('focus.ploneInputLabel',ploneInputLabel.focus);if(e.originalEvent&&e.originalEvent.explicitOriginalTarget)
jq(e.originalEvent.explicitOriginalTarget).trigger('focus!')}
if(!t.val())
t.addClass('inputLabelActive').val(t.attr('title'))},submit: function(){jq('input[title].inputLabelActive').trigger('focus.ploneInputLabel')},_setInputType: function(elem,ntype){var otype=new RegExp('type="?'+jq(elem).attr('type')+'"?')
var nelem=jq(jq('<div></div>').append(jq(elem).clone()).html().replace(otype,'').replace(/\/?>/,'type="'+ntype+'" />'));jq(elem).replaceWith(nelem);return nelem}};jq(function(){jq('form:has(input[title].inputLabel)').submit(ploneInputLabel.submit);jq('input[title].inputLabel').bind('focus.ploneInputLabel',ploneInputLabel.focus).bind('blur.ploneInputLabel',ploneInputLabel.blur).trigger('blur.ploneInputLabel')});

/* - plone_minwidth.js - */
// http://douganconsulting.com/portal_javascripts/plone_minwidth.js?original=1
/*@cc_on
@if(@_win32&&@_jscript_version>4)
var rulersCreated=0
function fixwidth(){var el;el=document.getElementById('visual-portal-wrapper');if(!rulersCreated){ruler=document.createElement('div');ruler.style.width="70em";ruler.style.position="absolute";ruler.style.top="-10px"
ruler.style.visibility="hidden";document.body.insertBefore(ruler,document.body.firstChild)
ruler2=document.createElement('div');ruler2.style.position="relative";ruler2.style.visibility="hidden";ruler2.style.clear="both"
document.body.appendChild(ruler2)
rulersCreated=1}
if(ruler2.offsetWidth<ruler.offsetWidth){el.style.width="70em"}else{el.style.width=ruler2.offsetWidth+'px'}}
window.attachEvent('onload',fixwidth);window.attachEvent('onresize',fixwidth);@end @*/

