/** * Autism Europe 2010 - Administrator - beta * * Copyright(c) 2009, Four Software. * info@foursoftware.com * * http://foursoftware.com/license */ var DYNIFS = { iframes: {}, oldresize: null, ready: false, dim: [-1,-1], timerID: 0, getDim: function(d) { var w=200, h=200, scr_h, off_h; if( d.height ) { return [d.width,d.height]; } with( d.body ) { if( scrollHeight ) { h=scr_h=scrollHeight; w=scrollWidth; } if( offsetHeight ) { h=off_h=offsetHeight; w=offsetWidth; } if( scr_h && off_h ) h=Math.max(scr_h, off_h); } return [w,h]; }, onresize: function() { if( typeof this.oldresize == 'function' ) { this.oldresize(); } var dim = this.getDim(document); if( this.dim[0] == dim[0] && this.dim[1] == dim[1] ) return; if( this.timerID ) return; this.timerID = setTimeout('DYNIFS.deferred_resize();', 10); }, deferred_resize: function() { for( var id in this.iframes ) this.resize(id); this.dim = this.getDim(document); this.timerID = 0; }, resize: function(id) { if( !window.frames || !window.frames[id] || !document.getElementById || !document.body ) return; var iframe = window.frames[id]; var div = $(id); if( !div ) return; if( !this.iframes[id] ) { this.iframes[id] = true; } if( !this.ready ) { this.ready = true; this.oldresize = window.onresize; window.onresize = new Function('DYNIFS.onresize();'); } if( document.all ) div.style.height = '0px'; var dim = this.getDim(iframe.document); div.style.height = (dim[1]+30) + 'px'; } }; function calcHeight(id){ var div = $('container_plugin'); var frame = $(id); } function MyObject(){ this.url = 'http://registration.autismeurope2010.org/'; this.h = 500; this.application = 'false'; this.lang = 'en'; this.setRefer = function (value){ this.refer = value; }; this.setHeight = function (value){ this.h = value; }; this.enableTitle = function (value){ this.mostra_titolo = value; }; this.setId = function (id){ this.id = id; }; this.setLang = function (lang){ this.lang = lang; }; this.setExternalLink = function (cmd,url){ if (!$defined(this.link)) this.link = []; this.link.include({ cmd : cmd, url : url }); }; this.write = function(element){ var e = $(element); var src = this.url; src += '?l=' + this.lang; if ($defined(location.search) && location.search.trim() != '') src += location.search + '&cat=' + this.cat; else{ src += '&cat=' + this.cat; } if ($defined(this.mostra_titolo)) src += '&st=' + this.mostra_titolo; if ($defined(this.refer)) src += '&refer=' + this.refer; if ($defined(this.link)) this.link.each(function(item, index){ src += '&link[' + item.cmd + ']=' + item.url; }); var html = '