if(typeof daytech==="undefined"){var daytech={}}daytech.nav=function(){var a={setIdVal:"nav-home",init:function(){window.addEvent("domready",function(){a.makeActive();$$(".button a").each(function(b){if(b.getParent().get("id")!=a.setIdVal){b.set("morph",{duration:200}).addEvents({mouseenter:b.morph.pass(".hover",b),mouseleave:b.morph.pass(".default",b)})}});$$(".icon img").each(function(b){b.set("morph",{duration:150}).addEvents({mouseenter:b.morph.pass(".transparent",b),mouseleave:b.morph.pass(".opaque",b)})});$$("#services #mailin_form_download a").each(function(b){b.set("morph",{duration:150}).addEvents({mouseenter:b.morph.pass("#services #mailin_form_download .hover",b),mouseleave:b.morph.pass("#services #mailin_form_download .default",b)})})})},makeActive:function(){$(a.setIdVal).addClass("nav-active")}};a.init();return{setId:function(c){var b=c||a.setIdVal;a.setIdVal=b}}}();daytech.display=function(){return{ad_300x250:function(a){$$(".ad-slot-300").each(function(c){var b=myfy.utils.randomRange(0,a.length-1);c.getElement("a").set("href",a[b].exit);c.getElement("img").set("src",a[b].src);a=myfy.utils.removeRange(a,b)})},homeImage:function(b){var a=myfy.utils.randomRange(0,b.length-1);$("headline-image").getElement("img").set("src",b[a].src)}}}();daytech.xhr=function(){return{makeXHR:function(b,a){this.xhr=new Request.JSON({url:b,method:"get",onSuccess:function(c){a(c.list)}});this.xhr.send()}}}();window.addEvent("domready",function(){if($$(".ad-slot-300").length>0){daytech.xhr.makeXHR("images/ads/300x250/list.json",daytech.display.ad_300x250)}if($$("#home #headline-image").length>0){daytech.xhr.makeXHR("images/content/HOME/list.json",daytech.display.homeImage)}});
