/* Copyright (C) 2007 - 2010 YOOtheme GmbH, YOOtheme License (http://www.yootheme.com/license) */

window.addEvent("domready",function(){$$("div.text-global").each(function(c){var d=c.getElement("input[name=_global]"),a=c.getElement("div.input"),b=new Fx.Slide(a,{duration:150});d.getProperty("checked")&&b.hide();d.addEvent("change",function(){if(this.getProperty("checked")){a.getElement("input[type=text]").setProperty("name","");b.slideOut()}else{a.getElement("input[type=text]").setProperty("name",this.getProperty("value"));b.slideIn()}})})}); 
