var flashinglinks={pause:1000,targetlinks:[],changecolor:function(){for(var b=0;b<this.targetlinks.length;b++){var a=this.targetlinks[b];var c=(a.colorsetting.type=="flashfg")?"color":"backgroundColor";a.style[c]=(a.style[c]!=a.colorsetting.ncolor)?a.colorsetting.ncolor:a.colorsetting.ocolor;a.colorsetting.ccolor=a.style[c];}},fetchcssvalue:function(a,b){return(a.style[b])?a.style[b]:(a.currentStyle)?a.currentStyle[b]:(document.defaultView.getComputedStyle)?document.defaultView.getComputedStyle(a,"").getPropertyValue(b):"";},addEvent:function(a,d,b){if(a.length>0){var c=a.shift();if(c.addEventListener){c.addEventListener(b,d,false);}else{if(c.attachEvent){c.attachEvent("on"+b,function(){return d.call(c,window.event);});}}this.addEvent(a,d,b);}},init:function(){var b=document.getElementsByTagName("a");for(var a=0;a<b.length;a++){if(b[a].getAttribute("rel")&&/(flash[bf]g)\[(.+)\]/i.test(b[a].getAttribute("rel"))){b[a].colorsetting={ocolor:this.fetchcssvalue(b[a],RegExp.$1=="flashfg"?"color":"backgroundColor"),ncolor:RegExp.$2,type:RegExp.$1};this.targetlinks.push(b[a]);}}if(this.targetlinks.length>0){setInterval(function(){flashinglinks.changecolor();},this.pause);}}};flashinglinks.addEvent([window],function(){flashinglinks.init();},"load");


