﻿// JScript File

function Flyout2(_O,_o,_Y,_y,_I,_i,_A,_a,_E,_e,_U,_u,_Z,_z,_X,_x,_W,_w)
{ 
    this._O=_O; 
    this._V=document.getElementById(_y+"box"); 
    if (_o=="")
    { 
        this._v=document.createElement("a"); 
        this._v.style.display="none"; 
        this._V.appendChild(this._v); 
    }
    else 
    { 
        this._v=document.getElementById(_o); 
    }
    
    if (this._v==null)
    {
        if (_w)
            alert("["+_o+"]:Object not found"); 
        return; 
    }
    
    if (this._v.nodeName.toLowerCase()=="area")
        this._v._T=document.getElementById(_Y); 
        
    this._v._t=this ; 
    this._y=_y; 
    this._E=_E; 
    this._e=_e; 
    this._U=_U; 
    this._u=_u; 
    this._S=this._u; 
    this._I=_I; 
    this._i=_i; 
    this._Z=_Z; 
    this._z=_z; 
    this._X=_X; 
    this._s=this._v; 
    this._A=_A; 
    this._a=_a; 
    this._x=_x; 
    this._R= false; 
    this._r= false; 
    this._Q=null; 
    this._q=null; 
    this._P=null; 
    this._W=_W; 
    Flyout2.prototype.OnOpen= function (){} ; 
    Flyout2.prototype.OnClose= function (){} ; 
    Flyout2.prototype.OnInit= function (){} ; 
    this._p="close"; 
    this._N=new _n(this,this._V,_y,this._x); 
    this._M=new _m(this,this._v,this._N._L); 
    this._N._l( false); 
    Flyout2.prototype.AttachTo= function (_K)
    {
        var _k=document.getElementById(_K); 
        if (_k!=null)
        { 
            this._v._J="a"; 
            if (_k._J==null)
            { 
                this._v._J=null; 
                this._p="close"; 
                this._M._j(this._v); 
                this._s=_k; 
                this._v=_k; 
                this._N._l( false); 
                this.setPosition(this._I,this._i); 
                this._M._H(this._v); 
                if (this._h)
                    clearTimeout(this._h); 
                
                for (var i=0; i<this._Q.length; i++)
                    this._Q[i]._G(); 
                for (var i=0; i<this._q.length; i++)
                    this._q[i]._G(); this._p="close"; 
            } 
            this._v._J=null; 
        }
    } ; 
    
    Flyout2.prototype.setzIndex= function (_g)
    { 
        this._x=_g; 
        this._N.setzIndex(this._x); 
    } ; 
    
    Flyout2.prototype.setOpenTime= function (_F)
    { 
        this._E=_F; 
    } ; 
    
    Flyout2.prototype.setCloseTime= function (_f)
    { 
        this._e=_f; 
    } ; 
    
    Flyout2.prototype.setDelayTime= function (_D)
    { 
        this._U=_D; 
    } ; 
    
    Flyout2.prototype.setResolution= function (_d)
    { 
        this._u=_d; 
    } ; 
    
    Flyout2.prototype.setOpacity= function (_C)
    { 
        this._X=_C; 
    } ; 
    
    Flyout2.prototype.setOpenEvent= function (_c)
    { 
        this._A=_c; 
    } ; 
    
    Flyout2.prototype.setCloseEvent= function (_B)
    { 
        this._a=_B; 
    } ; 
    
    Flyout2.prototype._b= function ()
    {
        var _o0=document.getElementsByTagName("select"); 
        for (var i=0; i<_o0.length; i++)
        {
            _o0[i].blur(); 
        }
    } ; 
    
    Flyout2.prototype.rDP= function (_O0,_l0,_i0,_I0)
    {
        var _k=_o1._O1(_O0,this._N._L); 
        if (_k!=null)
        {
            _k.id=_l0; 
            var _l1=new _i1(this,_l0,_i0,_I0); 
            if (!this._P)
                this._P=new Array(); 
            this._P.push(_l1); 
        }
    } ; 
    
    Flyout2.prototype.removeOCB= function ()
    {
        document.getElementById(this._y).parentNode.removeChild(document.getElementById(this._y)); 
    } ; 
    
    Flyout2.prototype.setRelativePosition= function (_I1,_o2)
    { 
        this._Z=_I1; 
        this._z=_o2; 
        var _O2=_o1._l2(this._s); 
        this._N.setPosition(_O2.left+this._Z,_O2.top+this._z); 
    } ; 
    
    Flyout2.prototype._i2= function (_I1,_o2)
    {
        var _O2=_o1._l2(this._s); 
        this._Z=_I1-_O2.left; 
        this._z=_o2-_O2.top; 
        this._N.setPosition(_O2.left+this._Z,_O2.top+this._z); 
    } ; 
    
    Flyout2.prototype.setPosition= function (_I,_i)
    { 
        this._I=_I; 
        this._i=_i; 
        var _O2=_o1._l2(this._s); 
        var _I2=_O2.width; 
        var _o3=_O2.height; 
        var _O3=this._N._l3(); 
        var _I1=0; 
        var _o2=0; 
        
        switch (this._I)
        {
            case "ABSOLUTE":
                return; 
                break; 
            case "TOP_LEFT":
                _I1=-_O3.width; 
                _o2=-_O3.height; 
                break; 
            case "TOP_CENTER":
                switch (_i)
                {
                    case "LEFT":
                        _I1=0; 
                        _o2=-_O3.height; 
                        break; 
                    case "RIGHT":
                        _I1=_I2-_O3.width; 
                        _o2=-_O3.height; 
                        break; 
                    case "MIDDLE":
                    case "TOP":
                    case "BOTTOM":
		            default:
		                _I1=(_I2-_O3.width)/2;
		                _o2=-_O3.height; 
		                break; 
		        }
		        break; 
		    case "TOP_RIGHT":
		        _I1=_I2; 
		        _o2=-_O3.height; 
		        break; 
		    case "MIDDLE_LEFT":
		        switch (_i)
		        {
		            case "TOP":
		                _I1=-_O3.width; 
		                _o2=0; 
		                break; 
		            case "BOTTOM":
		                _I1=-_O3.width; 
		                _o2=_o3-_O3.height; 
		                break; 
		            case "LEFT":
		            case "RIGHT":
		            case "MIDDLE":
		            default:
		                _I1=-_O3.width; 
		                _o2=(_o3-_O3.height)/2; 
		                break; 
		        }
		        break; 
		    case "MIDDLE_CENTER":
		        switch (_i)
		        {
		            case "LEFT":
		                _I1=0; 
		                _o2=(_o3-_O3.height)/2; 
		                break; 
		            case "RIGHT":
		                _I1=_I2-_O3.width; 
		                _o2=(_o3-_O3.height)/2; 
		                break; 
		            case "TOP":
		                _I1=(_I2-_O3.width)/2; 
		                _o2=0; 
		                break; 
		            case "BOTTOM":
		                _I1=(_I2-_O3.width)/2; 
		                _o2=_o3-_O3.height; 
		                break; 
		            case "MIDDLE":
		            default:
		                _I1=(_I2-_O3.width)/2; 
		                _o2=(_o3-_O3.height)/2; 
		                break; 
		        }
		        break; 
		    case "MIDDLE_RIGHT":
		        switch (_i)
		        {
		            case "TOP":
		                _I1=_I2; 
		                _o2=0; 
		                break; 
		            case "BOTTOM":
		                _I1=_I2; 
		                _o2=_o3-_O3.height; 
		                break; 
		            case "LEFT":
		            case "RIGHT":
		            case "MIDDLE":
		            default:
		                _I1=_I2; 
		                _o2=(_o3-_O3.height)/2; 
		                break; 
		        }
		        break; 
		    case "BOTTOM_LEFT":
		        _I1=-_O3.width; 
		        _o2=_o3; 
		        break; 
		    case "BOTTOM_CENTER":
		        switch (_i)
		        {
		            case "LEFT":
		                _I1=0; 
		                _o2=_o3; 
		                break; 
		            case "RIGHT":
		                _I1=_I2-_O3.width;
		                _o2=_o3; 
		                break; 
		            case "MIDDLE":
		            case "TOP":
		            case "BOTTOM":
		            default:
		                _I1=(_I2-_O3.width)/2; 
		                _o2=_o3; 
		                break; 
		        }
		        break; 
		    case "BOTTOM_RIGHT":
		        _I1=_I2; 
		        _o2=_o3; 
		        break; 
		} 
		this.setRelativePosition(_I1,_o2); 
    } ; 
    
    Flyout2.prototype._i3= function (_I3)
    { 
        this._s=_I3; 
    } ; 
    
    Flyout2.prototype.registerOpenEffect= function (_o4)
    {
        if (this._Q==null)
            this._Q=new Array(); 
        _o4._O4=this ; 
        this._Q.push(_o4); 
    } ; 
    
    Flyout2.prototype.registerCloseEffect= function (_o4)
    {
        if (this._q==null)
            this._q=new Array(); 
        _o4._O4=this ; 
        this._q.push(_o4); 
    } ; 
    
    Flyout2.prototype.removeAllEffects= function ()
    { 
        this._Q=new Array(); 
        this._q=new Array(); 
    } ; 
    
    Flyout2.prototype.render= function (_l4)
    {
        switch (this._p)
        {
            case "opening":
                if (_l4>=this._u)
                { 
                    this._p="open"; 
                    this._N._l( true); 
                    this.setRelativePosition(this._Z,this._z); 
                    this._N.setOpacity(this._X); 
                    this.HandleEvent("updateAction"); 
                    if (this.OnOpen!=null)
                        this.OnOpen(); 
                    return; 
                }
                _i4=1; 
                if (this._Q!=null)
                    for (var i=0; i<this._Q.length; i++)
                        this._Q[i]._I4(_l4); 
                this._h=setTimeout(this._O+".render("+(_l4+_i4)+")",this._E/this._u); 
                break; 
            case "closing":
                if (_l4<=0)
                { 
                    this._p="close"; 
                    this._N._l( false); 
                    this.HandleEvent("updateAction"); 
                    if (this.OnClose!=null)
                    this.OnClose(); 
                    return; 
                }
                _i4=-1; 
                if (this._q!=null)
                    for (var i=0; i<this._q.length; i++)
                        this._q[i]._I4(_l4); 
                this._h=setTimeout(this._O+".render("+(_l4+_i4)+")",this._e/this._u); 
                break; 
        }
    } ; 
    
    Flyout2.prototype.Open= function ()
    {
        switch (this._p)
        {
            case "close": 
                this._N._l( true); 
                this._N.setOpacity(0); 
                if (this._I=="ABSOLUTE")
                    this.setRelativePosition(this._Z,this._z); 
                else 
                    this.setPosition(this._I,this._i); 
                
                this._N.setOpacity(this._X); 
                this._N._l( false); 
                this._b(); 
                this._p="opening"; 
                this.render(0); 
                break; 
            case "closing":
                break; 
        }
    } ; 
    
    Flyout2.prototype.Close= function ()
    {
        switch (this._p)
        {
            case "open": 
                this._p="closing"; 
                this.render(this._u); 
                break; 
            case "opening":
                break; 
        }
    } ; 
    
    Flyout2.prototype.HandleEvent= function (_o5)
    {
        switch (_o5)
        {
            case "updateAction":
            case "target.mouseover":
            case "target.mouseout":
            case "contentlayer.mouseover":
            case "contentlayer.mouseout":
                if (this._A.toLowerCase()=="onmouseover")
                {
                    if (this._R)
                    { 
                        this.Open(); 
                    }
                }
                if (this._a.toLowerCase()=="onmouseout")
                {
                    if (this._R== false && this._r== false)
                    { 
                        if(document.getElementById("img_QuickLinks1")!=null)
                            document.getElementById("img_QuickLinks1").src="http://gujarati.mcxindia.com/images/nav_products.gif";
                        this.Close(); 
                    }
                }
                break; 
            case "target.leftclick":
                if (this._A.toLowerCase()=="onclick")
                    this.Open(); 
                break; 
            case "target.rightclick":
                if (this._A.toLowerCase()=="onrightclick")
                    this.Open(); 
                break; 
            case "target.focus":
                if (this._A.toLowerCase()=="onfocus")
                    this.Open(); 
                break; 
            case "target.focusout":
                if (this._a.toLowerCase()=="onfocusout")
                    this.Close(); 
                break; 
        }
    } ; 
    this.setPosition(this._I,this._i); 
    setTimeout(this._O+".OnInit()",500); 
}

