//2009.01.21 Copyright(c)TOSHIBA CORPORATION, All Rights Reserved//

(function(){var n="js.preload",k="js.rollover",i="_on.",j="_off.";function d(a,c,b){if(a&&a.addEventListener)a.addEventListener(c,b,false);else a&&a.attachEvent&&a.attachEvent("on"+c,b)}function e(){this.initialize.apply(this,arguments)}e.prototype={initialize:function(a){this.element=a?a:{}},getClass:function(){var a="";if(this.element.className)a=this.element.className;else if(this.element.getAttribute)a=this.element.getAttribute("className")?this.element.getAttribute("className"):this.element.getAttribute("class");
return a?a:""},getType:function(){var a="";if(this.element.type)a=this.element.type;else if(this.element.getAttribute)a=this.element.getAttribute("type");return a?a:""},getSrc:function(){var a="";if(this.element.src)a=this.element.src;else if(this.element.getAttribute)a=this.element.getAttribute("src");return a?a:""},setSrc:function(a){try{this.element.src=a}catch(c){this.element.setAttribute&&this.element.setAttribute("src",a)}},me:function(){return this.element}};function f(a){var c=new e(a);return function(){c.setSrc(c.getSrc().replace(j,
i))}}function g(a){var c=new e(a);return function(){c.setSrc(c.getSrc().replace(i,j))}}d(window,"load",function(){var a=[];if(document.getElementsByTagName)a=document.getElementsByTagName("img");for(var c=0;c<a.length;c++){var b=new e(a[c]);if(b.getClass().indexOf(n)>-1)(new Image).src=b.getSrc().replace(j,i);if(b.getClass().indexOf(k)>-1){d(b.me(),"mouseover",new f(b.me()));d(b.me(),"mouseout",new g(b.me()))}}if(document.getElementsByTagName)a=document.getElementsByTagName("input");for(c=0;c<a.length;c++){b=
new e(a[c]);if(b.getType().toLowerCase()=="image"&&b.getClass().indexOf(n)>-1)(new Image).src=b.getSrc().replace(j,i);if(b.getType().toLowerCase()=="image"&&b.getClass().indexOf(k)>-1){d(b.me(),"mouseover",new f(b.me()));d(b.me(),"mouseout",new g(b.me()));d(b.me(),"focus",new f(b.me()));d(b.me(),"blur",new g(b.me()))}}if(document.getElementsByTagName)a=document.getElementsByTagName("a");for(c=0;c<a.length;c++){b=new e(a[c]);var l=[];if(document.getElementsByTagName)l=b.me().getElementsByTagName("img");
for(var m=0;m<l.length;m++){var h=new e(l[m]);if(h.getClass().indexOf(k)>-1){d(b.me(),"mouseover",new f(h.me()));d(b.me(),"mouseout",new g(h.me()));d(b.me(),"focus",new f(h.me()));d(b.me(),"blur",new g(h.me()))}}}})})();
