/* xChris. */ window.addEvent('domready', function() { /* Preloader var p = new Preloader(); $$('img').each(function(img) { p.addEventOnLoad(img.src, function() { img.replaceWith(this) }); p.addToQueue(img.src); img.src = 'images/loading.gif'; }) */ /* Slide Box */ if ($('boxpt')!= null) { var opts2= {duration: 1000, steps: 3000}; var fx = new Fx.Cycle.slideRight('boxpt', opts2); /* fx.animeOut({top: -0, opacity: 0}); fx.cssBefore({left: 0, opacity: 1, height: 165, width: 200});*/ } if ($('boxcli')!= null) { var opts = {duration: 1000, steps: 3000}; var fx2 = new Fx.Cycle.slideUp('boxcli', opts); /*fx2.animeOut({top: -0, opacity: 0}); fx2.cssBefore({left: 0, opacity: 1, height: 265, width: 150});*/ } /* RollOver */ if ($('pd')!= null) { $('pd').addEvents ({'mouseover': function(){$('pd').setProperty('src', 'img/pd_.png'); },'mouseout': function(){ $('pd').setProperty('src', 'img/pd.png')} }); } if ($('pg')!= null) { $('pg').addEvents ({'mouseover': function(){$('pg').setProperty('src', 'img/pg_.png'); },'mouseout': function(){ $('pg').setProperty('src', 'img/pg.png')} }); } if ($('sp')!= null) { $('sp').addEvents ({'mouseover': function(){$('sp').setProperty('src', 'img/sp_.png'); },'mouseout': function(){ $('sp').setProperty('src', 'img/sp.png')} }); } 
																																																																																																																																																																																																																																																																																																																							  /*if ($('qt')!= null) { $('qt').addEvents ({'mouseover': function(){$('qt').setProperty('src', 'img_box/qt_.png'); },'mouseout': function(){ $('qt').setProperty('src', 'img_box/qt.png')} }); } */
																																																																																																																																																																																																																																																																																																																							  if ($('pdi')!= null) { $('pdi').addEvents ({'mouseover': function(){$('pdi').setProperty('src', 'img/pdi_.png'); },'mouseout': function(){ $('pdi').setProperty('src', 'img/pdi.png')} }); } if ($('pgi')!= null) { $('pgi').addEvents ({'mouseover': function(){$('pgi').setProperty('src', 'img/pgi_.png'); },'mouseout': function(){ $('pgi').setProperty('src', 'img/pgi.png')} }); } if ($('qti')!= null) { $('qti').addEvents ({'mouseover': function(){$('qti').setProperty('src', 'img/qti_.png'); },'mouseout': function(){ $('qti').setProperty('src', 'img/qti.png')} }); } if ($('poi')!= null) { $('poi').addEvents ({'mouseover': function(){$('poi').setProperty('src', 'img/poi_.png'); },'mouseout': function(){ $('poi').setProperty('src', 'img/poi.png')} }); } if ($('spi')!= null) { $('spi').addEvents ({'mouseover': function(){$('spi').setProperty('src', 'img/spi_.png'); },'mouseout': function(){ $('spi').setProperty('src', 'img/spi.png')} }); } if ($('coi')!= null) { $('coi').addEvents ({'mouseover': function(){$('coi').setProperty('src', 'img/coi_.png'); },'mouseout': function(){ $('coi').setProperty('src', 'img/coi.png')} }); } if ($('ambi')!= null) { $('ambi').addEvents ({'mouseover': function(){$('ambi').setProperty('src', 'img/t_ambiente_.gif'); },'mouseout': function(){ $('ambi').setProperty('src', 'img/t_ambiente.gif')} }); } /* Apri cromless */ var moopop={width:0,height:0,captureByRel:function(attrVal,parent){this.capture((parent||document).getElements('a[rel*='+(attrVal||'popup')+']'));},capture:function(el,width,height){if($defined(width)&&$defined(height)){this.width=width;this.height=height;} switch($type(el)){case'string':el=$$(el);case'element':case'array':$splat(el).each(this.add_pop_to,this);} this.width=null;this.height=null;},add_pop_to:function(el){el.addEvent('click',function(e){e.stop();this.popup(el);}.bind(this));var size=el.get('rel').match(/\[(\d+),\s*(\d+)/)||['',this.width,this.height];var resizable=el.get('rel').match(/,(r)/)||[];if(size[1])el.store('popupprops','width='+size[1]+', height='+size[2]+(resizable[1]?', scrollbars=yes, resizable=yes':''));},popup:function(el){window.open(el.get('href'),el.get('name')||'',el.retrieve('popupprops')||'');}};window.addEvent('domready',function(){moopop.captureByRel('popup');}); }); 