function _m(_O4,_v,_L)
{ 
    this._O4=_O4; 
    _m.prototype._O5= function (_o5)
    {
        switch (_o5)
        {
            case "target.mouseover": 
                this._O4._R= true; 
                break; 
            case "target.mouseout": 
                this._O4._R= false; 
                break; 
            case "contentlayer.mouseover": 
                this._O4._r= true; 
                break; 
            case "contentlayer.mouseout": 
                this._O4._r= false; 
                break; 
        }
        setTimeout(this._O4._O+".HandleEvent('"+_o5+"')",this._O4._U); 
    } ; 
    
    _m.prototype._H= function (_v)
    {
        _v._M=this ; 
        _l5= function (_i5)
        { 
            this._M._O5("target.mouseover"); 
        } ; 
        _I5= function (_i5)
        { 
            this._M._O5("target.mouseout"); 
        } ; 
        _o6= function (_i5)
        { 
            this._M._O5("target.focus"); 
        } ; 
        _O6= function (_i5)
        { 
            this._M._O5("target.focusout"); 
        } ; 
        _l6= function (_i5)
        {
            switch (_i5.button)
            {
                case 0:
                case 1: 
                    this._M._O5("target.leftclick"); 
                    break; 
                case 2: 
                    this._M._O5("target.rightclick"); 
                    break; 
            }
        } ; 
        _o1._i6(_v,"mouseover",_l5, false); 
        _o1._i6(_v,"mouseout",_I5, false); 
        _o1._i6(_v,"focus",_o6, false); 
        _o1._i6(_v,"blur",_O6, false); 
        _o1._i6(_v,"mousedown",_l6, false); 
    } ; 
    
    _m.prototype._j= function (_v)
    {
        if (_v._M!=null)
        {
            _o1._I6(_v,"mouseover",_l5, false); 
            _o1._I6(_v,"mouseout",_I5, false); 
            _o1._I6(_v,"focus",_o6, false); 
            _o1._I6(_v,"mousedown",_l6, false); 
            _v._M=null; 
        }
    } ; 
    
    _m.prototype._o7= function (_L)
    {
        _L._M=this ; 
        _O7= function (_i5)
        { 
            this._M._O5("contentlayer.mouseover"); 
        } ; 
        _l7= function (_i5)
        { 
            this._M._O5("contentlayer.mouseout"); 
        } ; 
        _i7= function (_i5)
        { 
            this._M._O5("contentlayer.focus"); 
        } ; 
        _I7= function (_i5)
        { 
            this._M._O5("contentlayer.focusout"); 
        } ; 
        _o8= function (_i5)
        {
            switch (_i5.button)
            {
                case 0:
                case 1: 
                    this._M._O5("contentlayer.leftclick"); 
                    break; 
                case 2: 
                    this._M._O5("contentlayer.rightclick"); 
                    break; 
            }
        } ; 
        _o1._i6(_L,"mouseover",_O7, false); 
        _o1._i6(_L,"mouseout",_l7, false); 
        _o1._i6(_L,"focus",_i7, false); 
        _o1._i6(_L,"blur",_I7, false); 
        _o1._i6(_L,"mousedown",_o8, false); 
    } ; 
    
    _m.prototype._O8= function (_L)
    {
        if (_L._M!=null)
        {
            _o1._I6(_L,"mouseover",_O7, false); 
            _o1._I6(_L,"mouseout",_l7, false); 
            _o1._I6(_L,"focus",_i7, false); 
            _o1._I6(_L,"mousedown",_o8, false); 
            _l8._M=null; 
        }
    } ; 
    
    this._o7(_L); 
    this._H(_v); 
}

