function mOver(elem){elem.className='menu-hover';}
function mOut(elem){elem.className='menu-out';}
function mfOut(elem){elem.className='fmenu-out';}
var itemdefs={autoScroll:true,cls:'contentArea',bodyStyle:'padding:30px;background-color:#111;color:white;',border:false};var frmItemdefs={xtype:'textfield',labelSeparator:'',width:250};var dsGender=new Ext.data.SimpleStore({fields:['value','display'],data:[['M','De heer'],['V','Mevrouw']]});var naam={name:'naam',fieldLabel:'Naam',allowBlank:false,blankText:'Vul uw naam in',emptyText:'verplicht'};var mediumnaam={name:'organisatie',fieldLabel:'Organisatie',allowBlank:false,blankText:'Vul de naam in van uw bedrijf of organisatie',emptyText:'verplicht'};var gender={name:'gender',fieldLabel:'Aanhef',allowBlank:false,blankText:'Kies een aanhef',emptyText:'Kies...',xtype:'combo',triggerAction:'all',mode:'local',listWidth:85,width:85,displayField:'display',store:dsGender,forceSelection:true};var email={name:'email',fieldLabel:'E-mail adres',vtype:'email',vtypeText:'Vul een geldig e-mail adres in (gebruiker@domein.nl)',allowBlank:false,blankText:'Vul uw e-mail adres in',emptyText:'verplicht',plugins:[Ext.ux.plugins.RemoteValidator],rvOptions:{url:'hndlr.contact.php',params:{cmd:'validate'}}};var tel={name:'telefoon',fieldLabel:'Telefoon of gsm',xtype:'numberfield',allowDecimals:false,allowNegative:false,invalidText:'Voer alleen cijfers in.'};var cc={name:'cc',xtype:'checkbox',fieldLabel:'Kopie voor mij',inputValue:1};var tekst={name:'tekst',fieldLabel:'Bericht',xtype:'textarea',height:100};var tekstverplicht={name:'tekst',fieldLabel:'Bericht',xtype:'textarea',allowBlank:false,blankText:'U heeft geen bericht ingetypt',emptyText:'verplicht',height:100};var antispam={name:'info',xtype:'textfield',cls:'x-hide-display',hideLabel:true};var frmip={xtype:'label',html:'<div style="padding-top:15px;"><div style="width:100px;height:60px;vertical-align:bottom;float:left;text-align:center;color:#999;">'+'<br /><img src="images/ip.gif" width="13" height="15" alt="" /><br />uw ip:<br />'+ip+'</div></div>'};function updateContent(pnl,theurl){if(pnl&&theurl){var ajax_con=new Ext.data.Connection({url:theurl,method:"get"});var msgText='';var msgStat='';ajax_con.request({callback:function(options,success,response){if(success&&response.status==200){Ext.getCmp(pnl).body.load(theurl);}
else{msgStat=response.status;msgText=response.statusText
if(response.status==404){msgText='Bestand '+theurl+' niet gevonden.';}
Ext.Msg.alert("Waarschuwing","Communicatiefout: <br /><br />"+msgStat+": "+msgText+"<br /><br />"+theurl);}}});}}
var LinkInterceptor={render:function(p){p.body.on({'click':function(e,t){e.stopEvent();if(String(t.target).toLowerCase()=='_blank'){window.open(t.href);}
else{p.load({url:t.href});}},delegate:'a'});}};var MenuHandler={render:function(p){p.body.on({'click':function(e,t){var url;e.stopEvent();if(url=t.getAttribute('url')){var pnl=t.getAttribute('panel');if(pnl){updateContent(pnl,url);}}},delegate:'li'});},beforedestroy:function(p){p.body.removeAllListeners();}};Ext.onReady(function(){});