function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr;
for(i=0;a&&i0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i= this.ListItem.length) this.Index = 0;
this.imgTrans();
clearTimeout(this.tmRotate);
this.tmRotate = null;
this.tmRotate = setTimeout("window.xwzRollObject['" + this.Name + "'].rotateTrans()" , this.nInterval);
}
this.imgTrans = function(){
var icons = document.getElementsByName(this.Thumbnail);
var itmX = this.ListItem[this.Index];
if(itmX.OvrIcon !=null && itmX.OvrIcon !="") icons[this.Index].src = itmX.OvrIcon;
try{
document.images[this.Name].filters[0].apply();
document.images[this.Name].src = itmX.ImgSrc;
document.images[this.Name].filters[0].play();
}catch(e){
document.images[this.Name].src = itmX.ImgSrc;
}
}
}
function xwzRollingMarqTrans(Name, eventName){
this.Name = Name;
this.Index = 0;
this.ListItem = new Array(0);
this.tmRotate = null;
this.nInterval = 4500;
this.eventName = eventName;
if(window.xwzMarqObject == null) window.xwzMarqObject = new Array(0);
window.xwzMarqObject[this.Name] = this;
this.install = function(){
if(this.ListItem.length == 0) return;
this.tmRotate = setTimeout("window.xwzMarqObject['" + this.Name + "'].rotateTrans()" , this.nInterval);
for(var i = 0; i < this.ListItem.length; i++){
if(this.eventName == 'over') this.ListItem[i].Img.onmouseover=new Function("window.xwzMarqObject['"+this.Name+"'].alterTrans(" + i + ")");
else this.ListItem[i].Img.onclick=new Function("window.xwzMarqObject['"+this.Name+"'].alterTrans(" + i + ")");
}
}
this.addItem = function(targetObj, targetImg, Icon1, Icon2 ){
var itmX = {Objects : null, Imgs : null, DefaultSrc : "",OverSrc : ""};
itmX.Object = targetObj;
itmX.Img = targetImg;
itmX.DefaultSrc = Icon1;
itmX.OverSrc = Icon2;
this.ListItem[this.ListItem.length] = itmX;
}
this.alterTrans = function(index){
if(this.Index == index) return;
var itmX = this.ListItem[this.Index];
if(itmX.DefaultSrc !="") itmX.Img.src = itmX.DefaultSrc;
this.Index = index;
this.objTrans();
clearTimeout(this.tmRotate);
this.tmRotate = null;
this.tmRotate = setTimeout("window.xwzMarqObject['" + this.Name + "'].rotateTrans()" , this.nInterval);
}
this.rotateTrans = function(){
var itmX = this.ListItem[this.Index];
if(itmX.DefaultSrc !="") itmX.Img.src = itmX.DefaultSrc;
this.Index +=1;
if(this.Index >= this.ListItem.length) this.Index = 0;
this.objTrans();
clearTimeout(this.tmRotate);
this.tmRotate = null;
this.tmRotate = setTimeout("window.xwzMarqObject['" + this.Name + "'].rotateTrans()" , this.nInterval);
}
this.objTrans = function(){
var itmX = this.ListItem[this.Index];
if(itmX.Img !=null && itmX.OverSrc !="") itmX.Img.src = itmX.OverSrc;
for(var i =0; i < this.ListItem.length; i++) this.ListItem[i].Object.style.display = 'none';
try{
itmX.Object.filters[0].apply();
itmX.Object.style.display='';
itmX.Object.filters[0].play();
}catch(e){
itmX.Object.style.display='';
}
}
}
function verticalWheel(id, height, nSec ){
if(window.xwzWheelMarq == null) window.xwzWheelMarq = new Array(0);
xwzWheelMarq[id] = {
install : function(id, height, nSec){
this.id = id;
this.div = document.getElementById('ID_DIV_KEYWORD');
this.table = document.getElementById('ID_TABLE_KEYWORD');
if(this.div == null) return;
//this.div.style.cssText = "height:"+height+";position:relative;cursor:pointer;";
this.div.style.cssText = "height:"+height+";overflow:hidden;position:relative;cursor:pointer;clip:rect(0 auto "+this.height+" 0);left:0;top:0";
this.div.parentNode.style.position='relative'
this.div.parentNode.onmouseover=function(){xwzWheelMarq[id].table.style.visibility ='visible'; xwzWheelMarq[id].nPause=true;}
this.div.parentNode.onmouseout= function(){xwzWheelMarq[id].table.style.visibility ='hidden';xwzWheelMarq[id].nPause=false;}
this.index =0;
this.height = height;
this.items = new Array(0);
this.tmID = null;
this.nPause = false;
this.nSec = nSec;
var rows =this.table.tBodies[0].rows;
for(var i = 0; i < rows.length; i++){
this.items[i] = document.createElement("DIV");
this.items[i].innerHTML=rows[i].innerHTML;
this.items[i].style.padding="3";
this.items[i].style.width="100%";
this.items[i].style.height=this.height ;
this.items[i].style.position="absolute";
this.items[i].style.top = this.height*i;
this.div.appendChild(this.items[i]);
rows[i].cells[0].style.cssText="padding-left:5px;border-bottom:#CACACA 1px dotted;";
rows[i].onmouseover=function(){this.style.backgroundColor="#FDF1F0";}
rows[i].onmouseout=function(){this.style.backgroundColor="";}
if(i >= rows.length -1){rows[i].cells[0].style.border="";}
}
},
doWheel : function(){
var itmN = this.items[this.index];
var nSleep= 50;
var nIndex= this.index+1 >= this.items.length ? 0 : this.index+1;
clearTimeout(this.tmID); this.tmID = null;
if(this.nPause != true){
for(var i = 0; i < this.items.length; i++){
this.items[i].style.top = parseInt(this.items[i].style.top)-1;
}
if(parseInt(itmN.style.top) <= this.height*-1){
itmN.style.top = this.height*(this.items.length-1);
this.index = this.index+1 >= this.items.length ? 0 : this.index+1;
nSleep= this.nSec;
}
}else{
if(parseInt(itmN.style.top) < (this.height/2)*-1){
itmN.style.top = this.height*(this.items.length-1);
this.index = this.index+1 >= this.items.length ? 0 : this.index+1;
}
for(var i = 0; i < this.items.length; i++){
this.items[i].style.top = this.height * ( (this.items.length - this.index + i ) % this.items.length );
}
nSleep = 10;
}
this.tmID = setTimeout("xwzWheelMarq['" + this.id + "'].doWheel()", nSleep);
}
}
xwzWheelMarq[id].install(id, height, nSec);
xwzWheelMarq[id].tmID = setTimeout("xwzWheelMarq['" +id + "'].doWheel()", nSec);
}