function _n(_O4,_i8,_y,_x)
{ 
    this._y=_y; 
    this._O4=_O4; 
    _n.prototype._I8= function ()
    { 
        this._o9=document.createElement("iframe"); 
        this._o9.style.cssText="position:absolute;background-color:white;overflow:hidden;filter:alpha(opacity=0);-moz-opacity:0.0;opacity:0.0;"; 
        this._o9.setAttribute("frameborder","0"); 
        this._o9.setAttribute("scrolling","no"); 
        this._o9.setAttribute("src","javascript:'<html></html>'"); 
        this._O9=document.createElement("div"); 
        this._O9.style.cssText="position:absolute;background-color:transparent;"; 
        this._l9=document.createElement("div"); 
        this._l9.style.cssText="background-color:transparent;"; 
        if (this._O4._W)
            this._L=document.getElementById(this._y); 
        else 
            this._L=document.getElementById(this._y).cloneNode( true); 
        this._L.style.cssText="width:"+this._L.style.width+";height:"+this._L.style.height+";"; 
        this._l9.appendChild(this._L); 
        this._O9.appendChild(this._l9); 
        this._L.id=this._O4._O+"_ct"; 
        this._l9.id=this._O4._O+"_e"; 
        this._O9.id=this._O4._O+"_pv"; 
        this._o9.id=this._O4._O+"_if"; 
    } ; 
    
    _n.prototype._i9= function (_I9)
    {
        if (_I9.nodeName.toLowerCase()=="map")
            _I9=_I9.parentNode; 
        _I9.appendChild((this._o9.parentNode==null)?this._o9: this._o9.parentNode.removeChild(this._o9)); 
        _I9.appendChild((this._O9.parentNode==null)?this._O9: this._O9.parentNode.removeChild(this._O9)); 
    } ; 
    
    _n.prototype._oa= function ()
    { 
        this._l9.style.width=this._l9.offsetWidth+"px"; 
        this._l9.style.height=this._l9.offsetHeight+"px"; 
        this._O9.style.width=this._O9.offsetWidth+"px"; 
        this._O9.style.height=this._O9.offsetHeight+"px"; 
        this._o9.style.width=this._O9.style.width; 
        this._o9.style.height=this._O9.style.height; 
    } ; 
    
    _n.prototype.setPosition= function (_Oa,_la)
    {
        _Oa=_o1._ia(this._O9,_Oa); 
        _la=_o1._Ia(this._O9,_la); 
        this._O9.style.top=_la+"px"; 
        this._O9.style.left=_Oa+"px"; 
        this._o9.style.top=_la+"px"; 
        this._o9.style.left=_Oa+"px"; 
    } ; 
    
    _n.prototype._l= function (_ob)
    {
        if (_ob== true)
        { 
            this._O9.style.display="block"; 
            if (_o1._Ob)
                this._o9.style.display="block"; 
        }
        else 
        { 
            this._o9.style.display="none"; 
            this._O9.style.display="none"; 
        }
    } ; 
    
    _n.prototype._lb= function ()
    {
        if (this._O9.style.display=="block")
            return true; 
        if (this._O9.style.display=="none")
            return false; 
    } ; 
    
    _n.prototype._l3= function ()
    {
        var left=0; 
        var top=0; 
        var width=0; 
        var height=0; 
        if (this._O9.style)
        {
            left=parseInt(this._O9.style.left.substring(0,this._O9.style.left.indexOf("px"))); 
            top=parseInt(this._O9.style.top.substring(0,this._O9.style.top.indexOf("px"))); 
            width=parseInt(this._O9.style.width.substring(0,this._O9.style.width.indexOf("px"))); 
            height=parseInt(this._O9.style.height.substring(0,this._O9.style.height.indexOf("px"))); 
        }
        return {left:left,top:top,width:width,height:height } ; 
    } ; 
    
    _n.prototype._ib= function ()
    {
        var width=0; 
        var height=0; 
        width=parseInt(this._L.style.width.substring(0,this._L.style.width.indexOf("px"))); 
        height=parseInt(this._L.style.height.substring(0,this._L.style.height.indexOf("px"))); 
        return {width:width,height:height } ; 
    } ; 
    
    _n.prototype._Ib= function (_oc,_Oc)
    { 
        this._L.style.width=_oc+"px"; 
        this._L.style.height=_Oc+"px"; 
    } ; 
    
    _n.prototype.setOpacity= function (_lc)
    {
        if (_lc>100)_lc=100; 
        if (_lc<0)_lc=0; 
        _lc=Math.round(_lc); 
        this._l9.style.filter="alpha(opacity="+_lc+")"; 
        this._l9.style.opacity=(_lc/100); 
        this._l9.style.MozOpacity=(_lc/100); 
    } ; 
    
    _n.prototype.setzIndex= function (_g)
    { 
        this._o9.style.zIndex=_g; 
        this._O9.style.zIndex=_g+1; 
    } ; 
    
    _n.prototype._ic= function (_k)
    {
        if (_k.hasChildNodes())
            for (var i=0; i<_k.childNodes.length; i++)
            {
                if (_k.childNodes[i].nodeName)
                    if (_k.childNodes[i].nodeName.toLowerCase()=="img")
                    {
                        var img=_k.childNodes[i]; 
                        var _Ic=img.src.toUpperCase(); 
                        if (_Ic.substring(_Ic.length-3,_Ic.length)=="PNG")
                        {
                            var _od=(img.id)?"id='"+img.id+"' ": ""; 
                            var _Od=(img.className)?"class='"+img.className+"' ": ""; 
                            var _ld=(img.title)?"title='"+img.title+"' ": "title='"+img.alt+"' "; 
                            var _id="display:block;"+img.style.cssText; 
                            if (img.align=="left")
                                _id="float:left;"+_id; 
                            if (img.align=="right")
                                _id="float:right;"+_id; 
                            if (img.parentElement.href)
                                _id="cursor:hand;"+_id; 
                            
                            var _Id="<span "+_od+_Od+_ld+" style=\""+"width:"+img.width+"px;height:"+img.height+"px;"+_id+";"+"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"+"(src='"+img.src+"\', sizingMethod=\'scale\');\">\x3c/span>"; 
                            img.outerHTML=_Id; 
                        }
                    }
                if (_k.childNodes[i].style)
                    if (_k.childNodes[i].style.backgroundImage)
                    {
                        var _oe=_k.childNodes[i].style.backgroundImage.toLowerCase(); 
                        if (_oe.indexOf("url")>=0 && _oe.indexOf("png")>=0)
                        {
                            var _Oe=_oe.indexOf("("); 
                            var _le=_oe.indexOf(")"); 
                            var _ie=_oe.substring(_Oe+1,_le); 
                            _k.childNodes[i].style.backgroundImage=""; 
                            _k.childNodes[i].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='"+_ie+"')"; 
                        }
                    } 
                this._ic(_k.childNodes[i]); 
            }
    } ; 
    
    _n.prototype._Ie= function (_k){if (_k.nodeName.toLowerCase()=="select"){_k._O4=this ; _o1._i6(_k,"click", function (_i5){ this._O4._O4.setCloseEvent("NONE"); } , false); _o1._i6(_k,"focus", function (_i5){ this._O4._O4.setCloseEvent("NONE"); } , false); _o1._i6(_k,"change", function (_i5){ this._O4._O4.setCloseEvent("ONMOUSEOUT"); } , false); _o1._i6(_k,"blur", function (_i5){ this._O4._O4.setCloseEvent("ONMOUSEOUT"); } , false); }if (_k.hasChildNodes())for (var i=0; i<_k.childNodes.length; i++)this._Ie(_k.childNodes[i]); } ; this._I8(); this._i9(_i8); this._oa(); this.setzIndex(_x); if (_o1._Ob){ this._ic(this._L); }if ((_o1._Ob || _o1._of) && (this._O4._a=="ONMOUSEOUT")){ this._Ie(this._L); }}function _Of(){var _If=navigator.userAgent.toLowerCase(); this._og=(_If.indexOf("firefox")!=-1); this._Og=(_If.indexOf("safari")!=-1); this._Ob=((_If.indexOf("msie")!=-1) && (_If.indexOf("opera")==-1)); this._of=(_If.indexOf("opera")!=-1); this._lg=this._ig(document.body,"margin-top"); this._Ig=this._ig(document.body,"margin-left"); this._lg=(this._lg!="auto")?this._lg: "0"; this._Ig=(this._Ig!="auto")?this._Ig: "0"; }_Of.prototype._oh= function (_i5){if (_i5.pageX){return _i5.pageX; }else if (_i5.clientX){return _i5.clientX;}else {return null; }};_Of.prototype._Oh= function (_i5){if (_i5.pageY){return _i5.pageY; }else if (_i5.clientY){return _i5.clientY;}else {return null; }};_Of.prototype._i6= function (_k,_lh,_ih,_Ih){if (_k.addEventListener){_k.addEventListener(_lh,_ih,_Ih); return true; }else if (_k.attachEvent){if (_Ih){return false; }else {var _oi= function (){_ih.apply(_k,[window.event]); };if (!_k["ref"+_lh])_k["ref"+_lh]=[]; else {for (var ref in _k["ref"+_lh]){if (_k["ref"+_lh][ref]._ih === _ih)return false; }}var _Oi=_k.attachEvent("on"+_lh,_oi); if (_Oi)_k["ref"+_lh].push( {_ih:_ih,_oi:_oi } ); return _Oi; }}else {return false; }} ; _Of.prototype._I6= function (_k,_lh,_ih,_Ih){if (_k.removeEventListener){_k.removeEventListener(_lh,_ih,_Ih); return true; }else if (_k.detachEvent){if (_k["ref"+_lh]){for (var ref in _k["ref"+_lh]){if (_k["ref"+_lh][ref]._ih === _ih){_k.detachEvent("on"+_lh,_k["ref"+_lh][ref]._oi); _k["ref"+_lh][ref]._ih=null; _k["ref"+_lh][ref]._oi=null; delete _k["ref"+_lh][ref]; return true; }}}return false; }else {return false; }} ; _Of.prototype._ia= function (_k,_Oa){_li=_k; if (this._Ob && _k.offsetParent!=null)if (_k.offsetParent.nodeName!="BODY" && _k.offsetParent.nodeName!="HTML")if (document.documentElement && document.documentElement.clientWidth)if (document.body.leftMargin)try {_Oa-=parseInt((this._Ig!="")?this._Ig:document.body.leftMargin); }catch (_ii){}if (this._Og)_Oa+=document.body.offsetLeft; var _Ii=0; var _oj=new Array(); while (_k.offsetParent){_Ii+=_k.offsetParent.offsetLeft-((this._of)?0:_k.offsetParent.scrollLeft); _oj.push(_k.offsetParent); _k=_k.offsetParent; }if (this._og)_Ii+=document.body.scrollLeft; if (this._Ob){_Ii+=document.body.scrollLeft; if (document.documentElement)_Ii+=document.documentElement.scrollLeft; }_Oa-=_Ii; var _Oj=0; if ((this._of) && _oj.length>0){_k=_li; while (_k.offsetParent){var _lj= false; if (_k.parentNode.nodeName.toLowerCase()=="div" && _k.parentNode.style.position!="absolute" && _k.parentNode.style.position!="relative" && _k.parentNode.style.position!="fixed"){for (var _ij=0; _ij<_oj.length; _ij++){if (_oj[_ij]==_k.parentNode){_lj= true; break; }}if (_lj== false){_Oj+=_k.parentNode.scrollLeft; }}_k=_k.parentNode; }}_Oa+=_Oj; return _Oa; };_Of.prototype._Ia= function (_k,_la){_li=_k; if (this._Ob && _k.offsetParent!=null)if (_k.offsetParent.nodeName!="BODY" && _k.offsetParent.nodeName!="HTML")if (document.documentElement && document.documentElement.clientWidth)if (document.body.topMargin)try {_la-=parseInt((this._lg!="")?this._lg:document.body.topMargin); }catch (_ii){}if (this._Og)_la+=document.body.offsetTop; var _Ij=0; var _oj=new Array(); while (_k.offsetParent){_Ij+=_k.offsetParent.offsetTop-((this._of)?0:_k.offsetParent.scrollTop); _oj.push(_k.offsetParent); _k=_k.offsetParent; }if (this._og || this._Og)_Ij+=document.body.scrollTop; if (this._Ob){_Ij+=document.body.scrollTop; if (document.documentElement)_Ij+=document.documentElement.scrollTop; }_la-=_Ij; var _ok=0; if ((this._of) && _oj.length>0){_k=_li; while (_k.offsetParent){var _lj= false; if (_k.parentNode.nodeName.toLowerCase()=="div" && _k.parentNode.style.position!="absolute" && _k.parentNode.style.position!="relative" && _k.parentNode.style.position!="fixed"){for (var _ij=0; _ij<_oj.length; _ij++){if (_oj[_ij]==_k.parentNode){_lj= true; break; }}if (_lj== false){_ok+=_k.parentNode.scrollTop; }}_k=_k.parentNode; }}_la+=_ok; return _la; };_Of.prototype._Ok= function (_k){var _lk=0; var _oj=new Array(); var _li=_k; while (_k.offsetParent){_oj.push(_k); if (this._Og && _k.nodeName=="TR")_lk+=_k.firstChild.offsetTop-_k.firstChild.scrollTop; else _lk+=_k.offsetTop-((this._of || _k.nodeName=="TR")?0:_k.scrollTop); _k=_k.offsetParent; }if (this._Og)_lk+=document.body.offsetTop; if (this._Ob)if (document.documentElement && document.documentElement.clientWidth)if (document.body.topMargin)try {_lk+=parseInt((this._lg!="")?this._lg:document.body.topMargin); }catch (_ii){}if ((this._Og || this._og || this._of) && _oj.length>0){_k=_li; while (_k.offsetParent){var _lj= false; if (_k.nodeName.toLowerCase()=="div" && _k.style.position!="absolute" && _k.style.position!="relative" && _k.style.position!="fixed"){for (var _ij=0; _ij<_oj.length; _ij++){if (_oj[_ij]==_k){_lj= true; break; }}if (_lj== false){_lk-=_k.scrollTop; }}_k=_k.parentNode; }}return _lk; } ; _Of.prototype._ik= function (_k){var _lk=0; var _oj=new Array(); var _li=_k; while (_k.offsetParent){_oj.push(_k); if (this._Og && _k.nodeName=="TR")_lk+=_k.firstChild.offsetLeft-_k.firstChild.scrollLeft; else _lk+=_k.offsetLeft-((this._of || _k.nodeName=="TR")?0:_k.scrollLeft); _k=_k.offsetParent; }if (this._Og)_lk+=document.body.offsetTop; if (this._Ob)if (document.documentElement && document.documentElement.clientWidth)if (document.body.leftMargin)try {_lk+=parseInt(((this._Ig!="")?this._Ig:document.body.leftMargin)); }catch (_ii){}if ((this._Og || this._og || this._of) && _oj.length>0){_k=_li; while (_k.offsetParent){var _lj= false; if (_k.nodeName.toLowerCase()=="div" && _k.style.position!="absolute" && _k.style.position!="relative" && _k.style.position!="fixed"){for (var _ij=0; _ij<_oj.length; _ij++){if (_oj[_ij]==_k){_lj= true; break; }}if (_lj== false){_lk-=_k.scrollLeft; }}_k=_k.parentNode; }}return _lk; } ; _Of.prototype._O1= function (_O,_O4){if (_O4.id==_O)return _O4; if (_O4.hasChildNodes())for (var i=0; i<_O4.childNodes.length; i++){var _k=this._O1(_O,_O4.childNodes[i]); if (_k!=null)return _k; }return null; } ; _Of.prototype._l2= function (_k){if (_k.nodeName.toLowerCase()=="area")return this._Ik(_k); else return {left: this._ik(_k),top: this._Ok(_k),width:_k.offsetWidth,height:_k.offsetHeight } ; };_Of.prototype._Ik= function (_ol){if (!_ol.coords)return {left: 0,top: 0,width: 0,height: 0 } ; var _ll=new Array(); var _lk=1; var _oi=_ol.coords; while (_lk>0){_lk=_oi.lastIndexOf(","); var _il=_oi.substring(_lk+1,_oi.length); _ll.push(parseInt(_il)); _oi=(_lk>0)?_oi.substring(0,_lk):_oi; }var _Oa=0; var _la=0; var _oc=0; var _Oc=0; switch (_ol.shape.toLowerCase()){case "circle":if (_ll.length<3)return {left: 0,top: 0,width: 0,height: 0 } ; _Oa=_ll[2]-_ll[0]; _la=_ll[1]-_ll[0]; _oc=2*_ll[0]; _Oc=_oc; break; case "poly":case "polygon":var _Il=10000; var _om=-_Il; var _Om=_Il; var _Im=-_Il; var _on=_Il; for (var i=0; i<_ll.length; i++){if (i%2==0){if (_on>_ll[i])_on=_ll[i]; if (_Im<_ll[i])_Im=_ll[i]; }else {if (_Om>_ll[i])_Om=_ll[i]; if (_om<_ll[i])_om=_ll[i]; }}_Oa=_Om; _la=_on; _oc=_om-_Om; _Oc=_Im-_on; break; case "rect":default:if (_ll.length<4)return {left: 0,top: 0,width: 0,height: 0 } ; _Oa=_ll[3]; _la=_ll[2]; _oc=Math.abs(_ll[1]-_ll[3]); _Oc=Math.abs(_ll[0]-_ll[2]); break; }_On=_Oa+((_ol._T!=null)?this._ik(_ol._T): this._ik(_ol)); _In=_la+((_ol._T!=null)?this._Ok(_ol._T): this._Ok(_ol)); return {left:_On,top:_In,width:_oc,height:_Oc } ; } ; _Of.prototype._ig= function (_oo,_Oo){var _Io=""; if (document._op && document._op._Op){var _lp=document._op._Op(_oo,null); if (!_lp){try {if (_oo.style.display=="none"){_oo.style.display=""; _lp=document._op._Op(_oo,null); if (_lp){_Io=_lp._ip(_Oo); }_oo.style.display="none"; }}catch (_Ip){}}if (_lp && _Io==""){_Io=_lp._ip(_Oo); }}else if (_oo.currentStyle){try {_Oo=_Oo.replace(/-(\w)/g, function (_oq,_Oq){return _Oq.toUpperCase(); } ); _Io=_oo.currentStyle[_Oo]; }catch (_Ip){}}return _Io; } ; var _o1=new _Of(); function _i1(_lq,_iq,_i0,_I0){ this._lq=_lq; this._i0=_i0; this._l1=document.getElementById(_iq); if (this._l1==null)return; this._l1.style.cursor=_I0; this._l1._O4=this ; this._p="drop"; this._Z=0; this._z=0; _Iq.push(this ); _i1.prototype._or= function (_Oa,_la){if (this._p=="drag"){ this._lq._i2(_Oa-this._Z,_la-this._z); }} ; var _Or= function (_i5){if (_o1._Ob){_lr=document.onselectstart; document.onselectstart= function (_i5){return false; } ; }if (_i5.preventDefault)_i5.preventDefault(); if (this._O4._p=="drop"){ this._O4._p="drag"; var _Oi=this._O4._lq._N._l3(); this._O4._Z=_o1._ia(this._O4._lq._N._O9,_o1._oh(_i5))-_Oi.left; this._O4._z=_o1._Ia(this._O4._lq._N._O9,_o1._Oh(_i5))-_Oi.top; this._O4._lq._N.setOpacity(this._O4._i0); }return false; } ; _o1._i6(this._l1,"mousedown",_Or, false); }if (typeof(_ir)=="undefined"){_ir=1; var _lr=document.onselectstart; var _Iq=new Array(); var _Ir= function (_i5){for (var i=0; i<_Iq.length; i++){_Iq[i]._or(_o1._oh(_i5),_o1._Oh(_i5)); }} ; var _os= function (_i5){if (_o1._Ob)document.onselectstart=_lr; for (var i=0; i<_Iq.length; i++){_Iq[i]._p="drop"; _Iq[i]._lq._N.setOpacity(_Iq[i]._lq._X); }} ; _o1._i6(document,"mousemove",_Ir, false); _o1._i6(document,"mouseup",_os, false); }function NoneEffect(){ this._O4=null; NoneEffect.prototype._G= function (){} ; NoneEffect.prototype._I4= function (_l4){} ; }function FadingEffect(){ this._O4=null; FadingEffect.prototype._G= function (){} ; FadingEffect.prototype._I4= function (_l4){if (this._O4==null)return; this._O4._N._l( true); this._O4._N.setOpacity(_l4*this._O4._X/this._O4._u); };}function SlidingEffect(_Os,_ls){ this._O4=null; this._Os=_Os; this._ls=_ls; SlidingEffect.prototype._G= function (){} ; SlidingEffect.prototype._I4= function (_l4){if (this._O4==null)return; _O2=_o1._l2(this._O4._s); switch (this._Os.toLowerCase()){case "left": this._O4._N.setPosition(_O2.left+this._O4._Z-(this._ls-(this._ls*_l4/this._O4._u)),_O2.top+this._O4._z); break; case "right": this._O4._N.setPosition(_O2.left+this._O4._Z+(this._ls-(this._ls*_l4/this._O4._u)),_O2.top+this._O4._z); break; case "top": this._O4._N.setPosition(_O2.left+this._O4._Z,_O2.top+this._O4._z-(this._ls-(this._ls*_l4/this._O4._u))); break; case "bottom": this._O4._N.setPosition(_O2.left+this._O4._Z,_O2.top+this._O4._z+(this._ls-(this._ls*_l4/this._O4._u))); break; } this._O4._N._l( true); };}function FlyingEffect(_is,_Is,_ot){ this._O4=null; this._Ot=document.createElement("div"); this._Ot.style.position="absolute"; this._Ot.style.border="solid thin gray"; this._Ot.style.display="none"; this._Ot.style.backgroundColor="transparent"; this._is=_is; this._Is=_Is; this._ot=_ot; FlyingEffect.prototype._G= function (){if (this._O4==null)return; this._Ot.style.display="none"; if (_o1._of== false)this._O4._V.appendChild((this._Ot.parentNode==null)?this._Ot: this._Ot.parentNode.removeChild(this._Ot)); } ; FlyingEffect.prototype._I4= function (_l4){if (this._O4==null)return; this._Ot.style.zIndex=(this._O4._x+2); if (this._Ot.parentNode==null){if (_o1._of)document.body.appendChild(this._Ot); else this._O4._V.appendChild(this._Ot); } this._O4._U=(this._O4._U>this._O4._E+140)?this._O4._U: (this._O4._E+150); this._O4._U=(this._O4._U>this._O4._e+140)?this._O4._U: (this._O4._e+150); if ((_l4<=1) || (_l4>=this._O4._u-1)){ this._Ot.style.display="none"; return; }if (_l4>1 && _l4<this._O4._u-1)this._O4._N._l( false); _O2=_o1._l2(this._O4._s); switch (this._is){case "TOP_LEFT": this._Is=0; this._ot=0; break; case "TOP_RIGHT": this._Is=_O2.width; this._ot=0; break; case "MIDDLE_CENTER": this._Is=_O2.width/2; this._ot=_O2.height/2; break; case "BOTTOM_LEFT": this._Is=0; this._ot=_O2.height; break; case "BOTTOM_RIGHT": this._Is=_O2.width; this._ot=_O2.height; break; case "ABSOLUTE":default:break; }var _lt=this._O4._N._l3(); this._Is=this._Is+_O2.left; this._ot=this._ot+_O2.top; if (_o1._of){_lt.left=_O2.left+this._O4._Z; _lt.top=_O2.top+this._O4._z; }else { this._Is=_o1._ia(this._Ot,this._Is); this._ot=_o1._Ia(this._Ot,this._ot); }var _it=this._Is+(_l4*(_lt.left-this._Is))/this._O4._u; var _It=this._ot+(_l4*(_lt.top-this._ot))/this._O4._u; var _ou=(_l4*_lt.width)/this._O4._u; var _Ou=(_l4*_lt.height)/this._O4._u; this._Ot.style.left=_it+"px"; this._Ot.style.top=_It+"px"; this._Ot.style.width=_ou+"px"; this._Ot.style.height=_Ou+"px"; this._Ot.style.display="block"; if ((_Ou<10) || (this._Is==0 && this._Is==this._ot))this._Ot.style.display="none"; };}