/** * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/ * * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License: * http://www.opensource.org/licenses/mit-license.php * */ if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="";_19+="";var _1d=this.getParams();for(var key in _1d){_19+="";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="";}_19+="";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.majorfv.major){return true;}if(this.minorfv.minor){return true;}if(this.rev=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject; // Float media function var richZIndex = 10000; function expand24h(divID, url, name1, name2) { eval(divID.substring(0, divID.lastIndexOf("_"))+".stopShow=true;"); document.getElementById(divID).style.overflow = 'visible'; document.getElementById(divID).style.zIndex = richZIndex++; var so = new SWFObject(url+name1, "mymovie", "100%", "100%", 8); so.addParam("wmode", "transparent"); so.addParam("allowscriptaccess", "always"); so.addParam("flashVars", "divID="+divID+"&path="+url+"&startbanner=1&filename1="+name1+"&filename2="+name2); so.write(divID+"_child"); } function collapse24h(divID,url, name1, name2) { document.getElementById(divID).style.overflow = 'hidden'; document.getElementById(divID).style.zIndex = 0; var so = new SWFObject(url+name1, "mymovie", "100%", "100%", 8); so.addParam("wmode", "transparent"); so.addParam("allowscriptaccess", "always"); so.addParam("flashVars", "divID="+divID+"&path="+url+"&startbanner=0&filename1="+name1+"&filename2="+name2); so.write(divID+"_child"); } // mBanner.js ///////////////////////////////// // File Name: mBanner.js // // By: Manish Kumar Namdeo // ///////////////////////////////// // $Id: 24h.js 82 2009-01-14 08:55:31Z dungpt $ function fw24h_getFlash( object) { var str = ''; return str; } function fw24h_getFloatFlash( object, flash_vars) { var str = ''; return str; } // BANNER OBJECT function Banner(objName){ this.obj = objName; this.aNodes = []; this.bNodes = []; this.currentBanner = 0;//Math.floor(Math.random()*3); this.intLoopCount = 1; this.intBannerFix = -1; this.intBannerLong = 0; this.stopShow = false; }; // ADD NEW BANNER Banner.prototype.add = function(bannerType, bannerPath, bannerDuration, height, width, hyperlink) { this.aNodes[this.aNodes.length] = new Node(this.obj +"_"+ this.aNodes.length, bannerType, bannerPath, bannerDuration, height, width, hyperlink); }; // Add2 Banner.prototype.add2 = function(bannerType, bannerPath, bannerDuration, height, width, hyperlink, position) { this.bNodes[this.bNodes.length] = new Node(this.obj +"_"+ this.bNodes.length, bannerType, bannerPath, bannerDuration, height, width, hyperlink, position); }; // Add3 - float media Banner.prototype.add3 = function(bannerType, bannerPath, bannerDuration, height, width, height2, width2, type, name1, name2) { this.aNodes[this.aNodes.length] = new NodeRich(this.obj +"_"+ this.aNodes.length, bannerType, bannerPath, bannerDuration, height, width, height2, width2, type, name1, name2); }; // Node object function Node(name, bannerType, bannerPath, bannerDuration, height, width, hyperlink) { this.name = name; this.bannerType = bannerType; this.bannerPath = bannerPath; this.bannerDuration = bannerDuration; this.height = height this.width = width; this.hyperlink= hyperlink; }; function Node2(name, bannerType, bannerPath, bannerDuration, height, width, hyperlink, position) { this.name = name; this.bannerType = bannerType; this.bannerPath = bannerPath; this.bannerDuration = bannerDuration; this.height = height this.width = width; this.hyperlink= hyperlink; this.position= position; }; function NodeRich(name, bannerType, bannerPath, bannerDuration, height, width, height2, width2, type, name1, name2) { this.name = name; this.bannerType = bannerType; this.bannerPath = bannerPath; this.bannerDuration = bannerDuration; this.height = height this.width = width; this.height2= height2; this.width2= width2; this.type= type; this.name1= name1; this.name2= name2; }; // Outputs the banner to the page Banner.prototype.toString = function() { this.currentBanner = Math.floor(Math.random()*this.aNodes.length); // lay ngau nhien 1 banner var str = "" for (var iCtr=0; iCtr < this.aNodes.length; iCtr++){ var richbanner = (this.aNodes[iCtr].width2>0 && this.aNodes[iCtr].height2>0) ? true : false; if (richbanner) { switch (this.aNodes[iCtr].type) { case 'phai_xuong': parentStyle = ''; childStyle = ''; break; case 'phai_len': parentStyle = ''; childStyle = 'top:'+(this.aNodes[iCtr].height-this.aNodes[iCtr].height2)+'px;'; break; case 'trai_xuong': parentStyle = ''; childStyle = 'left:'+(this.aNodes[iCtr].width-this.aNodes[iCtr].width2)+'px;'; break; case 'trai_len': parentStyle = ''; childStyle = 'top:'+(this.aNodes[iCtr].height-this.aNodes[iCtr].height2)+'px;'; childStyle += 'left:'+(this.aNodes[iCtr].width-this.aNodes[iCtr].width2)+'px;'; break; case 'len_xuong': parentStyle = ''; childStyle = 'top:'+(this.aNodes[iCtr].height-this.aNodes[iCtr].height2)/2+'px;'; break; case 'float_trai': parentStyle = 'position:fixed; bottom:0px; left:0px;'; childStyle = 'left:0px; top:'+(this.aNodes[iCtr].height-this.aNodes[iCtr].height2)+'px;'; break; case 'float_phai': parentStyle = 'position:fixed; bottom:0px; right:0px;'; childStyle = 'left:'+(this.aNodes[iCtr].width-this.aNodes[iCtr].width2)+'px; top:'+(this.aNodes[iCtr].height-this.aNodes[iCtr].height2)+'px;'; break; default: parentStyle = ''; childStyle = ''; } str += '\n'; str += ' '; str += fw24h_getFloatFlash( this.aNodes[iCtr], 'startbanner=0&divID='+this.aNodes[iCtr].name+'&path='+this.aNodes[iCtr].bannerPath+'&filename1='+this.aNodes[iCtr].name1+'&filename2='+this.aNodes[iCtr].name2); str += ' '; str += ''; } else { str = str + '\n'; if (this.aNodes[iCtr].hyperlink != ""){ str = str + ''; } if ( this.aNodes[iCtr].bannerType == "FLASH" ){ str += fw24h_getFlash( this.aNodes[iCtr]); }else if ( this.aNodes[iCtr].bannerType == "IMAGE" ){ str = str + ''; } if( this.aNodes[iCtr].bannerType == "TEXT") { str = str + '' } if (this.aNodes[iCtr].hyperlink != ""){ str = str + ''; } str += ''; } } document.write( str); str = ''; return str; }; // START THE BANNER ROTATION Banner.prototype.start = function(){ if (this.aNodes.length==0) { return true; } if( this.stopShow) { return true; } this.changeBanner(); var thisBannerObj = this.obj; // CURRENT BANNER IS ALREADY INCREMENTED IN cahngeBanner() FUNCTION setTimeout(thisBannerObj+".start()", this.aNodes[this.currentBanner].bannerDuration * 1000); } // CHANGE BANNER Banner.prototype.changeBanner = function(){ // try { if( this.intLoopCount > (this.aNodes.length*3 + 1)) { this.intBannerLong++; if( this.intBannerLong%3 != 0) { return false; } } var thisBanner; var prevBanner = -1; if (this.currentBanner>this.aNodes.length-1) { this.currentBanner=0; } if (this.currentBanner < this.aNodes.length ){ thisBanner = this.currentBanner; if (this.aNodes.length > 1){ if ( thisBanner > 0 ){ prevBanner = thisBanner - 1; }else{ prevBanner = this.aNodes.length-1; } } if (this.currentBanner < this.aNodes.length - 1){ this.currentBanner = this.currentBanner + 1; }else{ this.currentBanner = 0; } } if (prevBanner >= 0){ document.getElementById(this.aNodes[prevBanner].name).className = "m_banner_hide"; } document.getElementById(this.aNodes[thisBanner].name).className = "m_banner_show"; this.intLoopCount++; } catch(e) {} } // d_Banner2 // Written by ThaoDX function d_Banner2(objName){ this.obj = objName; this.aNodes = []; this.bNodes = []; this.currentBanner = 0; }; // ADD NEW BANNER d_Banner2.prototype.add = function(bannerType, bannerPath, height, width, hyperlink) { var bannerDuration = 0; this.aNodes[this.aNodes.length] = new Node(this.obj +"_"+ this.aNodes.length, bannerType, bannerPath, bannerDuration, height, width, hyperlink); }; // add2 d_Banner2.prototype.add2 = function(bannerType, bannerPath, height, width, hyperlink, position) { var bannerDuration = 0; this.bNodes[this.bNodes.length] = new Node2(this.obj +"_"+ this.bNodes.length, bannerType, bannerPath, bannerDuration, height, width, hyperlink, position); }; // Outputs the banner to the page d_Banner2.prototype.toString = function() { var str = ""; var BannerPostion = Math.floor(Math.random()*12321) % this.aNodes.length; var i = 1; for (var iCtr=BannerPostion; iCtr < this.aNodes.length; iCtr++){ // iB for loop //str += "I: " + i + "
"; for(var iB=0; iB < this.bNodes.length; iB++){ if(i == this.bNodes[iB].position){ str = str + '\n'; if (this.bNodes[iB].hyperlink != ""){ str = str + ''; } if ( this.bNodes[iB].bannerType == "FLASH" ){ str += fw24h_getFlash( this.bNodes[iB]); }else if ( this.bNodes[iB].bannerType == "IMAGE" ){ str = str + ''; } if( this.bNodes[iB].bannerType == "TEXT") { str = str + '' } if (this.bNodes[iB].hyperlink != ""){ str = str + ''; } str += ''; // str = str + 'Thao Pro '+i; i++; continue; } } // End iB for loop str = str + '\n'; if (this.aNodes[iCtr].hyperlink != ""){ str = str + ''; } if ( this.aNodes[iCtr].bannerType == "FLASH" ){ str += fw24h_getFlash( this.aNodes[iCtr]); }else if ( this.aNodes[iCtr].bannerType == "IMAGE" ){ str = str + ''; } if( this.aNodes[iCtr].bannerType == "TEXT") { str = str + '' } if (this.aNodes[iCtr].hyperlink != ""){ str = str + ''; } str += ''; i++; } //BannerPostion = 0; //return str; //str += "
a " + BannerPostion + " a
";; for (var iCtr=0; iCtr < BannerPostion; iCtr++){ // iB for loop for(var iB=0; iB < this.bNodes.length; iB++){ if(i == this.bNodes[iB].position){ str = str + '\n'; if (this.bNodes[iB].hyperlink != ""){ str = str + ''; } if ( this.bNodes[iB].bannerType == "FLASH" ){ str += fw24h_getFlash( this.bNodes[iB]); }else if ( this.bNodes[iB].bannerType == "IMAGE" ){ str = str + ''; } if( this.bNodes[iB].bannerType == "TEXT") { str = str + '' } if (this.bNodes[iB].hyperlink != ""){ str = str + ''; } str += ''; i++; continue; } else{ //str = str + 'i: e '+i; } } // End iB for loop str = str + '\n'; if (this.aNodes[iCtr].hyperlink != ""){ str = str + ''; } if ( this.aNodes[iCtr].bannerType == "FLASH" ){ str += fw24h_getFlash( this.aNodes[iCtr]); }else if ( this.aNodes[iCtr].bannerType == "IMAGE" ){ str = str + ''; } if( this.aNodes[iCtr].bannerType == "TEXT") { str = str + '' } if (this.aNodes[iCtr].hyperlink != ""){ str = str + ''; } str += ''; i++; } for(x = 0; x < this.bNodes.length; x++) { if(this.bNodes[x].position >= i) { str = str + '\n'; if (this.bNodes[x].hyperlink != ""){ str = str + ''; } if ( this.bNodes[x].bannerType == "FLASH" ){ str += fw24h_getFlash( this.bNodes[x]); }else if ( this.bNodes[x].bannerType == "IMAGE" ){ str = str + ''; } if( this.bNodes[x].bannerType == "TEXT") { str = str + '' } if (this.bNodes[x].hyperlink != ""){ str = str + ''; } str += ''; } } document.write( str); str = ''; return str; }; // d_Banner // d_Banner // Written by Dungpt function d_Banner(objName){ this.obj = objName; this.aNodes = []; this.currentBanner = 0; }; // ADD NEW BANNER d_Banner.prototype.add = function(bannerType, bannerPath, height, width, hyperlink) { var bannerDuration = 0; this.aNodes[this.aNodes.length] = new Node(this.obj +"_"+ this.aNodes.length, bannerType, bannerPath, bannerDuration, height, width, hyperlink); }; // Outputs the banner to the page d_Banner.prototype.toString = function() { var str = ""; var BannerPostion = Math.floor(Math.random()*12321) % this.aNodes.length; for (var iCtr=BannerPostion; iCtr < this.aNodes.length; iCtr++){ str = str + '\n'; if (this.aNodes[iCtr].hyperlink != ""){ str = str + ''; } if ( this.aNodes[iCtr].bannerType == "FLASH" ){ str += fw24h_getFlash( this.aNodes[iCtr]); }else if ( this.aNodes[iCtr].bannerType == "IMAGE" ){ str = str + ''; } if( this.aNodes[iCtr].bannerType == "TEXT") { str = str + '' } if (this.aNodes[iCtr].hyperlink != ""){ str = str + ''; } str += ''; } for (var iCtr=0; iCtr < BannerPostion; iCtr++){ str = str + '\n'; if (this.aNodes[iCtr].hyperlink != ""){ str = str + ''; } if ( this.aNodes[iCtr].bannerType == "FLASH" ){ str += fw24h_getFlash( this.aNodes[iCtr]); }else if ( this.aNodes[iCtr].bannerType == "IMAGE" ){ str = str + ''; } if( this.aNodes[iCtr].bannerType == "TEXT") { str = str + '' } if (this.aNodes[iCtr].hyperlink != ""){ str = str + ''; } str += ''; } document.write( str); str = ''; return str; }; // Written by Dungpt function dFloat_Banner(objName){ this.obj = objName; this.aNodes = []; this.currentBanner = 0; }; // ADD NEW BANNER dFloat_Banner.prototype.add = function(bannerType, bannerPath, height, width, hyperlink) { var bannerDuration = 0; this.aNodes[this.aNodes.length] = new Node(this.obj +"_"+ this.aNodes.length, bannerType, bannerPath, bannerDuration, height, width, hyperlink); }; // Outputs the banner to the page dFloat_Banner.prototype.toString = function() { var str = ""; var BannerPostion = Math.floor(Math.random()*12321) % this.aNodes.length; for (var iCtr=BannerPostion; iCtr < this.aNodes.length; iCtr++){ str = str + '\n'; if (this.aNodes[iCtr].hyperlink != ""){ str = str + ''; } if ( this.aNodes[iCtr].bannerType == "FLASH" ){ str += fw24h_getFlash( this.aNodes[iCtr]); }else if ( this.aNodes[iCtr].bannerType == "IMAGE" ){ str = str + ''; } if( this.aNodes[iCtr].bannerType == "TEXT") { str = str + '' } if (this.aNodes[iCtr].hyperlink != ""){ str = str + ''; } str += ''; } for (var iCtr=0; iCtr < BannerPostion; iCtr++){ str = str + '\n'; if (this.aNodes[iCtr].hyperlink != ""){ str = str + ''; } if ( this.aNodes[iCtr].bannerType == "FLASH" ){ str += fw24h_getFlash( this.aNodes[iCtr]); }else if ( this.aNodes[iCtr].bannerType == "IMAGE" ){ str = str + ''; } if( this.aNodes[iCtr].bannerType == "TEXT") { str = str + '' } if (this.aNodes[iCtr].hyperlink != ""){ str = str + ''; } str += ''; } return str; }; function flashWrite(url,w,h,id,bg,vars){ var flashStr= ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""; document.write(flashStr); } function Banner2(objName){ this.obj = objName; this.aNodes = []; this.currentBanner = 0;//Math.floor(Math.random()*3); this.intLoopCount = 0; this.intBannerFix = -1; this.stopShow = false; }; // ADD NEW BANNER Banner2.prototype.add = function(bannerType, bannerPath, bannerDuration, height, width, hyperlink, desc) { this.aNodes[this.aNodes.length] = new Node3(this.obj +"_"+ this.aNodes.length, bannerType, bannerPath, bannerDuration, height, width, hyperlink, desc); }; // Node object function Node3(name, bannerType, bannerPath, bannerDuration, height, width, hyperlink, desc) { this.name = name; this.bannerType = bannerType; this.bannerPath = bannerPath; this.bannerDuration = bannerDuration; this.height = height this.width = width; this.hyperlink= hyperlink; this.desc= desc; // alert (name +"|" + bannerType +"|" + bannerPath +"|" + bannerDuration +"|" + height +"|" + width + "|" + hyperlink); }; // Outputs the banner to the page Banner2.prototype.toString = function() { this.currentBanner = Math.floor(Math.random()*this.aNodes.length); // lay ngau nhien 1 banner var str = "" for (var iCtr=0; iCtr < this.aNodes.length; iCtr++){ str = str + '\n'; if (this.aNodes[iCtr].hyperlink != ""){ str = str + ''; } if ( this.aNodes[iCtr].bannerType == "FLASH" ){ str += fw24h_getFlash( this.aNodes[iCtr]); }else if ( this.aNodes[iCtr].bannerType == "IMAGE" ){ str = str + ''; } if( this.aNodes[iCtr].bannerType == "TEXT") { str = str + '' } if (this.aNodes[iCtr].hyperlink != ""){ str = str + ''; } str += ''; document.getElementById( this.obj + "_desc_" + iCtr).innerHTML = this.aNodes[iCtr].desc; } return str; }; // START THE BANNER ROTATION Banner2.prototype.start = function(){ if (this.aNodes.length==0) { return true; } if( this.stopShow) { return true; } this.changeBanner(); var thisBannerObj = this.obj; // CURRENT BANNER IS ALREADY INCREMENTED IN cahngeBanner() FUNCTION return setTimeout(thisBannerObj+".start()", this.aNodes[this.currentBanner].bannerDuration * 1000); } // CHANGE BANNER Banner2.prototype.changeBanner = function(){ // var thisBanner; if( this.currentBanner > this.aNodes.length-1) return true; var prevBanner = -1; if (this.currentBanner < this.aNodes.length ){ thisBanner = this.currentBanner; if (this.aNodes.length > 1){ if ( thisBanner > 0 ){ prevBanner = thisBanner - 1; }else{ prevBanner = this.aNodes.length-1; } } if (this.currentBanner < this.aNodes.length - 1){ this.currentBanner = this.currentBanner + 1; }else{ this.currentBanner = 0; } } for( ii=0; ii= 0){ document.getElementById(this.aNodes[prevBanner].name).className = "m_banner_hide"; document.getElementById( this.obj + "_desc_" + prevBanner).className = "m_banner_lost_focus"; } document.getElementById(this.aNodes[thisBanner].name).className = "m_banner_show"; document.getElementById( this.obj + "_desc_" + thisBanner).className = "m_banner_focus"; //alert( this.currentBanner); }; banner_bafa37 = new Banner('banner_bafa37'); banner_bafa37.add('FLASH','http://banner4rum.24h.com.vn/upload/qcao/2010-07-06/huybv_210-480.swf',15,480,210,''); banner_bafa37.add('FLASH','http://banner4rum.24h.com.vn/upload/qcao/2010-07-07/DuocVietDuc_210_480.swf',15,480,210,''); banner_bafa37.add('FLASH','http://banner4rum.24h.com.vn/upload/qcao/2010-07-22/PICOplaza210-480.swf',15,480,210,''); try { document.write(banner_bafa37);banner_bafa37.start(); }catch( error){ }