'=0A=
+ ''=0A=
+ tt_aV[TITLE]=0A=
+ ''=0A=
+ (tt_aV[CLOSEBTN] ?=0A=
(''=0A=
+ ''=0A=
+ tt_aV[CLOSEBTNTEXT]=0A=
+ ' | ')=0A=
: '')=0A=
+ ' ')=0A=
: '')=0A=
+ ''=0A=
+ ' '=0A=
+ tt_sContent=0A=
+ ' '=0A=
+ (tt_aV[SHADOW]=0A=
? (''=0A=
+ '')=0A=
: '')=0A=
);=0A=
tt_GetSubDivRefs();=0A=
// Convert DOM node to tip=0A=
if(tt_t2t && !tt_aV[COPYCONTENT])=0A=
tt_El2Tip();=0A=
tt_ExtCallFncs(0, "SubDivsCreated");=0A=
}=0A=
function tt_GetSubDivRefs()=0A=
{=0A=
var aId =3D new Array("WzTiTl", "WzTiTlTb", "WzTiTlI", "WzClOsE", =
"WzBoDy", "WzBoDyI", "WzTtShDwB", "WzTtShDwR");=0A=
=0A=
for(var i =3D aId.length; i; --i)=0A=
tt_aElt[i] =3D tt_GetElt(aId[i - 1]);=0A=
}=0A=
function tt_FormatTip()=0A=
{=0A=
var css, w, h, pad =3D tt_aV[PADDING], padT, wBrd =3D =
tt_aV[BORDERWIDTH],=0A=
iOffY, iOffSh, iAdd =3D (pad + wBrd) << 1;=0A=
=0A=
//--------- Title DIV ----------=0A=
if(tt_aV[TITLE].length)=0A=
{=0A=
padT =3D tt_aV[TITLEPADDING];=0A=
css =3D tt_aElt[1].style;=0A=
css.background =3D tt_aV[TITLEBGCOLOR];=0A=
css.paddingTop =3D css.paddingBottom =3D padT + "px";=0A=
css.paddingLeft =3D css.paddingRight =3D (padT + 2) + "px";=0A=
css =3D tt_aElt[3].style;=0A=
css.color =3D tt_aV[TITLEFONTCOLOR];=0A=
if(tt_aV[WIDTH] =3D=3D -1)=0A=
css.whiteSpace =3D "nowrap";=0A=
css.fontFamily =3D tt_aV[TITLEFONTFACE];=0A=
css.fontSize =3D tt_aV[TITLEFONTSIZE];=0A=
css.fontWeight =3D "bold";=0A=
css.textAlign =3D tt_aV[TITLEALIGN];=0A=
// Close button DIV=0A=
if(tt_aElt[4])=0A=
{=0A=
css =3D tt_aElt[4].style;=0A=
css.background =3D tt_aV[CLOSEBTNCOLORS][0];=0A=
css.color =3D tt_aV[CLOSEBTNCOLORS][1];=0A=
css.fontFamily =3D tt_aV[TITLEFONTFACE];=0A=
css.fontSize =3D tt_aV[TITLEFONTSIZE];=0A=
css.fontWeight =3D "bold";=0A=
}=0A=
if(tt_aV[WIDTH] > 0)=0A=
tt_w =3D tt_aV[WIDTH];=0A=
else=0A=
{=0A=
tt_w =3D tt_GetDivW(tt_aElt[3]) + tt_GetDivW(tt_aElt[4]);=0A=
// Some spacing between title DIV and closebutton=0A=
if(tt_aElt[4])=0A=
tt_w +=3D pad;=0A=
// Restrict auto width to max width=0A=
if(tt_aV[WIDTH] < -1 && tt_w > -tt_aV[WIDTH])=0A=
tt_w =3D -tt_aV[WIDTH];=0A=
}=0A=
// Ensure the top border of the body DIV be covered by the title DIV=0A=
iOffY =3D -wBrd;=0A=
}=0A=
else=0A=
{=0A=
tt_w =3D 0;=0A=
iOffY =3D 0;=0A=
}=0A=
=0A=
//-------- Body DIV ------------=0A=
css =3D tt_aElt[5].style;=0A=
css.top =3D iOffY + "px";=0A=
if(wBrd)=0A=
{=0A=
css.borderColor =3D tt_aV[BORDERCOLOR];=0A=
css.borderStyle =3D tt_aV[BORDERSTYLE];=0A=
css.borderWidth =3D wBrd + "px";=0A=
}=0A=
if(tt_aV[BGCOLOR].length)=0A=
css.background =3D tt_aV[BGCOLOR];=0A=
if(tt_aV[BGIMG].length)=0A=
css.backgroundImage =3D "url(" + tt_aV[BGIMG] + ")";=0A=
css.padding =3D pad + "px";=0A=
css.textAlign =3D tt_aV[TEXTALIGN];=0A=
if(tt_aV[HEIGHT])=0A=
{=0A=
css.overflow =3D "auto";=0A=
if(tt_aV[HEIGHT] > 0)=0A=
css.height =3D (tt_aV[HEIGHT] + iAdd) + "px";=0A=
else=0A=
tt_h =3D iAdd - tt_aV[HEIGHT];=0A=
}=0A=
// TD inside body DIV=0A=
css =3D tt_aElt[6].style;=0A=
css.color =3D tt_aV[FONTCOLOR];=0A=
css.fontFamily =3D tt_aV[FONTFACE];=0A=
css.fontSize =3D tt_aV[FONTSIZE];=0A=
css.fontWeight =3D tt_aV[FONTWEIGHT];=0A=
css.textAlign =3D tt_aV[TEXTALIGN];=0A=
if(tt_aV[WIDTH] > 0)=0A=
w =3D tt_aV[WIDTH];=0A=
// Width like title (if existent)=0A=
else if(tt_aV[WIDTH] =3D=3D -1 && tt_w)=0A=
w =3D tt_w;=0A=
else=0A=
{=0A=
// Measure width of the body's inner TD, as some browsers would expand=0A=
// the container and outer body DIV to 100%=0A=
w =3D tt_GetDivW(tt_aElt[6]);=0A=
// Restrict auto width to max width=0A=
if(tt_aV[WIDTH] < -1 && w > -tt_aV[WIDTH])=0A=
w =3D -tt_aV[WIDTH];=0A=
}=0A=
if(w > tt_w)=0A=
tt_w =3D w;=0A=
tt_w +=3D iAdd;=0A=
=0A=
//--------- Shadow DIVs ------------=0A=
if(tt_aV[SHADOW])=0A=
{=0A=
tt_w +=3D tt_aV[SHADOWWIDTH];=0A=
iOffSh =3D Math.floor((tt_aV[SHADOWWIDTH] * 4) / 3);=0A=
// Bottom shadow=0A=
css =3D tt_aElt[7].style;=0A=
css.top =3D iOffY + "px";=0A=
css.left =3D iOffSh + "px";=0A=
css.width =3D (tt_w - iOffSh - tt_aV[SHADOWWIDTH]) + "px";=0A=
css.height =3D tt_aV[SHADOWWIDTH] + "px";=0A=
css.background =3D tt_aV[SHADOWCOLOR];=0A=
// Right shadow=0A=
css =3D tt_aElt[8].style;=0A=
css.top =3D iOffSh + "px";=0A=
css.left =3D (tt_w - tt_aV[SHADOWWIDTH]) + "px";=0A=
css.width =3D tt_aV[SHADOWWIDTH] + "px";=0A=
css.background =3D tt_aV[SHADOWCOLOR];=0A=
}=0A=
else=0A=
iOffSh =3D 0;=0A=
=0A=
//-------- Container DIV -------=0A=
tt_SetTipOpa(tt_aV[FADEIN] ? 0 : tt_aV[OPACITY]);=0A=
tt_FixSize(iOffY, iOffSh);=0A=
}=0A=
// Fixate the size so it can't dynamically change while the tooltip is =
moving.=0A=
function tt_FixSize(iOffY, iOffSh)=0A=
{=0A=
var wIn, wOut, h, add, pad =3D tt_aV[PADDING], wBrd =3D =
tt_aV[BORDERWIDTH], i;=0A=
=0A=
tt_aElt[0].style.width =3D tt_w + "px";=0A=
tt_aElt[0].style.pixelWidth =3D tt_w;=0A=
wOut =3D tt_w - ((tt_aV[SHADOW]) ? tt_aV[SHADOWWIDTH] : 0);=0A=
// Body=0A=
wIn =3D wOut;=0A=
if(!tt_bBoxOld)=0A=
wIn -=3D (pad + wBrd) << 1;=0A=
tt_aElt[5].style.width =3D wIn + "px";=0A=
// Title=0A=
if(tt_aElt[1])=0A=
{=0A=
wIn =3D wOut - ((tt_aV[TITLEPADDING] + 2) << 1);=0A=
if(!tt_bBoxOld)=0A=
wOut =3D wIn;=0A=
tt_aElt[1].style.width =3D wOut + "px";=0A=
tt_aElt[2].style.width =3D wIn + "px";=0A=
}=0A=
// Max height specified=0A=
if(tt_h)=0A=
{=0A=
h =3D tt_GetDivH(tt_aElt[5]);=0A=
if(h > tt_h)=0A=
{=0A=
if(!tt_bBoxOld)=0A=
tt_h -=3D (pad + wBrd) << 1;=0A=
tt_aElt[5].style.height =3D tt_h + "px";=0A=
}=0A=
}=0A=
tt_h =3D tt_GetDivH(tt_aElt[0]) + iOffY;=0A=
// Right shadow=0A=
if(tt_aElt[8])=0A=
tt_aElt[8].style.height =3D (tt_h - iOffSh) + "px";=0A=
i =3D tt_aElt.length - 1;=0A=
if(tt_aElt[i])=0A=
{=0A=
tt_aElt[i].style.width =3D tt_w + "px";=0A=
tt_aElt[i].style.height =3D tt_h + "px";=0A=
}=0A=
}=0A=
function tt_DeAlt(el)=0A=
{=0A=
var aKid;=0A=
=0A=
if(el)=0A=
{=0A=
if(el.alt)=0A=
el.alt =3D "";=0A=
if(el.title)=0A=
el.title =3D "";=0A=
aKid =3D el.childNodes || el.children || null;=0A=
if(aKid)=0A=
{=0A=
for(var i =3D aKid.length; i;)=0A=
tt_DeAlt(aKid[--i]);=0A=
}=0A=
}=0A=
}=0A=
// This workaround removes the native tooltips over links in Opera=0A=
function tt_OpDeHref(el)=0A=
{=0A=
if(!tt_op)=0A=
return;=0A=
if(tt_elDeHref)=0A=
tt_OpReHref();=0A=
while(el)=0A=
{=0A=
if(el.hasAttribute && el.hasAttribute("href"))=0A=
{=0A=
el.t_href =3D el.getAttribute("href");=0A=
el.t_stats =3D window.status;=0A=
el.removeAttribute("href");=0A=
el.style.cursor =3D "hand";=0A=
tt_AddEvtFnc(el, "mousedown", tt_OpReHref);=0A=
window.status =3D el.t_href;=0A=
tt_elDeHref =3D el;=0A=
break;=0A=
}=0A=
el =3D tt_GetDad(el);=0A=
}=0A=
}=0A=
function tt_OpReHref()=0A=
{=0A=
if(tt_elDeHref)=0A=
{=0A=
tt_elDeHref.setAttribute("href", tt_elDeHref.t_href);=0A=
tt_RemEvtFnc(tt_elDeHref, "mousedown", tt_OpReHref);=0A=
window.status =3D tt_elDeHref.t_stats;=0A=
tt_elDeHref =3D null;=0A=
}=0A=
}=0A=
function tt_El2Tip()=0A=
{=0A=
var css =3D tt_t2t.style;=0A=
=0A=
// Store previous positioning=0A=
tt_t2t.t_cp =3D css.position;=0A=
tt_t2t.t_cl =3D css.left;=0A=
tt_t2t.t_ct =3D css.top;=0A=
tt_t2t.t_cd =3D css.display;=0A=
// Store the tag's parent element so we can restore that DOM branch=0A=
// when the tooltip is being hidden=0A=
tt_t2tDad =3D tt_GetDad(tt_t2t);=0A=
tt_MovDomNode(tt_t2t, tt_t2tDad, tt_aElt[6]);=0A=
css.display =3D "block";=0A=
css.position =3D "static";=0A=
css.left =3D css.top =3D css.marginLeft =3D css.marginTop =3D "0px";=0A=
}=0A=
function tt_UnEl2Tip()=0A=
{=0A=
// Restore positioning and display=0A=
var css =3D tt_t2t.style;=0A=
=0A=
css.display =3D tt_t2t.t_cd;=0A=
tt_MovDomNode(tt_t2t, tt_GetDad(tt_t2t), tt_t2tDad);=0A=
css.position =3D tt_t2t.t_cp;=0A=
css.left =3D tt_t2t.t_cl;=0A=
css.top =3D tt_t2t.t_ct;=0A=
tt_t2tDad =3D null;=0A=
}=0A=
function tt_OverInit()=0A=
{=0A=
if(window.event)=0A=
tt_over =3D window.event.target || window.event.srcElement;=0A=
else=0A=
tt_over =3D tt_ovr_;=0A=
tt_DeAlt(tt_over);=0A=
tt_OpDeHref(tt_over);=0A=
}=0A=
function tt_ShowInit()=0A=
{=0A=
tt_tShow.Timer("tt_Show()", tt_aV[DELAY], true);=0A=
if(tt_aV[CLICKCLOSE] || tt_aV[CLICKSTICKY])=0A=
tt_AddEvtFnc(document, "mouseup", tt_OnLClick);=0A=
}=0A=
function tt_Show()=0A=
{=0A=
var css =3D tt_aElt[0].style;=0A=
=0A=
// Override the z-index of the topmost wz_dragdrop.js D&D item=0A=
css.zIndex =3D Math.max((window.dd && dd.z) ? (dd.z + 2) : 0, 1010);=0A=
if(tt_aV[STICKY] || !tt_aV[FOLLOWMOUSE])=0A=
tt_iState &=3D ~0x4;=0A=
if(tt_aV[DURATION] > 0)=0A=
tt_tDurt.Timer("tt_HideInit()", tt_aV[DURATION], true);=0A=
tt_ExtCallFncs(0, "Show")=0A=
css.visibility =3D "visible";=0A=
tt_iState |=3D 0x2;=0A=
if(tt_aV[FADEIN])=0A=
tt_Fade(0, 0, tt_aV[OPACITY], Math.round(tt_aV[FADEIN] / =
tt_aV[FADEINTERVAL]));=0A=
tt_ShowIfrm();=0A=
}=0A=
function tt_ShowIfrm()=0A=
{=0A=
if(tt_ie56)=0A=
{=0A=
var ifrm =3D tt_aElt[tt_aElt.length - 1];=0A=
if(ifrm)=0A=
{=0A=
var css =3D ifrm.style;=0A=
css.zIndex =3D tt_aElt[0].style.zIndex - 1;=0A=
css.display =3D "block";=0A=
}=0A=
}=0A=
}=0A=
function tt_Move(e)=0A=
{=0A=
if(e)=0A=
tt_ovr_ =3D e.target || e.srcElement;=0A=
e =3D e || window.event;=0A=
if(e)=0A=
{=0A=
tt_musX =3D tt_GetEvtX(e);=0A=
tt_musY =3D tt_GetEvtY(e);=0A=
}=0A=
if(tt_iState & 0x04)=0A=
{=0A=
// Prevent jam of mousemove events=0A=
if(!tt_op && !tt_ie)=0A=
{=0A=
if(tt_bWait)=0A=
return;=0A=
tt_bWait =3D true;=0A=
tt_tWaitMov.Timer("tt_bWait =3D false;", 1, true);=0A=
}=0A=
if(tt_aV[FIX])=0A=
{=0A=
tt_iState &=3D ~0x4;=0A=
tt_PosFix();=0A=
}=0A=
else if(!tt_ExtCallFncs(e, "MoveBefore"))=0A=
tt_SetTipPos(tt_Pos(0), tt_Pos(1));=0A=
tt_ExtCallFncs([tt_musX, tt_musY], "MoveAfter")=0A=
}=0A=
}=0A=
function tt_Pos(iDim)=0A=
{=0A=
var iX, bJmpMod, cmdAlt, cmdOff, cx, iMax, iScrl, iMus, bJmp;=0A=
=0A=
// Map values according to dimension to calculate=0A=
if(iDim)=0A=
{=0A=
bJmpMod =3D tt_aV[JUMPVERT];=0A=
cmdAlt =3D ABOVE;=0A=
cmdOff =3D OFFSETY;=0A=
cx =3D tt_h;=0A=
iMax =3D tt_maxPosY;=0A=
iScrl =3D tt_scrlY;=0A=
iMus =3D tt_musY;=0A=
bJmp =3D tt_bJmpVert;=0A=
}=0A=
else=0A=
{=0A=
bJmpMod =3D tt_aV[JUMPHORZ];=0A=
cmdAlt =3D LEFT;=0A=
cmdOff =3D OFFSETX;=0A=
cx =3D tt_w;=0A=
iMax =3D tt_maxPosX;=0A=
iScrl =3D tt_scrlX;=0A=
iMus =3D tt_musX;=0A=
bJmp =3D tt_bJmpHorz;=0A=
}=0A=
if(bJmpMod)=0A=
{=0A=
if(tt_aV[cmdAlt] && (!bJmp || tt_CalcPosAlt(iDim) >=3D iScrl + 16))=0A=
iX =3D tt_PosAlt(iDim);=0A=
else if(!tt_aV[cmdAlt] && bJmp && tt_CalcPosDef(iDim) > iMax - 16)=0A=
iX =3D tt_PosAlt(iDim);=0A=
else=0A=
iX =3D tt_PosDef(iDim);=0A=
}=0A=
else=0A=
{=0A=
iX =3D iMus;=0A=
if(tt_aV[cmdAlt])=0A=
iX -=3D cx + tt_aV[cmdOff] - (tt_aV[SHADOW] ? tt_aV[SHADOWWIDTH] : 0);=0A=
else=0A=
iX +=3D tt_aV[cmdOff];=0A=
}=0A=
// Prevent tip from extending past clientarea boundary=0A=
if(iX > iMax)=0A=
iX =3D bJmpMod ? tt_PosAlt(iDim) : iMax;=0A=
// In case of insufficient space on both sides, ensure the left/upper =
part=0A=
// of the tip be visible=0A=
if(iX < iScrl)=0A=
iX =3D bJmpMod ? tt_PosDef(iDim) : iScrl;=0A=
return iX;=0A=
}=0A=
function tt_PosDef(iDim)=0A=
{=0A=
if(iDim)=0A=
tt_bJmpVert =3D tt_aV[ABOVE];=0A=
else=0A=
tt_bJmpHorz =3D tt_aV[LEFT];=0A=
return tt_CalcPosDef(iDim);=0A=
}=0A=
function tt_PosAlt(iDim)=0A=
{=0A=
if(iDim)=0A=
tt_bJmpVert =3D !tt_aV[ABOVE];=0A=
else=0A=
tt_bJmpHorz =3D !tt_aV[LEFT];=0A=
return tt_CalcPosAlt(iDim);=0A=
}=0A=
function tt_CalcPosDef(iDim)=0A=
{=0A=
return iDim ? (tt_musY + tt_aV[OFFSETY]) : (tt_musX + tt_aV[OFFSETX]);=0A=
}=0A=
function tt_CalcPosAlt(iDim)=0A=
{=0A=
var cmdOff =3D iDim ? OFFSETY : OFFSETX;=0A=
var dx =3D tt_aV[cmdOff] - (tt_aV[SHADOW] ? tt_aV[SHADOWWIDTH] : 0);=0A=
if(tt_aV[cmdOff] > 0 && dx <=3D 0)=0A=
dx =3D 1;=0A=
return((iDim ? (tt_musY - tt_h) : (tt_musX - tt_w)) - dx);=0A=
}=0A=
function tt_PosFix()=0A=
{=0A=
var iX, iY;=0A=
=0A=
if(typeof(tt_aV[FIX][0]) =3D=3D "number")=0A=
{=0A=
iX =3D tt_aV[FIX][0];=0A=
iY =3D tt_aV[FIX][1];=0A=
}=0A=
else=0A=
{=0A=
if(typeof(tt_aV[FIX][0]) =3D=3D "string")=0A=
el =3D tt_GetElt(tt_aV[FIX][0]);=0A=
// First slot in array is direct reference to HTML element=0A=
else=0A=
el =3D tt_aV[FIX][0];=0A=
iX =3D tt_aV[FIX][1];=0A=
iY =3D tt_aV[FIX][2];=0A=
// By default, vert pos is related to bottom edge of HTML element=0A=
if(!tt_aV[ABOVE] && el)=0A=
iY +=3D tt_GetDivH(el);=0A=
for(; el; el =3D el.offsetParent)=0A=
{=0A=
iX +=3D el.offsetLeft || 0;=0A=
iY +=3D el.offsetTop || 0;=0A=
}=0A=
}=0A=
// For a fixed tip positioned above the mouse, use the bottom edge as =
anchor=0A=
// (recommended by Christophe Rebeschini, 31.1.2008)=0A=
if(tt_aV[ABOVE])=0A=
iY -=3D tt_h;=0A=
tt_SetTipPos(iX, iY);=0A=
}=0A=
function tt_Fade(a, now, z, n)=0A=
{=0A=
if(n)=0A=
{=0A=
now +=3D Math.round((z - now) / n);=0A=
if((z > a) ? (now >=3D z) : (now <=3D z))=0A=
now =3D z;=0A=
else=0A=
tt_tFade.Timer(=0A=
"tt_Fade("=0A=
+ a + "," + now + "," + z + "," + (n - 1)=0A=
+ ")",=0A=
tt_aV[FADEINTERVAL],=0A=
true=0A=
);=0A=
}=0A=
now ? tt_SetTipOpa(now) : tt_Hide();=0A=
}=0A=
function tt_SetTipOpa(opa)=0A=
{=0A=
// To circumvent the opacity nesting flaws of IE, we set the opacity=0A=
// for each sub-DIV separately, rather than for the container DIV.=0A=
tt_SetOpa(tt_aElt[5], opa);=0A=
if(tt_aElt[1])=0A=
tt_SetOpa(tt_aElt[1], opa);=0A=
if(tt_aV[SHADOW])=0A=
{=0A=
opa =3D Math.round(opa * 0.8);=0A=
tt_SetOpa(tt_aElt[7], opa);=0A=
tt_SetOpa(tt_aElt[8], opa);=0A=
}=0A=
}=0A=
function tt_OnScrl()=0A=
{=0A=
tt_scrlX =3D tt_GetScrollX();=0A=
tt_scrlY =3D tt_GetScrollY();=0A=
}=0A=
function tt_OnCloseBtnOver(iOver)=0A=
{=0A=
var css =3D tt_aElt[4].style;=0A=
=0A=
iOver <<=3D 1;=0A=
css.background =3D tt_aV[CLOSEBTNCOLORS][iOver];=0A=
css.color =3D tt_aV[CLOSEBTNCOLORS][iOver + 1];=0A=
}=0A=
function tt_OnLClick(e)=0A=
{=0A=
// Ignore right-clicks=0A=
e =3D e || window.event;=0A=
if(!((e.button && e.button & 2) || (e.which && e.which =3D=3D 3)))=0A=
{=0A=
if(tt_aV[CLICKSTICKY] && (tt_iState & 0x4))=0A=
{=0A=
tt_aV[STICKY] =3D true;=0A=
tt_iState &=3D ~0x4;=0A=
}=0A=
else if(tt_aV[CLICKCLOSE])=0A=
tt_HideInit();=0A=
}=0A=
}=0A=
function tt_Int(x)=0A=
{=0A=
var y;=0A=
=0A=
return(isNaN(y =3D parseInt(x)) ? 0 : y);=0A=
}=0A=
Number.prototype.Timer =3D function(s, iT, bUrge)=0A=
{=0A=
if(!this.value || bUrge)=0A=
this.value =3D window.setTimeout(s, iT);=0A=
}=0A=
Number.prototype.EndTimer =3D function()=0A=
{=0A=
if(this.value)=0A=
{=0A=
window.clearTimeout(this.value);=0A=
this.value =3D 0;=0A=
}=0A=
}=0A=
function tt_SetOpa(el, opa)=0A=
{=0A=
var css =3D el.style;=0A=
=0A=
tt_opa =3D opa;=0A=
if(tt_flagOpa =3D=3D 1)=0A=
{=0A=
if(opa < 100)=0A=
{=0A=
// Workarounds for bugs of IE:=0A=
// 1.) Once a CSS filter has been applied, fonts are no longer=0A=
// anti-aliased, so we store the previous 'non-filter' to be=0A=
// able to restore it=0A=
if(typeof(el.filtNo) =3D=3D tt_u)=0A=
el.filtNo =3D css.filter;=0A=
// 2.) A DIV cannot be made visible in a single step if an=0A=
// opacity < 100 has been applied while the DIV was hidden=0A=
var bVis =3D css.visibility !=3D "hidden";=0A=
// 3.) In IE6, applying an opacity < 100 has no effect if the=0A=
// element has no layout (position, size, zoom, ...)=0A=
css.zoom =3D "100%";=0A=
if(!bVis)=0A=
css.visibility =3D "visible";=0A=
css.filter =3D "alpha(opacity=3D" + opa + ")";=0A=
if(!bVis)=0A=
css.visibility =3D "hidden";=0A=
}=0A=
else if(typeof(el.filtNo) !=3D tt_u)=0A=
// Restore 'non-filter'=0A=
css.filter =3D el.filtNo;=0A=
}=0A=
else=0A=
{=0A=
opa /=3D 100.0;=0A=
switch(tt_flagOpa)=0A=
{=0A=
case 2:=0A=
css.KhtmlOpacity =3D opa; break;=0A=
case 3:=0A=
css.KHTMLOpacity =3D opa; break;=0A=
case 4:=0A=
css.MozOpacity =3D opa; break;=0A=
case 5:=0A=
css.opacity =3D opa; break;=0A=
}=0A=
}=0A=
}=0A=
function tt_Err(sErr, bIfDebug)=0A=
{=0A=
// if(tt_Debug || !bIfDebug)=0A=
// alert("Tooltip Script Error Message:\n\n" + sErr);=0A=
}=0A=
=0A=
//=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D EXTENSION (PLUGIN) MANAGER =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D//=0A=
function tt_ExtCmdEnum()=0A=
{=0A=
var s;=0A=
=0A=
// Add new command(s) to the commands enum=0A=
for(var i in config)=0A=
{=0A=
s =3D "window." + i.toString().toUpperCase();=0A=
if(eval("typeof(" + s + ") =3D=3D tt_u"))=0A=
{=0A=
eval(s + " =3D " + tt_aV.length);=0A=
tt_aV[tt_aV.length] =3D null;=0A=
}=0A=
}=0A=
}=0A=
function tt_ExtCallFncs(arg, sFnc)=0A=
{=0A=
var b =3D false;=0A=
for(var i =3D tt_aExt.length; i;)=0A=
{--i;=0A=
var fnc =3D tt_aExt[i]["On" + sFnc];=0A=
// Call the method the extension has defined for this event=0A=
if(fnc && fnc(arg))=0A=
b =3D true;=0A=
}=0A=
return b;=0A=
}=0A=
=0A=
tt_Init();=0A=
------=_NextPart_000_004E_01CB5C58.61016570
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://journals.lww.com/_layouts/OAKS.Journals/webtrends.js
// WebTrends SmartSource Data Collector Tag
// Version: 8.5.0 =20
// Tag Builder Version: 2.0.0
// Created: 10/10/2008 20:38:53
function WebTrends(journal_dcsid, domain, fpcdom) {
var that =3D this;
// begin: user modifiable
this.dcsid =3D journal_dcsid;
this.domain =3D domain; //"statse.webtrendslive.com";
this.timezone =3D -5;
this.fpcdom =3D fpcdom;
this.metanames =3D =
"wkhealth_journal_title,wkhealth_volume,wkhealth_issue,wkhealth_ovid_acce=
ssion_number,wkhealth_issn,wkhealth_title,wkhealth_blog_title,wkhealth_au=
thors,wkhealth_date,wkhealth_firstpage,wkhealth_toc_section,wkhealth_toc_=
sub_section,wkhealth_eJpId,wkhealth_user_profession,wkhealth_user_special=
ity,wkhealth_collection_title,wkhealth_institution_name,wkhealth_institut=
ion_type,wkhealth_customerid,wkhealth_doi,wkhealth_abstract_html_url,wkhe=
alth_fulltext_html_url,wkhealth_pdf_url";
this.enabled =3D true;
this.i18n =3D false;
this.fpc =3D "WT_FPC";
// end: user modifiable
this.DCS =3D {};
this.WT =3D {};
this.DCSext =3D {};
this.images =3D [];
this.index =3D 0;
this.exre =3D (function() { return (window.RegExp ? new =
RegExp("dcs(uri)|(ref)|(aut)|(met)|(sta)|(sip)|(pro)|(byt)|(dat)|(p3p)|(c=
fg)|(redirect)|(cip)", "i") : ""); })();
this.re =3D (function() { return (window.RegExp ? (that.i18n ? { =
"%25": /\%/g} : { "%09": /\t/g, "%20": / /g, "%23": /\#/g, "%26": /\&/g, =
"%2B": /\+/g, "%3F": /\?/g, "%5C": /\\/g, "%22": /\"/g, "%7F": /\x7F/g, =
"%A0": /\xA0/g }) : ""); })();
}
WebTrends.prototype.dcsGetId =3D function() {
if (this.enabled && (document.cookie.indexOf(this.fpc + "=3D") =
=3D=3D -1) && (document.cookie.indexOf("WTLOPTOUT=3D") =3D=3D -1)) {
document.write("<\/scr" + =
"ipt>");
}
}
WebTrends.prototype.dcsGetCookie =3D function(name) {
var cookies =3D document.cookie.split("; ");
var cmatch =3D [];
var idx =3D 0;
var i =3D 0;
var namelen =3D name.length;
var clen =3D cookies.length;
for (i =3D 0; i < clen; i++) {
var c =3D cookies[i];
if ((c.substring(0, namelen + 1)) =3D=3D (name + "=3D")) {
cmatch[idx++] =3D c;
}
}
var cmatchCount =3D cmatch.length;
if (cmatchCount > 0) {
idx =3D 0;
if ((cmatchCount > 1) && (name =3D=3D this.fpc)) {
var dLatest =3D new Date(0);
for (i =3D 0; i < cmatchCount; i++) {
var lv =3D parseInt(this.dcsGetCrumb(cmatch[i], "lv"));
var dLst =3D new Date(lv);
if (dLst > dLatest) {
dLatest.setTime(dLst.getTime());
idx =3D i;
}
}
}
return unescape(cmatch[idx].substring(namelen + 1));
}
else {
return null;
}
}
WebTrends.prototype.dcsGetCrumb =3D function(cval, crumb, sep) {
var aCookie =3D cval.split(sep || ":");
for (var i =3D 0; i < aCookie.length; i++) {
var aCrumb =3D aCookie[i].split("=3D");
if (crumb =3D=3D aCrumb[0]) {
return aCrumb[1];
}
}
return null;
}
WebTrends.prototype.dcsGetIdCrumb =3D function(cval, crumb) {
var id =3D cval.substring(0, cval.indexOf(":lv=3D"));
var aCrumb =3D id.split("=3D");
for (var i =3D 0; i < aCrumb.length; i++) {
if (crumb =3D=3D aCrumb[0]) {
return aCrumb[1];
}
}
return null;
}
WebTrends.prototype.dcsIsFpcSet =3D function(name, id, lv, ss) {
var c =3D this.dcsGetCookie(name);
if (c) {
return ((id =3D=3D this.dcsGetIdCrumb(c, "id")) && (lv =3D=3D =
this.dcsGetCrumb(c, "lv")) && (ss =3D=3D this.dcsGetCrumb(c, "ss"))) ? 0 =
: 3;
}
return 2;
}
WebTrends.prototype.dcsFPC =3D function() {
if (document.cookie.indexOf("WTLOPTOUT=3D") !=3D -1) {
return;
}
var WT =3D this.WT;
var name =3D this.fpc;
var dCur =3D new Date();
var adj =3D (dCur.getTimezoneOffset() * 60000) + (this.timezone * =
3600000);
dCur.setTime(dCur.getTime() + adj);
var dExp =3D new Date(dCur.getTime() + 315360000000);
var dSes =3D new Date(dCur.getTime());
WT.co_f =3D WT.vt_sid =3D WT.vt_f =3D WT.vt_f_a =3D WT.vt_f_s =3D =
WT.vt_f_d =3D WT.vt_f_tlh =3D WT.vt_f_tlv =3D "";
if (document.cookie.indexOf(name + "=3D") =3D=3D -1) {
if ((typeof (gWtId) !=3D "undefined") && (gWtId !=3D "")) {
WT.co_f =3D gWtId;
}
else if ((typeof (gTempWtId) !=3D "undefined") && (gTempWtId =
!=3D "")) {
WT.co_f =3D gTempWtId;
WT.vt_f =3D "1";
}
else {
WT.co_f =3D "2";
var curt =3D dCur.getTime().toString();
for (var i =3D 2; i <=3D (32 - curt.length); i++) {
WT.co_f +=3D Math.floor(Math.random() * =
16.0).toString(16);
}
WT.co_f +=3D curt;
WT.vt_f =3D "1";
}
if (typeof (gWtAccountRollup) =3D=3D "undefined") {
WT.vt_f_a =3D "1";
}
WT.vt_f_s =3D WT.vt_f_d =3D "1";
WT.vt_f_tlh =3D WT.vt_f_tlv =3D "0";
}
else {
var c =3D this.dcsGetCookie(name);
var id =3D this.dcsGetIdCrumb(c, "id");
var lv =3D parseInt(this.dcsGetCrumb(c, "lv"));
var ss =3D parseInt(this.dcsGetCrumb(c, "ss"));
if ((id =3D=3D null) || (id =3D=3D "null") || isNaN(lv) || =
isNaN(ss)) {
return;
}
WT.co_f =3D id;
var dLst =3D new Date(lv);
WT.vt_f_tlh =3D Math.floor((dLst.getTime() - adj) / 1000);
dSes.setTime(ss);
if ((dCur.getTime() > (dLst.getTime() + 1800000)) || =
(dCur.getTime() > (dSes.getTime() + 28800000))) {
WT.vt_f_tlv =3D Math.floor((dSes.getTime() - adj) / 1000);
dSes.setTime(dCur.getTime());
WT.vt_f_s =3D "1";
}
if ((dCur.getDay() !=3D dLst.getDay()) || (dCur.getMonth() !=3D =
dLst.getMonth()) || (dCur.getYear() !=3D dLst.getYear())) {
WT.vt_f_d =3D "1";
}
}
WT.co_f =3D escape(WT.co_f);
WT.vt_sid =3D WT.co_f + "." + (dSes.getTime() - adj);
var expiry =3D "; expires=3D" + dExp.toGMTString();
var cur =3D dCur.getTime().toString();
var ses =3D dSes.getTime().toString();
document.cookie =3D name + "=3D" + "id=3D" + WT.co_f + ":lv=3D" + =
cur + ":ss=3D" + ses + expiry + "; path=3D/" + (((this.fpcdom !=3D "")) =
? ("; domain=3D" + this.fpcdom) : (""));
var rc =3D this.dcsIsFpcSet(name, WT.co_f, cur, ses);
if (rc !=3D 0) {
WT.co_f =3D WT.vt_sid =3D WT.vt_f_s =3D WT.vt_f_d =3D =
WT.vt_f_tlh =3D WT.vt_f_tlv =3D "";
WT.vt_f =3D WT.vt_f_a =3D rc;
}
}
WebTrends.prototype.dcsMultiTrack =3D function() {
var args =3D dcsMultiTrack.arguments ? dcsMultiTrack.arguments : =
arguments;
if (args.length % 2 =3D=3D 0) {
for (var i =3D 0; i < args.length; i +=3D 2) {
if (args[i].indexOf('WT.') =3D=3D 0) { =20
this.WT[args[i].substring(3)] =3D args[i + 1];
}
else if (args[i].indexOf('DCS.') =3D=3D 0) {
this.DCS[args[i].substring(4)] =3D args[i + 1];
}
else if (args[i].indexOf('DCSext.') =3D=3D 0) {
this.DCSext[args[i].substring(7)] =3D args[i + 1];
}
}
var dCurrent =3D new Date();
this.DCS.dcsdat =3D dCurrent.getTime();
this.dcsFunc(this.dcsFPC());
this.dcsTag();
}
}
WebTrends.prototype.dcsSplit =3D function(list) {
var items =3D list.toLowerCase().split(",");
var len =3D items.length;
for (var i =3D 0; i < len; i++) {
items[i] =3D items[i].replace(/^\s*/, "").replace(/\s*$/, "");
}
return items;
}
// Code section for Enable custom meta tag capture.
WebTrends.prototype.dcsMetaCap =3D function(evt) {
var elems;
if (document.all) {
elems =3D document.all.tags("meta");
}
else if (document.documentElement) {
elems =3D document.getElementsByTagName("meta");
}
if (typeof (elems) !=3D "undefined") {
var names =3D this.dcsSplit(this.metanames);
var nlen =3D names.length;
var elen =3D elems.length;
for (var i =3D 0; i < elen; i++) {
var name =3D elems.item(i).name.toLowerCase();
var content =3D elems.item(i).content;
if ((name.length > 0) && (content.length > 0)) {
for (var j =3D 0; j < nlen; j++) {
if (name =3D=3D names[j]) {
this.DCSext["meta_" + names[j]] =3D content;
break;
}
}
}
}
}
}
WebTrends.prototype.dcsAdv =3D function() {
this.dcsFunc(this.dcsFPC());
this.dcsFunc(this.dcsMetaCap());
}
WebTrends.prototype.dcsVar =3D function() {
var dCurrent =3D new Date();
var WT =3D this.WT;
var DCS =3D this.DCS;
WT.tz =3D parseInt(dCurrent.getTimezoneOffset() / 60 * -1) || "0";
WT.bh =3D dCurrent.getHours() || "0";
WT.ul =3D navigator.appName =3D=3D "Netscape" ? navigator.language : =
navigator.userLanguage;
if (typeof (screen) =3D=3D "object") {
WT.cd =3D navigator.appName =3D=3D "Netscape" ? =
screen.pixelDepth : screen.colorDepth;
WT.sr =3D screen.width + "x" + screen.height;
}
if (typeof (navigator.javaEnabled()) =3D=3D "boolean") {
WT.jo =3D navigator.javaEnabled() ? "Yes" : "No";
}
if (document.title) {
if (window.RegExp) {
var tire =3D new RegExp("^" + window.location.protocol + =
"//" + window.location.hostname + "\\s-\\s");
WT.ti =3D document.title.replace(tire, "");
}
else {
WT.ti =3D document.title;
}
}
WT.js =3D "Yes";
WT.jv =3D (function() {
var agt =3D navigator.userAgent.toLowerCase();
var major =3D parseInt(navigator.appVersion);
var mac =3D (agt.indexOf("mac") !=3D -1);
var ff =3D (agt.indexOf("firefox") !=3D -1);
var ff0 =3D (agt.indexOf("firefox/0.") !=3D -1);
var ff10 =3D (agt.indexOf("firefox/1.0") !=3D -1);
var ff15 =3D (agt.indexOf("firefox/1.5") !=3D -1);
var ff20 =3D (agt.indexOf("firefox/2.0") !=3D -1);
var ff3up =3D (ff && !ff0 && !ff10 & !ff15 & !ff20);
var nn =3D (!ff && (agt.indexOf("mozilla") !=3D -1) && =
(agt.indexOf("compatible") =3D=3D -1));
var nn4 =3D (nn && (major =3D=3D 4));
var nn6up =3D (nn && (major >=3D 5));
var ie =3D ((agt.indexOf("msie") !=3D -1) && =
(agt.indexOf("opera") =3D=3D -1));
var ie4 =3D (ie && (major =3D=3D 4) && (agt.indexOf("msie 4") =
!=3D -1));
var ie5up =3D (ie && !ie4);
var op =3D (agt.indexOf("opera") !=3D -1);
var op5 =3D (agt.indexOf("opera 5") !=3D -1 || =
agt.indexOf("opera/5") !=3D -1);
var op6 =3D (agt.indexOf("opera 6") !=3D -1 || =
agt.indexOf("opera/6") !=3D -1);
var op7up =3D (op && !op5 && !op6);
var jv =3D "1.1";
if (ff3up) {
jv =3D "1.8";
}
else if (ff20) {
jv =3D "1.7";
}
else if (ff15) {
jv =3D "1.6";
}
else if (ff0 || ff10 || nn6up || op7up) {
jv =3D "1.5";
}
else if ((mac && ie5up) || op6) {
jv =3D "1.4";
}
else if (ie5up || nn4 || op5) {
jv =3D "1.3";
}
else if (ie4) {
jv =3D "1.2";
}
return jv;
})();
WT.ct =3D "unknown";
if (document.body && document.body.addBehavior) {
try {
document.body.addBehavior("#default#clientCaps");
WT.ct =3D document.body.connectionType || "unknown";
document.body.addBehavior("#default#homePage");
WT.hp =3D document.body.isHomePage(location.href) ? "1" : =
"0";
}
catch (e) {
}
}
if (document.all) {
WT.bs =3D document.body ? document.body.offsetWidth + "x" + =
document.body.offsetHeight : "unknown";
}
else {
WT.bs =3D window.innerWidth + "x" + window.innerHeight;
}
WT.fv =3D (function() {
var i, flash;
if (window.ActiveXObject) {
for (i =3D 10; i > 0; i--) {
try {
flash =3D new =
ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i);
return i + ".0";
}
catch (e) {
}
}
}
else if (navigator.plugins && navigator.plugins.length) {
for (i =3D 0; i < navigator.plugins.length; i++) {
if (navigator.plugins[i].name.indexOf('Shockwave Flash') =
!=3D -1) {
return navigator.plugins[i].description.split(" =
")[2];
}
}
}
return "Not enabled";
})();
WT.slv =3D (function() {
var slv =3D "Not enabled";
try {
if (navigator.userAgent.indexOf('MSIE') !=3D -1) {
var sli =3D new ActiveXObject('AgControl.AgControl');
if (sli) {
slv =3D "Unknown";
}
}
else if (navigator.plugins["Silverlight Plug-In"]) {
slv =3D "Unknown";
}
}
catch (e) {
}
if (slv !=3D "Not enabled") {
var i, j, v;
if ((typeof (Silverlight) =3D=3D "object") && (typeof =
(Silverlight.isInstalled) =3D=3D "function")) {
for (j =3D 9; j >=3D 0; j--) {
for (i =3D 3; i > 0; i--) {
v =3D i + "." + j;
if (Silverlight.isInstalled(v)) {
slv =3D v;
break;
}
}
if (slv =3D=3D v) {
break;
}
}
}
}
return slv;
})();
if (this.i18n) {
if (typeof (document.defaultCharset) =3D=3D "string") {
WT.le =3D document.defaultCharset;
}
else if (typeof (document.characterSet) =3D=3D "string") {
WT.le =3D document.characterSet;
}
else {
WT.le =3D "unknown";
}
}
WT.tv =3D "8.5.0";
// WT.sp=3D"@@SPLITVALUE@@";
WT.dl =3D "0";
WT.ssl =3D (window.location.protocol.indexOf('https:') =3D=3D 0) ? =
"1" : "0";
DCS.dcsdat =3D dCurrent.getTime();
DCS.dcssip =3D window.location.hostname;
DCS.dcsuri =3D window.location.pathname;
WT.es =3D DCS.dcssip + DCS.dcsuri;
if (window.location.search) {
DCS.dcsqry =3D window.location.search;
}
if ((window.document.referrer !=3D "") && (window.document.referrer =
!=3D "-")) {
if (!(navigator.appName =3D=3D "Microsoft Internet Explorer" && =
parseInt(navigator.appVersion) < 4)) {
DCS.dcsref =3D window.document.referrer;
}
}
}
WebTrends.prototype.dcsEscape =3D function(S, REL) {
if (REL !=3D "") {
S =3D S.toString();
for (var R in REL) {
if (REL[R] instanceof RegExp) {
S =3D S.replace(REL[R], R);
}
}
return S;
}
else {
return escape(S);
}
}
WebTrends.prototype.dcsA =3D function(N, V) {
if (this.i18n && (this.exre !=3D "") && !this.exre.test(N)) {
if (N =3D=3D "dcsqry") {
var newV =3D "";
var params =3D V.substring(1).split("&");
for (var i =3D 0; i < params.length; i++) {
var pair =3D params[i];
var pos =3D pair.indexOf("=3D");
if (pos !=3D -1) {
var key =3D pair.substring(0, pos);
var val =3D pair.substring(pos + 1);
if (i !=3D 0) {
newV +=3D "&";
}
newV +=3D key + "=3D" + this.dcsEncode(val);
}
}
V =3D V.substring(0, 1) + newV;
}
else {
V =3D this.dcsEncode(V);
}
}
return "&" + N + "=3D" + this.dcsEscape(V, this.re);
}
WebTrends.prototype.dcsEncode =3D function(S) {
return (typeof (encodeURIComponent) =3D=3D "function") ? =
encodeURIComponent(S) : escape(S);
}
WebTrends.prototype.dcsCreateImage =3D function(dcsSrc) {
if (document.images) {
this.images[this.index] =3D new Image();
this.images[this.index].src =3D dcsSrc;
this.index++;
}
else {
document.write('');
}
}
WebTrends.prototype.dcsMeta =3D function() {
var elems;
if (document.all) {
elems =3D document.all.tags("meta");
}
else if (document.documentElement) {
elems =3D document.getElementsByTagName("meta");
}
if (typeof (elems) !=3D "undefined") {
var length =3D elems.length;
for (var i =3D 0; i < length; i++) {
var name =3D elems.item(i).name;
var content =3D elems.item(i).content;
var equiv =3D elems.item(i).httpEquiv;
if (name.length > 0) {
if (name.indexOf("WT.") =3D=3D 0) {
this.WT[name.substring(3)] =3D content;
}
else if (name.indexOf("DCSext.") =3D=3D 0) {
this.DCSext[name.substring(7)] =3D content;
}
else if (name.indexOf("DCS.") =3D=3D 0) {
this.DCS[name.substring(4)] =3D content;
}
}
}
}
}
WebTrends.prototype.dcsTag =3D function() {
if (document.cookie.indexOf("WTLOPTOUT=3D") !=3D -1) {
return;
}
var WT =3D this.WT;
var DCS =3D this.DCS;
var DCSext =3D this.DCSext;
var i18n =3D this.i18n;
var P =3D "http" + (window.location.protocol.indexOf('https:') =
=3D=3D 0 ? 's' : '') + "://" + this.domain + (this.dcsid =3D=3D "" ? '' =
: '/' + this.dcsid) + "/dcs.gif?";
if (i18n) {
WT.dep =3D "";
}
for (var N in DCS) {
if (DCS[N] && (typeof DCS[N] !=3D "function")) {
P +=3D this.dcsA(N, DCS[N]);
}
}
var keys =3D ["co_f", "vt_sid", "vt_f_tlv"];
for (var i =3D 0; i < keys.length; i++) {
var key =3D keys[i];
if (WT[key]) {
P +=3D this.dcsA("WT." + key, WT[key]);
delete WT[key];
}
}
for (N in WT) {
if (WT[N] && (typeof WT[N] !=3D "function")) {
P +=3D this.dcsA("WT." + N, WT[N]);
}
}
for (N in DCSext) {
if (DCSext[N] && (typeof DCSext[N] !=3D "function")) {
if (i18n) {
WT.dep =3D (WT.dep.length =3D=3D 0) ? N : (WT.dep + ";" =
+ N);
}
P +=3D this.dcsA(N, DCSext[N]);
}
}
if (i18n && (WT.dep.length > 0)) {
P +=3D this.dcsA("WT.dep", WT.dep);
}
if (P.length > 2048 && navigator.userAgent.indexOf('MSIE') >=3D 0) {
P =3D P.substring(0, 2040) + "&WT.tu=3D1";
}
this.dcsCreateImage(P);
this.WT.ad =3D "";
}
WebTrends.prototype.dcsFunc =3D function(func) {
if (typeof (func) =3D=3D "function") {
func();
}
}
WebTrends.prototype.dcsDebug =3D function() {
var t =3D this;
var i =3D t.images[0].src;
var q =3D i.indexOf("?");
var r =3D i.substring(0, q).split("/");
var m =3D "Protocol
" + r[0] + "
";
m +=3D "Domain
" + r[2] + "
";
m +=3D "Path
/" + r[3] + "/" + r[4] + "
";
m +=3D "Query Params" + i.substring(q + =
1).replace(/\&/g, " ") + " ";
m +=3D " Cookies
" + =
document.cookie.replace(/\;/g, " ") + " ";
if (t.w && !t.w.closed) {
t.w.close();
}
t.w =3D window.open("", "dcsDebug", =
"width=3D500,height=3D650,scrollbars=3Dyes,resizable=3Dyes");
t.w.document.write(m);
t.w.focus();
}
WebTrends.prototype.dcsCollect =3D function() {
if (this.enabled) {
this.dcsVar();
this.dcsMeta();
this.dcsFunc(this.dcsAdv());
this.dcsTag();
}
}
function dcsMultiTrack() {
if (typeof (_tag) !=3D "undefined") {
return (_tag.dcsMultiTrack());
}
}
Function.prototype.wtbind =3D function(obj) {
var method =3D this;
var temp =3D function() {
return method.apply(obj, arguments);
};
return temp;
}
------=_NextPart_000_004E_01CB5C58.61016570
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://journals.lww.com/_layouts/OAKS.Journals/ListContainerControlBase.js
=EF=BB=BF//TODO: update these function names to be prefixed with =
ListContainerControlBase_
function initializeCheckboxes()=20
{
if (getSelectedItemsField() !=3D null)=20
{
var selectedIds =3D getSelectedItemsField().value.split(";");
for (var i =3D 0; i < selectedIds.length; i++) {
var checkbox =3D $get(selectedIds[i]);
if (checkbox !=3D null) {
checkbox.checked =3D true;
}
}
if (selectedIds.length > 1) {
disabledItemListActionControl(false);
}
else {
disabledItemListActionControl(true);
}
}
=20
}
function checkChanged(obj, id)
{
updateSelectedItems(id, obj.checked); =20
}
function updateSelectedItems(id, addToList)
{
var selectedItemsField =3D getSelectedItemsField();
var selectedItemsList =3D selectedItemsField.value;
=20
if(addToList)
{
selectedItemsList +=3D id + ";";
}
else
{
selectedItemsList =3D selectedItemsList.replace(id + ";", "");
}
=20
selectedItemsField.value =3D selectedItemsList;
if(selectedItemsField.value =3D=3D '')
{
disabledItemListActionControl(true);=20
//if user clicks select all and manually deselect all check box =
then need to change its state.
setSelectAll(true);
}
else
{
disabledItemListActionControl(false);=20
//if user clicks deselect all and manually select all check box =
then need to change its state.
setSelectAll(false);
}=20
}
function disabledItemListActionControl(isDisabled)
{
var container =3D getListActionsContainer();
if(container !=3D null)
{
setControlsStatus(container.getElementsByTagName('input'), =
isDisabled, 'button');
setControlsStatus(container.getElementsByTagName('select'), =
isDisabled, 'dropDown');
}
}
function setControlsStatus(controls, isDisabled, type)
{
if(null !=3D controls)
{
for (var i=3D0; i < controls.length; i++)
{ =20
controls[i].disabled =3D isDisabled;
if(type =3D=3D 'dropDown' && controls[i].selectedIndex =
=3D=3D 0)
{
var buttons =3D =
getListActionsContainer().getElementsByTagName('input');
if(null !=3D buttons)
{
buttons[0].disabled =3D true;=20
}
}
}
}
}
function addToMyCollectionsLinkClicked(linkId)
{ =20
getSelectedItemsField().value =3D ""; =20
SetCheckBoxState(false);
=20
getSelectedItemsField().value =3D linkId;
}
function shareChannelLinkClicked(linkId) {
getSelectedItemsField().value =3D "";
getSelectedItemsField().value =3D linkId;
}
function SelectCheckBox()=20
{
var hypSelectAlltop =3D document.getElementById('hypSelectAlltop');
var hypSelectAllBottom =3D =
document.getElementById('hypSelectAllBottom');
var setCheckBoxes =3D false;
if(hypSelectAlltop !=3D null)
{
if(hypSelectAlltop.innerHTML =3D=3D 'Select All')
{ =20
setCheckBoxes =3D true; =20
hypSelectAlltop.innerHTML =3D 'Deselect All'; =20
}
else
{ =20
setCheckBoxes =3D false; =20
hypSelectAlltop.innerHTML =3D 'Select All';=20
getSelectedItemsField().value =3D ""; =20
}=20
}
if(hypSelectAllBottom !=3D null)
{
if(hypSelectAllBottom.innerHTML =3D=3D 'Select All')
{
setCheckBoxes =3D true;
hypSelectAllBottom.innerHTML =3D 'Deselect All'; =20
}
else
{
setCheckBoxes =3D false;
hypSelectAllBottom.innerHTML =3D 'Select All';
getSelectedItemsField().value =3D ""; =20
}
}
SetCheckBoxState(setCheckBoxes);
}=20
function SetCheckBoxState(select)
{
var list =3D getCheckBoxListContainer();
if(list !=3D null)
{
var checkboxlist=3D list.getElementsByTagName('input');
var i;
for (i=3D0; i < checkboxlist.length; i++)=20
{
if (checkboxlist[i].type =3D=3D 'checkbox' && =
checkboxlist[i].checked !=3D select)=20
{
checkboxlist[i].checked =3D select;
checkboxlist[i].onclick();=20
}
}
}
}
// return true if all check box are selected.
function AllCheckBoxState()
{
var returnValue =3D true;=20
=20
var list =3D getCheckBoxListContainer();
if(list !=3D null)
{
var checkboxlist=3D list.getElementsByTagName('input');
var i;
for (i=3D0; i < checkboxlist.length; i++)=20
{
if (checkboxlist[i].type =3D=3D 'checkbox' && =
!checkboxlist[i].checked)=20
{
returnValue =3D false;
break;
}
}
}
return returnValue;=20
}
function setSelectAll(state)
{
var hypSelectAlltop =3D document.getElementById('hypSelectAlltop');
var hypSelectAllBottom =3D =
document.getElementById('hypSelectAllBottom');
=20
if(state =3D=3D false && AllCheckBoxState())
{
if(hypSelectAllBottom !=3D null)
{
hypSelectAllBottom.innerHTML =3D 'Deselect All';
}
if(hypSelectAlltop !=3D null)
{
hypSelectAlltop.innerHTML =3D 'Deselect All'; =20
}
}
else
{
if(hypSelectAllBottom !=3D null)
{
hypSelectAllBottom.innerHTML =3D 'Select All';
}
if(hypSelectAlltop !=3D null)
{
hypSelectAlltop.innerHTML =3D 'Select All';=20
}=20
} =20
}
------=_NextPart_000_004E_01CB5C58.61016570
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://journals.lww.com/ScriptResource.axd?d=QhXUBU6L8F1OB5r-NJtyKyr4zsTPxY3aM4qMX18v6VEu473of36uYnXe82Dh0yag3RhzjASH11yso82_7_oxaQ2&t=2893c89c
=EF=BB=BFvar Page_ValidationVer =3D "125";
var Page_IsValid =3D true;
var Page_BlockSubmit =3D false;
var Page_InvalidControlToBeFocused =3D null;
function ValidatorUpdateDisplay(val) {
if (typeof(val.display) =3D=3D "string") {
if (val.display =3D=3D "None") {
return;
}
if (val.display =3D=3D "Dynamic") {
val.style.display =3D val.isvalid ? "none" : "inline";
return;
}
}
if ((navigator.userAgent.indexOf("Mac") > -1) &&
(navigator.userAgent.indexOf("MSIE") > -1)) {
val.style.display =3D "inline";
}
val.style.visibility =3D val.isvalid ? "hidden" : "visible";
}
function ValidatorUpdateIsValid() {
Page_IsValid =3D AllValidatorsValid(Page_Validators);
}
function AllValidatorsValid(validators) {
if ((typeof(validators) !=3D "undefined") && (validators !=3D null)) =
{
var i;
for (i =3D 0; i < validators.length; i++) {
if (!validators[i].isvalid) {
return false;
}
}
}
return true;
}
function ValidatorHookupControlID(controlID, val) {
if (typeof(controlID) !=3D "string") {
return;
}
var ctrl =3D document.getElementById(controlID);
if ((typeof(ctrl) !=3D "undefined") && (ctrl !=3D null)) {
ValidatorHookupControl(ctrl, val);
}
else {
val.isvalid =3D true;
val.enabled =3D false;
}
}
function ValidatorHookupControl(control, val) {
if (typeof(control.tagName) !=3D "string") {
return; =20
}
if (control.tagName !=3D "INPUT" && control.tagName !=3D "TEXTAREA" =
&& control.tagName !=3D "SELECT") {
var i;
for (i =3D 0; i < control.childNodes.length; i++) {
ValidatorHookupControl(control.childNodes[i], val);
}
return;
}
else {
if (typeof(control.Validators) =3D=3D "undefined") {
control.Validators =3D new Array;
var eventType;
if (control.type =3D=3D "radio") {
eventType =3D "onclick";
} else {
eventType =3D "onchange";
if (typeof(val.focusOnError) =3D=3D "string" && =
val.focusOnError =3D=3D "t") {
ValidatorHookupEvent(control, "onblur", =
"ValidatedControlOnBlur(event); ");
}
}
ValidatorHookupEvent(control, eventType, =
"ValidatorOnChange(event); ");
if (control.type =3D=3D "text" ||
control.type =3D=3D "password" ||
control.type =3D=3D "file") {
ValidatorHookupEvent(control, "onkeypress",=20
"if (!ValidatedTextBoxOnKeyPress(event)) { =
event.cancelBubble =3D true; if (event.stopPropagation) =
event.stopPropagation(); return false; } ");
}
}
control.Validators[control.Validators.length] =3D val;
}
}
function ValidatorHookupEvent(control, eventType, functionPrefix) {
var ev;
eval("ev =3D control." + eventType + ";");
if (typeof(ev) =3D=3D "function") {
ev =3D ev.toString();
ev =3D ev.substring(ev.indexOf("{") + 1, ev.lastIndexOf("}"));
}
else {
ev =3D "";
}
var func;
if (navigator.appName.toLowerCase().indexOf('explorer') > -1) {
func =3D new Function(functionPrefix + " " + ev);
}
else {
func =3D new Function("event", functionPrefix + " " + ev);
}
eval("control." + eventType + " =3D func;");
}
function ValidatorGetValue(id) {
var control;
control =3D document.getElementById(id);
if (typeof(control.value) =3D=3D "string") {
return control.value;
}
return ValidatorGetValueRecursive(control);
}
function ValidatorGetValueRecursive(control)
{
if (typeof(control.value) =3D=3D "string" && (control.type !=3D =
"radio" || control.checked =3D=3D true)) {
return control.value;
}
var i, val;
for (i =3D 0; i twoDigitCutoffYear) ? (cutoffYearCentury - 100 + =
year) : (cutoffYearCentury + year));
}
var num, cleanInput, m, exp;
if (dataType =3D=3D "Integer") {
exp =3D /^\s*[-\+]?\d+\s*$/;
if (op.match(exp) =3D=3D null)
return null;
num =3D parseInt(op, 10);
return (isNaN(num) ? null : num);
}
else if(dataType =3D=3D "Double") {
exp =3D new RegExp("^\\s*([-\\+])?(\\d*)\\" + val.decimalchar + =
"?(\\d*)\\s*$");
m =3D op.match(exp);
if (m =3D=3D null)
return null;
if (m[2].length =3D=3D 0 && m[3].length =3D=3D 0)
return null;
cleanInput =3D (m[1] !=3D null ? m[1] : "") + (m[2].length>0 ? =
m[2] : "0") + (m[3].length>0 ? "." + m[3] : "");
num =3D parseFloat(cleanInput);
return (isNaN(num) ? null : num);
}
else if (dataType =3D=3D "Currency") {
var hasDigits =3D (val.digits > 0);
var beginGroupSize, subsequentGroupSize;
var groupSizeNum =3D parseInt(val.groupsize, 10);
if (!isNaN(groupSizeNum) && groupSizeNum > 0) {
beginGroupSize =3D "{1," + groupSizeNum + "}";
subsequentGroupSize =3D "{" + groupSizeNum + "}";
}
else {
beginGroupSize =3D subsequentGroupSize =3D "+";
}
exp =3D new RegExp("^\\s*([-\\+])?((\\d" + beginGroupSize + =
"(\\" + val.groupchar + "\\d" + subsequentGroupSize + ")+)|\\d*)"
+ (hasDigits ? "\\" + val.decimalchar + =
"?(\\d{0," + val.digits + "})" : "")
+ "\\s*$");
m =3D op.match(exp);
if (m =3D=3D null)
return null;
if (m[2].length =3D=3D 0 && hasDigits && m[5].length =3D=3D 0)
return null;
cleanInput =3D (m[1] !=3D null ? m[1] : "") + m[2].replace(new =
RegExp("(\\" + val.groupchar + ")", "g"), "") + ((hasDigits && =
m[5].length > 0) ? "." + m[5] : "");
num =3D parseFloat(cleanInput);
return (isNaN(num) ? null : num);
}
else if (dataType =3D=3D "Date") {
var yearFirstExp =3D new =
RegExp("^\\s*((\\d{4})|(\\d{2}))([-/]|\\. =
?)(\\d{1,2})\\4(\\d{1,2})\\.?\\s*$");
m =3D op.match(yearFirstExp);
var day, month, year;
if (m !=3D null && (m[2].length =3D=3D 4 || val.dateorder =3D=3D =
"ymd")) {
day =3D m[6];
month =3D m[5];
year =3D (m[2].length =3D=3D 4) ? m[2] : =
GetFullYear(parseInt(m[3], 10))
}
else {
if (val.dateorder =3D=3D "ymd"){
return null;
}
var yearLastExp =3D new RegExp("^\\s*(\\d{1,2})([-/]|\\. =
?)(\\d{1,2})(?:\\s|\\2)((\\d{4})|(\\d{2}))(?:\\s\u0433\\.)?\\s*$");
m =3D op.match(yearLastExp);
if (m =3D=3D null) {
return null;
}
if (val.dateorder =3D=3D "mdy") {
day =3D m[3];
month =3D m[1];
}
else {
day =3D m[1];
month =3D m[3];
}
year =3D (m[5].length =3D=3D 4) ? m[5] : =
GetFullYear(parseInt(m[6], 10))
}
month -=3D 1;
var date =3D new Date(year, month, day);
if (year < 100) {
date.setFullYear(year);
}
return (typeof(date) =3D=3D "object" && year =3D=3D =
date.getFullYear() && month =3D=3D date.getMonth() && day =3D=3D =
date.getDate()) ? date.valueOf() : null;
}
else {
return op.toString();
}
}
function ValidatorCompare(operand1, operand2, operator, val) {
var dataType =3D val.type;
var op1, op2;
if ((op1 =3D ValidatorConvert(operand1, dataType, val)) =3D=3D null)
return false;
if (operator =3D=3D "DataTypeCheck")
return true;
if ((op2 =3D ValidatorConvert(operand2, dataType, val)) =3D=3D null)
return true;
switch (operator) {
case "NotEqual":
return (op1 !=3D op2);
case "GreaterThan":
return (op1 > op2);
case "GreaterThanEqual":
return (op1 >=3D op2);
case "LessThan":
return (op1 < op2);
case "LessThanEqual":
return (op1 <=3D op2);
default:
return (op1 =3D=3D op2);
}
}
function CompareValidatorEvaluateIsValid(val) {
var value =3D ValidatorGetValue(val.controltovalidate);
if (ValidatorTrim(value).length =3D=3D 0)
return true;
var compareTo =3D "";
if ((typeof(val.controltocompare) !=3D "string") ||
(typeof(document.getElementById(val.controltocompare)) =3D=3D =
"undefined") ||
(null =3D=3D document.getElementById(val.controltocompare))) {
if (typeof(val.valuetocompare) =3D=3D "string") {
compareTo =3D val.valuetocompare;
}
}
else {
compareTo =3D ValidatorGetValue(val.controltocompare);
}
var operator =3D "Equal";
if (typeof(val.operator) =3D=3D "string") {
operator =3D val.operator;
}
return ValidatorCompare(value, compareTo, operator, val);
}
function CustomValidatorEvaluateIsValid(val) {
var value =3D "";
if (typeof(val.controltovalidate) =3D=3D "string") {
value =3D ValidatorGetValue(val.controltovalidate);
if ((ValidatorTrim(value).length =3D=3D 0) &&
((typeof(val.validateemptytext) !=3D "string") || =
(val.validateemptytext !=3D "true"))) {
return true;
}
}
var args =3D { Value:value, IsValid:true };
if (typeof(val.clientvalidationfunction) =3D=3D "string") {
eval(val.clientvalidationfunction + "(val, args) ;");
}
return args.IsValid;
}
function RegularExpressionValidatorEvaluateIsValid(val) {
var value =3D ValidatorGetValue(val.controltovalidate);
if (ValidatorTrim(value).length =3D=3D 0)
return true;
var rx =3D new RegExp(val.validationexpression);
var matches =3D rx.exec(value);
return (matches !=3D null && value =3D=3D matches[0]);
}
function ValidatorTrim(s) {
var m =3D s.match(/^\s*(\S+(\s+\S+)*)\s*$/);
return (m =3D=3D null) ? "" : m[1];
}
function RequiredFieldValidatorEvaluateIsValid(val) {
return (ValidatorTrim(ValidatorGetValue(val.controltovalidate)) !=3D =
ValidatorTrim(val.initialvalue))
}
function RangeValidatorEvaluateIsValid(val) {
var value =3D ValidatorGetValue(val.controltovalidate);
if (ValidatorTrim(value).length =3D=3D 0)
return true;
return (ValidatorCompare(value, val.minimumvalue, =
"GreaterThanEqual", val) &&
ValidatorCompare(value, val.maximumvalue, "LessThanEqual", =
val));
}
function ValidationSummaryOnSubmit(validationGroup) {
if (typeof(Page_ValidationSummaries) =3D=3D "undefined")
return;
var summary, sums, s;
for (sums =3D 0; sums < Page_ValidationSummaries.length; sums++) {
summary =3D Page_ValidationSummaries[sums];
summary.style.display =3D "none";
if (!Page_IsValid && IsValidationGroupMatch(summary, =
validationGroup)) {
var i;
if (summary.showsummary !=3D "False") {
summary.style.display =3D "";
if (typeof(summary.displaymode) !=3D "string") {
summary.displaymode =3D "BulletList";
}
switch (summary.displaymode) {
case "List":
headerSep =3D " ";
first =3D "";
pre =3D "";
post =3D " ";
end =3D "";
break;
case "BulletList":
default:
headerSep =3D "";
first =3D "";
pre =3D "- ";
post =3D "
";
end =3D " ";
break;
case "SingleParagraph":
headerSep =3D " ";
first =3D "";
pre =3D "";
post =3D " ";
end =3D " ";
break;
}
s =3D "";
if (typeof(summary.headertext) =3D=3D "string") {
s +=3D summary.headertext + headerSep;
}
s +=3D first;
for (i=3D0; i 0){
this.init(id);
}
}
ig_WebControl.prototype.init=3Dfunction(id)
{
this._id=3Did;
var o=3Dig_all[id];
if(o && o._deleteMe)
o._deleteMe();
ig_all[id]=3Dthis;
this._posted=3Dthis._postRequest=3D0;
ig_shared._isPosted=3Dfalse;
// clientViewState
this.postField =3D ig_csom.getElementById(this.getClientID() + =
"_Data");=09
this.clientState =3D ig_ClientState.createRootNode();=09
this.rootNode =3D ig_ClientState.addNode(this.clientState, =
"XMLRootNode");
}
ig_WebControl.prototype.constructor=3Dig_WebControl;
ig_WebControl.prototype.getElement=3Dfunction(){return this._element;}
ig_WebControl.prototype.getID=3Dfunction(){return this._id;}
ig_WebControl.prototype.getUniqueID=3Dfunction(){return this._uniqueID;}
ig_WebControl.prototype.getClientID=3Dfunction(){return this._clientID;}
ig_WebControl.prototype.updateControlState =3D function(propName, =
propValue) {
if(this.controlState =3D=3D null)
this.controlState =3D ig_ClientState.addNode(this.rootNode, =
"ControlState");
=09
ig_ClientState.setPropertyValue(this.controlState, propName, =
propValue);
if(this.postField !=3D null)
this.postField.value =3D ig_ClientState.getText(this.clientState);=09
}
ig_WebControl.prototype.addStateItem =3D function(name, value) {
if(this.stateItems =3D=3D null)
this.stateItems =3D ig_ClientState.addNode(this.rootNode, =
"StateItems");
var stateItem =3D ig_ClientState.addNode(this.stateItems, "StateItem");
this.updateStateItem(stateItem, name, value);
return stateItem;
}
ig_WebControl.prototype.updateStateItem =3D function(stateItem, =
propName, propValue) {
ig_ClientState.setPropertyValue(stateItem, propName, propValue);
if(this.postField !=3D null)
this.postField.value =3D ig_ClientState.getText(this.clientState);=09
}
ig_WebControl.prototype.fireServerEvent =3D function(eventName, data)
{
if(ig_shared._isPosted)
return;
if(this._postRequest =3D=3D -1)
{
this._postRequest =3D 0;
return;
}
this._postRequest =3D 0;
try
{
ig_shared._isPosted =3D true;
__doPostBack(this._uniqueID, eventName + ":" + data);
}
catch(e){}
}
ig_WebControl.prototype.removeEventListener =3D function(name, handler)
{
var i, evts =3D this._clientEvents ? this._clientEvents[name] : null;
if(evts !=3D null) for(i =3D 0; i < evts.length; i++)
if(evts[i] !=3D null && evts[i]._handler =3D=3D handler)
{
delete evts[i];
evts[i] =3D null;
return;
}
}
ig_WebControl.prototype.addEventListener =3D function(name, handler, =
obj, post)
{
if(typeof handler !=3D "function")
return;
if(!this._clientEvents) this._clientEvents =3D new Object();
var i, evts =3D this._clientEvents[name];
if(evts =3D=3D null)
evts =3D this._clientEvents[name] =3D new Array();
var i0 =3D evts.length;
for(i =3D 0; i < evts.length; i++)
{
if(evts[i] =3D=3D null)
i0 =3D i;
else if(evts[i]._handler =3D=3D handler)
return;
}
var evt =3D new ig_EventObject();
evt._object =3D obj;
evts[i0] =3D {_webcontrol:this, _eventName:name, _handler:handler, =
_autoPostBack:(post=3D=3Dtrue), _event:evt};
}
ig_WebControl.prototype.fireEvent =3D function(name, evnt)
{
if(!name || this._isInitializing || !this._clientEvents)
return false;
this._postRequest =3D this._postAsync =3D 0;
var evt, evts =3D this._clientEvents[name];
var cancel =3D false, postAsync =3D 0, post =3D 0, i =3D (evts =3D=3D =
null) ? 0 : evts.length;
if(i =3D=3D 0)
return false;
if(evnt =3D=3D "check")
return true;
var args =3D this.fireEvent.arguments;
while(i-- > 0)
{
if(evts[i] =3D=3D null)
continue;
evt =3D evts[i]._event;
evt.reset();
evt.event=3Devnt;
evt.needPostBack=3Devts[i]._autoPostBack;
try
{
evts[i]._handler(this, evt, args[2], args[3], args[4], args[5], =
args[6], args[7]);
}catch(ex){continue;}
if(evt.cancelPostBack)
post =3D -1;
else if(post =3D=3D 0)
{
if(evt.needPostBack)
post =3D 1;
else if(evt.needAsyncPostBack)
postAsync =3D 1;
}
if(evt.cancel)
cancel =3D true;
evt.event =3D null;
}
if(!cancel || post < 0)
this._postRequest =3D post;
if(!cancel && post =3D=3D 0)
this._postAsync =3D postAsync;
return cancel;
}
ig_WebControl.prototype._decodeProps =3D function(props)
{
for(var i =3D 0; i < props.length; i++)
{
if(props[i] !=3D null)
{
if(props[i].push !=3D null)
this._decodeProps(props[i]);
if(typeof props[i]=3D=3D"string")
{
=09
props[i] =3D decodeURI(props[i]);
=09
props[i] =3D unescape(props[i].replace(/\+/g," "));
props[i] =3D unescape(props[i]);
}=20
}
}
}
ig_WebControl.prototype._initControlProps =3D function(props)
{=09
this._decodeProps(props);
this._props =3D props[0];
this._uniqueID =3D this._props[0];
this._clientID =3D this._props[1];
var i =3D props[1] ? props[1].length : 0;
while(i-- > 0) try
{
this.addEventListener(props[1][i][0], eval(props[1][i][1]), null, =
props[1][i][2]);
}catch(e)
{window.status =3D "Can't find " + props[1][i][1];}
this._objects =3D props[2];
this._collections =3D props[3];
}=09
//ig_initShared implements browser independent functionality
function ig_initShared()
{
// Public Properties
this.ScriptVersion=3D"5.3.20053.14";
=
try{this.AgentName=3Dnavigator.userAgent.toLowerCase();}catch(e){this.Age=
ntName=3D"";}
this.MajorVersionNumber =3DparseInt(navigator.appVersion);
//this.AgentName=3Dnavigator.userAgent.toLowerCase();
//this.MajorVersionNumber=3DparseInt(navigator.appVersion);
this.IsDom=3Ddocument.getElementById?true:false;
this.IsNetscape62=3Dthis.AgentName.indexOf("netscape6")>=3D0;
var i=3Dthis.AgentName.indexOf("netscape/7.");
this.Netscape7=3D(i>0)?this.AgentName.charCodeAt(i+11)-48:-1;
this.IsNetscape=3Ddocument.layers!=3Dnull;
this.IsNetscape6=3D(this.IsDom&&navigator.appName=3D=3D"Netscape");
this.IsSafari=3Dthis.AgentName.indexOf("safari")>=3D0;
this.IsFireFox=3Dthis.AgentName.indexOf("firefox")>=3D0;
this.IsFireFox10=3Dthis.AgentName.indexOf("firefox/1.0")>=3D0;
this.IsFireFox20=3Dthis.AgentName.indexOf("firefox/2.0")>=3D0;
=
this.IsFireFox15=3Dthis.IsFireFox20||this.AgentName.indexOf("firefox/1.5"=
)>=3D0;
this.IsOpera=3Dthis.AgentName.indexOf("opera")>=3D0;
this.IsMac=3Dthis.AgentName.indexOf("mac")>=3D0;
this.IsIE=3Ddocument.all!=3Dnull&&!this.IsOpera&&!this.IsSafari;
this.IsIE4=3Dthis.IsIE&&!this.IsDom;
this.IsIE4Plus=3Dthis.IsIE&&this.MajorVersionNumber>=3D4;
this.IsIE5=3Dthis.IsIE&&this.IsDom;
this.IsIE50=3Dthis.IsIE5&&this.AgentName.indexOf("msie 5.0")>0;
this.IsWin=3Dthis.AgentName.indexOf("win")>=3D0;
this.IsIEWin=3Dthis.IsIE&&this.IsWin;
this.IsIE55=3Dthis.IsIEWin&&this.AgentName.indexOf("msie 5.5")>0;
this.IsIE6=3Dthis.IsIEWin&&this.AgentName.indexOf("msie 6.0")>0;
this.IsIE7=3Dthis.IsIEWin&&this.AgentName.indexOf("msie 7.0")>0;
this.IsIE55Plus =3D this.IsIE55 || this.IsIE6 || this.IsIE7;
this.IsStandardsMode=3D(document.compatMode=3D=3D"CSS1Compat");
this.attrID =3D "ig_mark";
this._isPosted =3D false;
this.isFormPosted =3D function(){return this._isPosted;}
// Obtains an element object based on its Id
this.getElementById =3D function (tagName)
{
if(this.IsIE)
return document.all[tagName];
else
return document.getElementById(tagName);
}
this.isArray =3D function(a) {
return a!=3Dnull && a.length!=3Dnull;
}
=09
this.isEmpty =3D function(o) {
return !(this.isArray(o) && o.length>0);
}
=09
this.notEmpty =3D function(o) {
return (this.isArray(o) && o.length>0);
}
//D.M. 8/15/2007
//Return an elements current styles.
this.getRuntimeStyle =3D function(elem)
{
if(!elem)
return null;
var s =3D elem.currentStyle;
if(s)
return s;
var win =3D document.defaultView;
if(!win)
win =3D window;
if(win.getComputedStyle)
s =3D win.getComputedStyle(elem, '');
return s ? s : elem.style;
}
// Adds an event listener to an html element.
this.addEventListener=3Dfunction(elem,evtName,fn,flag)
{=20
=09
=
try{if(elem.addEventListener){elem.addEventListener(evtName,fn,flag=3D=3D=
true); return;}}catch(ex){}
try{if(elem.attachEvent){elem.attachEvent("on"+evtName,fn); =
return;}}catch(ex){}
eval("var old=3Delem.on"+evtName);
var sF=3Dfn.toString();
var i=3DsF.indexOf("(")+1;
try
{
if((typeof old =3D=3D"function") && i>10)
{
old=3Dold.toString();
=09
var args=3Dold.substring(old.indexOf("(")+1,old.indexOf(")"));
args=3Dig_shared.replace(args," ","");
if(args.length>0) args=3Dargs.split(",");
=09
old=3Dold.substring(old.indexOf("{")+1,old.lastIndexOf("}"));
=09
sF=3DsF.substring(9,i);
if(old.indexOf(sF)>=3D0)return;
var s=3D"fn=3Dnew Function(";
for(i=3D0;i0)sF+=3D",";
s+=3D"\""+args[i]+"\",";
sF+=3Dargs[i];
}
sF+=3D");"+old;
eval(s+"sF)");
}
eval("elem.on"+evtName+"=3Dfn");
}catch(ex){}
}
=09
this.removeEventListener =3D function(elem, evt, fn)
{=20
try
{
if(elem && elem.removeEventListener)
{
elem.removeEventListener(evt, fn);
return;
}
}catch(ex){}
try
{
if(elem && elem.detachEvent)
elem.detachEvent('on' + evt, fn);
}catch(ex){}
}
// Obtains the proper source element in relation to an event
this.getSourceElement =3D function (evnt, o)
{
if(evnt.target) // This does not appear to be working for Netscape
return evnt.target;
else=20
if(evnt.srcElement)
return evnt.srcElement;
else
return o;
}
=09
this.getText =3D function (e){
if(e=3D=3Dnull)return "";
var i,v=3Dnull,ii=3D(e.childNodes=3D=3Dnull)?0:e.childNodes.length;
for(i=3D-1;i0){
searchString+=3DpartialId[i]+".*";
i++;
}
searchString+=3DpartialId[i]+"$";
var searchExp=3Dnew RegExp(searchString);
var curElement;
if(startElement !=3D null)
curElement=3DstartElement.firstChild;
else
curElement =3D window.document.firstChild;
while(curElement!=3Dnull){
if(curElement.id!=3Dnull&&(curElement.id.search(searchExp))!=3D-1){
ig_dispose(searchExp);
return curElement;
}
item=3Dthis.findControl(curElement,idList);
if(item!=3Dnull){
ig_dispose(searchExp);
return item;
}
curElement=3DcurElement.nextSibling; =09
}
ig_dispose(searchExp);
if(closestMatch)
return findClosestMatch(startElement,partialId);
else return null;
}
this.createTransparentPanel=3Dfunction (){
if(!this.IsIE)return null;
var transLayer=3Ddocument.createElement("IFRAME");
transLayer.style.zIndex=3D1000;
transLayer.frameBorder=3D"no";
transLayer.scrolling=3D"no";
=
transLayer.style.filter=3D"progid:DXImageTransform.Microsoft.Alpha(Opacit=
y=3D0);";
transLayer.style.visibility=3D'hidden';
transLayer.style.display=3D'none';
transLayer.style.position=3D"absolute";
transLayer.src=3D'javascript:new String("")';
var e =3D document.body.firstChild;
document.body.insertBefore(transLayer, e);
return new ig_TransparentPanel(transLayer);
}
=09
=09
=09
=09
=09
this.isInside=3Dfunction(evt,container,elem,shift)
{
var to=3Devt.toElement;
if(to=3D=3Dnull)to=3Devt.relatedTarget;
if(to!=3Dnull && shift!=3D-1)
{
while(to!=3Dnull)
{
if(to=3D=3Dcontainer)return true;
to=3Dto.parentNode;
}
return false;
}
if(elem=3D=3Dnull)elem=3Dcontainer; if(shift=3D=3Dnull)shift=3D0;
var z,x=3D-evt.clientX,y=3D-evt.clientY;
var w=3Delem.offsetWidth,h=3Delem.offsetHeight;
while(elem!=3Dnull)
{
if((z=3Delem.offsetLeft)!=3Dnull){x+=3Dz; y+=3Delem.offsetTop;}
elem=3Delem.offsetParent;
}
return x<-1 && y<-1 && 1 0)
x -=3D z;
z =3D e.scrollTop;
if(z =3D=3D null || z =3D=3D 0)
z =3D pe.scrollTop;
if(z !=3D null && z > 0)
y -=3D z;
pe =3D e.parentNode;
e =3D e.offsetParent;
if(pe.tagName =3D=3D "TR")
pe =3D e;
if(e =3D=3D body && pe.tagName =3D=3D "DIV")
{
e =3D pe;
ok++;
}
}
if(elem && document.elementFromPoint)
{
var xOld =3D x, yOld =3D y;
ok =3D true;
var x0 =3D body.scrollLeft, y0 =3D body.scrollTop;
while(++i < 16)
{
z =3D (i > 2) ? ((i & 2) - 1) * (i & 14) / 2 * 5 : 2;
e =3D document.elementFromPoint(x + z - x0, y + z - y0);
if(!e || e =3D=3D ed || e =3D=3D elem)
break;
}
if(i > 15 || !e)
ok =3D false;
x +=3D z;
y +=3D z;
i =3D z =3D 0;
while(ok && ++i < 22)
{
if(z =3D=3D 0) x--;
else y--;
e =3D document.elementFromPoint(x - x0, y - y0);
if(!e || i > 20)
ok =3D false;
if(e !=3D ed && e !=3D elem)
if(z > 0)
break;
else
{
i =3D z =3D 1;
x++;
}
}
if(ok)
{
x--;
y--;
}
else
{
x =3D xOld;
y =3D yOld;
}
}
if(!pan)
return {x:x, y:y};
ok =3D pan.style;
ok.position =3D 'absolute';
ok.visibility =3D 'visible';
ok.display =3D '';
ok.zIndex =3D 11000;
ed =3D ed ? 0 : 20;
var panH =3D pan.offsetHeight, panW =3D pan.offsetWidth;
var iH =3D body.clientHeight, iW =3D body.clientWidth, iL =3D =
body.scrollLeft, iT =3D body.scrollTop;
if(!iH || iH < 50)
{
iH =3D body.offsetHeight - ed;
iW =3D body.offsetWidth - ed;
}
z =3D body;
while(!htm && (z =3D z.parentNode) !=3D null)
if(z.nodeName =3D=3D 'HTML')
htm =3D z;
if(htm)
{
z =3D htm.clientHeight;
i =3D htm.offsetHeight;
if(z && z > 20 && !ig_shared.IsOpera)
{
iH =3D z;
iW =3D htm.clientWidth;
iL =3D htm.scrollLeft;
iT =3D htm.scrollTop;
}
}
if(elemH < 0)
{
x =3D ++iL;
y =3D ++iT;
elemH =3D --iH;
elemW =3D --iW;
}
if(iH < 20)
iH =3D 20;
if(iW < 90)
iW =3D 90;
if(!pos)
pos =3D 0;
if(typeof pos =3D=3D 'object')
{
if((z =3D pos.x) !=3D null)
x +=3D z;
if((z =3D pos.y) !=3D null)
y +=3D z;
pos =3D 0;
}
=09
if((pos & 4) !=3D 0)
x +=3D elemW;
=09
else if((pos & 3) =3D=3D 3)
x -=3D panW;
=09
else if((pos & 1) !=3D 0)
x +=3D (elemW >> 1) - (panW >> 1);
=09
else if((pos & 2) !=3D 0)
x +=3D elemW - panW;
=09
if((pos & 8) !=3D 0)
y +=3D (elemH >> 1) - (panH >> 1);
=09
else if((pos & 16) !=3D 0)
y +=3D elemH - panH;
=09
else if((pos & 32) !=3D 0)
y -=3D panH;
=09
else if((pos & 64) !=3D 0)
y +=3D elemH;
if(y + panH > iH + iT)
{
=09
if((pos & 64) !=3D 0 && y - iT - 3 > panH + elemH)
y -=3D panH + elemH;
else
y =3D iH + iT - panH;
}
if(y < iT)
y =3D iT;
if(x + panW > iW + iL)
{
=09
if((pos & 4) !=3D 0 && x - iL - 3 > panW + elemW)
x -=3D panW + elemW;
else
x =3D iW + iL - panW;
}
if(x < iL)
x =3D iL;
if(ig_csom.IsMac && (ig_csom.IsIE || ig_csom.IsSafari))
{
x +=3D ig_csom.IsIE ? 5 : -5;
y +=3D ig_csom.IsIE ? 11 : -7;
}
ok.left =3D x + 'px';
ok.top =3D y + 'px';
if(ie && (z =3D ie.Element) !=3D null)
ie =3D z;
if(!ie || (z =3D ie.style) =3D=3D null)
return;
z.position =3D 'absolute';
z.left =3D --x + 'px';
z.top =3D --y + 'px';
z.width =3D (panW + 2) + 'px';
z.height =3D (panH + 2) + 'px';
z.visibility =3D 'visible';
z.display =3D '';
z.zIndex =3D 10999;
}
=09
this.isName =3D function(n)
{
return n && n.indexOf('=3D') < 0 && n.indexOf(':') < 0 && =
n.indexOf('(') < 0 && n.indexOf(';') < 0 && n.indexOf(',') < 0 && =
n.indexOf('[') < 0 && n.indexOf('{') < 0 && n.indexOf('\"') < 0 && =
n.indexOf("'") < 0;
}
=09
this.replace =3D function(txt, s0, s1)
{
while(txt.indexOf(s0) >=3D 0)
txt =3D txt.replace(s0, s1);
return txt;
}
=09
=09
this.addTabListener =3D function(fn)
{
var i, i1, tabs =3D this._tabListeners;
if(!tabs)
tabs =3D this._tabListeners =3D new Array();
i =3D i1 =3D tabs.length;
while(i-- > 0)
{
if(!tabs[i]) i1 =3D i;
if(tabs[i] =3D=3D fn) return;
}
tabs[i1] =3D fn;
}
=09
this.removeTabListener =3D function(fn)
{
var t, ok =3D false, tabs =3D this._tabListeners;
var i =3D tabs ? tabs.length : 0;
while(i-- > 0)if(tabs[i])
{
if(tabs[i] =3D=3D fn) tabs[i] =3D null;
else ok =3D true;
}
if(!ok)
this._tabListeners =3D null;
}
=09
this.fireTabChange =3D function()
{
var tabs =3D this._tabListeners;
var i =3D tabs ? tabs.length : 0;
while(i-- > 0)if(tabs[i])
try{eval(tabs[i]);}catch(ex){}
}
}
function ig_delete(o){ig_dispose(o);}
function ig_filterMouseOverEvents(evt){
var element=3Dig_shared.getSourceElement(evt);
if(!element.__isEventReady){
while(element!=3Dnull && !element.__isEventReady && =
element.tagName!=3D"BODY")element=3Delement.parentNode;
}
if(element && element.__isEventReady && =
(element._hasMouse||!ig_isMouseOverSourceAChild(evt,element)))=20
{
element._hasMouse=3Dtrue;
element.__callBackObject.__onFilteredMouseOver(evt);
}=09
}
function ig_filterMouseOutEvents(evt){
var element=3Dig_shared.getSourceElement(evt);
if(!element.__isEventReady){
while(element!=3Dnull && !element.__isEventReady && =
element.tagName!=3D"BODY")element=3Delement.parentNode;
}
=
if(element&&element.__isEventReady&&!ig_isMouseOutSourceAChild(evt,elemen=
t))=20
{
element._hasMouse=3Dfalse;
element.__callBackObject.__onFilteredMouseOut(evt);
}=09
}
function ig_isMouseOverSourceAChild(evt,element){
var evnt=3Devt?evt:window.event;
if(evnt=3D=3Dnull)return false;
var from=3Devnt.fromElement&&typeof =
evnt.fromElement!=3D"undefined"?evnt.fromElement:evnt.relatedTarget;
if(from=3D=3Delement)return true;
if(from=3D=3Dnull)return false;
return ig_isAChildOfB(from,element);
}
function ig_isMouseOutSourceAChild(evt,element){
var evnt=3Dwindow.event?window.event:evt;
if(!evnt)return false;
var to=3Devnt.toElement&&typeof =
evnt.toElement!=3D"undefined"?evnt.toElement:evnt.relatedTarget;
if(to=3D=3Delement)return true;
if(to=3D=3Dnull)return false;
return ig_isAChildOfB(to,element);=09
}
function ig_isAChildOfB(a,b){
if(a=3D=3Dnull||b=3D=3Dnull)return false;
while(a!=3Dnull){
a=3Da.parentNode;
if(a=3D=3Db)return true;
}
return false;
}
function ig_getWebControlById(id)
{
var i,o=3Dnull;
if(!ig_shared.isEmpty(id))if((o=3Dig_all[id])=3D=3Dnull)for(i in =
ig_all)
{
if((o=3Dig_all[i])!=3Dnull)if(o._id=3D=3Did || o._clientID=3D=3Did || =
o._uniqueID=3D=3Did)
return o;
o=3Dnull;
}
return o;
}
if(typeof ig_all !=3D"object")
var ig_all=3Dnew Object();
// cancel response of browser on event
function ig_cancelEvent(e, type)
{
if(e =3D=3D null) if((e =3D window.event) =3D=3D null) return;
if(type && e.type !=3D type) return;
if(e.stopPropagation !=3D null) e.stopPropagation();
if(e.preventDefault !=3D null) e.preventDefault();
e.cancelBubble =3D true;
e.returnValue =3D false;
}
function ig_TransparentPanel(transLayer){
this.Element=3DtransLayer;
this.show=3Dfunction(){
this.Element.style.visibility=3D"visible";
this.Element.style.display=3D"";
}
this.hide=3Dfunction(){
this.Element.style.visibility=3D"hidden";
this.Element.style.display=3D"none";
}
this.setPosition=3Dfunction(top,left,width,height){
this.Element.style.top=3Dtop;
this.Element.style.left=3Dleft;
this.Element.style.width=3Dwidth;
this.Element.style.height=3Dheight;
}
}
if(typeof ig_shared !=3D"object")
var ig_shared=3Dnew ig_initShared();
var ig_csom=3Dig_shared,ig=3Dig_shared;
//Emulate 'apply' if it doesn't exist.
if ((typeof Function !=3D 'undefined')&&
(typeof Function.prototype !=3D 'undefined')&&
(typeof Function.apply !=3D 'function')) {
Function.prototype.apply =3D function(obj, args){
var result, fn =3D 'ig_apply'
while(typeof obj[fn] !=3D 'undefined') fn +=3D fn;
obj[fn] =3D this;
var length=3D(((ig_shared.isArray(args))&&(typeof args =3D=3D =
'object'))?args.length:0);
switch(length){
case 0:
result =3D obj[fn]();
break;
default:
for(var item=3D0, params=3D''; item0){
searchString+=3D"("+partialId[i]+")?";
i++;
}
searchString+=3DpartialId[i]+"$";
var searchExp=3Dnew RegExp(searchString);
var curElement=3DstartElement.firstChild;
while(curElement!=3Dnull){
if(curElement.id!=3Dnull&&(curElement.id.search(searchExp))!=3D-1){
return curElement;
}
item=3DfindClosestMatch(curElement,partialId);
if(item!=3Dnull)return item;
curElement=3DcurElement.nextSibling; =09
}
return null;
}
function ig_EventObject(){
this.event=3Dnull;
this.cancel=3Dfalse;
this.cancelPostBack=3Dfalse;
this.needPostBack=3Dfalse;
this.reset=3Dfunction()
{
this.event=3Dnull;
this.needPostBack=3Dfalse;
this.cancel=3Dfalse;
this.cancelPostBack=3Dfalse;
this.needAsyncPostBack=3Dfalse;
}
}
function ig_fireEvent(oControl,eventName)
{
var i, fn =3D eventName;
if(!fn || !oControl) return false;
if(ig_shared.isName(fn))
{
fn +=3D "(oControl";
for(i =3D 2; i < ig_fireEvent.arguments.length; i++)
fn +=3D ", ig_fireEvent.arguments[" + i + "]";
fn +=3D ");";
}
try{eval(fn);}
catch(i){window.status =3D "Can't eval " + fn; return false;}
return true;
}
function ig_dispose(obj)
{
if(ig_shared.IsIE&&ig_shared.IsWin)=09
for(var item in obj)
{
var t =3D typeof obj[item];
if(obj[item] && t !=3D 'undefined' && !obj[item].tagName && =
!obj[item].disposing && t !=3D 'boolean' && t !=3D 'number' && t !=3D =
'string' && t !=3D 'function')
{
try {
obj[item].disposing=3Dtrue;
ig_dispose(obj[item]);
} catch(e1) {;}
}
try{delete obj[item];}catch(e2){;}
}
}
function ig_initClientState(){
this.XmlDoc=3Ddocument;
this.createRootNode=3Dfunction(){
if(!ig_shared.IsIE){
var str =3D' ';
var p =3D new DOMParser();
var doc =3D p.parseFromString(str,"text/xml");
this.XmlDoc=3Ddoc;
return doc.getElementById("vs");
}
=
if(ig_shared.IsIE50)this.XmlDoc=3Dig_createActiveXFromProgIDs(["MSXML2.DO=
MDocument","Microsoft.XMLDOM"]);//~ AK 5/12/2006 new =
ActiveXObject("Microsoft.XMLDOM");
return this.createNode("ClientState");
}
this.setPropertyValue=3Dfunction(element,name,value){
if(element!=3Dnull)element.setAttribute(name,escape(value));
}
this.getPropertyValue=3Dfunction(element,name){
if(element=3D=3Dnull)return "";
return unescape(element.getAttribute(name));
}
this.addNode=3Dfunction(element,nodeName){
var newNode=3Dthis.createNode(nodeName);
if(element!=3Dnull)element.appendChild(newNode);
return newNode;
}
this.removeNode=3Dfunction(element,nodeName){
var nodeToRemove=3Dthis.findNode(element,nodeName);
if(element!=3Dnull)
return element.removeChild(nodeToRemove);
return null;
}
this.createNode=3Dfunction(nodeName){
return this.XmlDoc.createElement(nodeName);
}
this.findNode=3Dfunction(element,node){
if(element=3D=3Dnull)return null;
var curElement=3Delement.firstChild;
while(curElement!=3Dnull){
if(curElement.nodeName=3D=3Dnode || curElement=3D=3Dnode){
return curElement;
}
var item=3Dthis.findNode(curElement,node);
if(item!=3Dnull)return item;
curElement=3DcurElement.nextSibling; =09
}
return null;
}
this.getText=3Dfunction(element){
if(element=3D=3Dnull)return "";
if(ig_shared.IsIE55Plus)return escape(element.innerHTML);
return escape(this.XmlToString(element));
}
this.XmlToString=3Dfunction(startElem){
var str=3D"";
if(!startElem)return "";
var curElement=3DstartElem.firstChild;
while(curElement!=3Dnull){
str+=3D"<"+curElement.tagName+" ";
for(var i=3D0; i";
str+=3Dthis.XmlToString(curElement);
str+=3D""+curElement.tagName+">";
curElement=3DcurElement.nextSibling; =09
}
return str;
}
}
//
function ig_xmlNode(name)
{
this.lastChild =3D null;
this.name =3D name;=09
this.getText =3D function(){return escape(this.toString());}
this.childNodes =3D new Array();
this.toString =3D function()
{
var i, s =3D (this.name =3D=3D null) ? "" : "<" + this.name;
if(this.props !=3D null) for(i =3D 0; i < this.props.length; i++)
s +=3D " " + this.props[i].name + "=3D\"" + this.props[i].value + =
"\"";
if(this.name !=3D null) s +=3D ">";
for(i =3D 0; i < this.childNodes.length; i++)
s +=3D this.childNodes[i].toString();
if(this.name !=3D null) s +=3D "" + this.name + ">";
return s;
}
this.addNode =3D function(node, unique)
{
if(node =3D=3D null) return null;
if(unique =3D=3D true) if((unique =3D this.findNode(node)) !=3D null) =
return unique; =09
if(node.name =3D=3D null) node =3D new ig_xmlNode(node);
node.parentNode =3D this;
this.lastChild =3D node;
return this.childNodes[this.childNodes.length] =3D node;
}
this.appendChild =3D this.addNode;
this.setAttribute =3D function(name, value)
{
if(name =3D=3D null) return;
if(this.props =3D=3D null) this.props =3D new Array();
var prop, i =3D this.props.length;
value =3D (value =3D=3D null) ? "" : value;
while(i-- > 0)
{
prop =3D this.props[i];
if(prop.name =3D=3D name){prop.value =3D value; return;}
}
prop =3D new Object();
prop.name =3D name;
prop.value =3D value;
this.props[this.props.length] =3D prop;
}
this.setPropertyValue =3D function(name, value){this.setAttribute(name, =
(value =3D=3D null) ? value : escape(value));}
this.findNode =3D function(node, descendants)
{
if(node !=3D null) for(var i =3D 0; i < this.childNodes.length; i++)
{
var n =3D this.childNodes[i];
if(n !=3D null)
{
if(n.name =3D=3D node || n =3D=3D node)
{
n.index =3D i;
return n;
}
if(descendants =3D=3D true && (n =3D n.findNode(node)) !=3D null) =
return n;
}
}
return null;
}
this.removeNode=3Dfunction(n)
{
if((n=3Dthis.findNode(n))=3D=3Dnull)return n;
var i=3D-1,j=3D0,a=3Dnew Array(),a0=3Dn.parentNode.childNodes;
while(++i 0)
if(this.props[i].name =3D=3D name)
return unescape(this.props[i].value);
return null;
}
}
function ig_xmlNodeStatic()
{
this.createRootNode =3D function(){return new ig_xmlNode("Temp");}
this.addNode =3D function(e, n){return (e =3D=3D null) ? (new =
ig_xmlNode(n)) : e.addNode(n);}
this.removeNode =3D function(e, n){return (e =3D=3D null) ? e : =
e.removeNode(n);}
this.findNode =3D function(e, n){return (e =3D=3D null) ? e : =
e.findNode(n);}
this.setPropertyValue =3D function(e, n, v){if(e !=3D =
null)e.setPropertyValue(n, v);}
this.getPropertyValue =3D function(e, n){return (e =3D=3D null) ? "" : =
e.getPropertyValue(n);}
this.getText =3D function(e)
{
var s =3D "", i =3D (e =3D=3D null) ? 0 : e.childNodes.length;
for(var j =3D 0; j < i; j++) s +=3D e.childNodes[j].getText();
return s;
}
}
try{ig_shared.addEventListener(window, "load", =
ig_handleEvent);}catch(ex){}
try{ig_shared.addEventListener(window, "unload", =
ig_handleEvent);}catch(ex){}
try{ig_shared.addEventListener(window, "resize", =
ig_handleEvent);}catch(ex){}
function ig_findElemWithAttr(elem, attr)
{
while(elem !=3D null)
{
try
{
if(elem.getAttribute !=3D null && =
!ig_shared.isEmpty(elem.getAttribute(attr)))
return elem;
}catch(ex){}
elem =3D elem.parentNode;
}
return null;
}
function ig_handleEvent(evt)
{
if(evt =3D=3D null) if((evt =3D window.event) =3D=3D null) return;
var obj, attr =3D ig_shared.attrID, src =3D evt.target, type =3D =
evt.type;
if(ig_shared.isEmpty(type)) return;
var fn =3D "obj._on" + type.substring(0, 1).toUpperCase() + =
type.substring(1);
if(!src)
src =3D evt.srcElement;
if(type =3D=3D "load" || type =3D=3D "unload" || type =3D=3D "resize" =
|| !src)
{
for(obj in ig_all)
{
if((obj =3D ig_all[obj]) =3D=3D null)
continue;
eval("if(" + fn + "!=3Dnull){" + fn + "(src,evt); obj=3Dnull;}");
if(obj && obj._onHandleEvent)
obj._onHandleEvent(src, evt);
}
if(type =3D=3D "unload")
{
ig_dispose(ig_all);
for(var id in ig_all) if(ig_all[id])
ig_all[id].base =3D null;
}
return;
}
var elem =3D ig_findElemWithAttr(src, attr);
if(elem =3D=3D null)
elem =3D ig_findElemWithAttr(this, attr);
if(elem !=3D null && (obj =3D =
ig_getWebControlById(elem.getAttribute(attr))) !=3D null)
{
eval("if(" + fn + "!=3Dnull){" + fn + "(src,evt); obj=3Dnull;}");
if(obj !=3D null && obj._onHandleEvent !=3D null)
obj._onHandleEvent(src, evt);
}
}
function ig_handleTimer(obj)
{
var i, all =3D ig_shared._timers, fn =3D ig_shared._timerFn;
if(obj)
{
if(!obj._onTimer) return;
if(!all) ig_shared._timers =3D all =3D new Array();
i =3D all.length;
while(i-- > 0) if(all[i] =3D=3D obj) break;
if(i < 0) all[all.length] =3D obj;
if(!fn) ig_shared._timerFn =3D fn =3D =
window.setInterval(ig_handleTimer, 200);
return;
}
if(!fn) return;
for(i =3D 0; i < all.length; i++) if(all[i] && all[i]._onTimer) =
if(!all[i]._onTimer())
obj =3D true;
if(obj) return;
window.clearInterval(fn);
delete ig_shared._timerFn;
}
var ig_ClientState=3Dnull;
if(!ig_shared.IsIE55Plus||!ig_shared.IsWin) ig_ClientState =3D new =
ig_xmlNodeStatic();
else ig_ClientState=3Dnew ig_initClientState();
var _asyncSmartCallbacks =3D new Array();
var _inCallback =3D false;
=20
function ig_SmartCallback(clientContext, serverContext, =
callbackFunction, uniqueId, control, waitResponse)
{
var _callbackFunction;
var _url =3D null;
var _postdata =3D "";
var _async =3D true;
this._registeredControls =3D new Array();
this._control =3D control;
this._waitResponse=3D(waitResponse=3D=3D=3Dtrue);
this._progressIndicator =3D null;
=20
this._registeredControls[0] =3D {clientContext:clientContext, =
serverContext:serverContext, callbackFunction:callbackFunction, =
uniqueId:uniqueId, control:control};
=20
if(typeof XMLHttpRequest !=3D "undefined") {
__xmlHttpRequest =3D new XMLHttpRequest();
}
else if(typeof ActiveXObject !=3D "undefined")
{
try{
__xmlHttpRequest =3D =
ig_createActiveXFromProgIDs(["MSXML2.XMLHTTP","Microsoft.XMLHTTP"]);//~ =
AK 5/12/2006 new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e)
{
}
}
=09
this.registerControl =3D function(clientContext, serverContext, =
callbackFunction, uniqueId, control)
{
this._registeredControls.push({clientContext:clientContext, =
serverContext:serverContext, callbackFunction:callbackFunction, =
uniqueId:uniqueId, control:control});
}
this._xmlHttpRequest =3D __xmlHttpRequest;
=20
this.execute =3D function ()=20
{
var exec =3D true;
if(this.beforeCallback !=3D null)
exec =3D this.beforeCallback();
if(exec)
{
if(this._progressIndicator !=3D null)
this._progressIndicator.display();
this.formatCallbackArguments();
this.registerSmartCallback();
this._xmlHttpRequest.open("POST", this.getUrl(), =
!this._waitResponse);
this._xmlHttpRequest.setRequestHeader("Content-Type", =
"application/x-www-form-urlencoded");
this._xmlHttpRequest.onreadystatechange =3D =
this._responseComplete;
this._xmlHttpRequest.send(this.getCallbackArguments());
}
}
=20
this.getCallbackArguments =3D function () {
return this._callbackArguments;
}
this.setCallbackArguments =3D function (callbackArguments) {
this._callbackArguments =3D callbackArguments;
}
this.getUrl =3D function () {
if(this._url =3D=3D null) {
return this.getForm().action;
}
return this._url;
}
this.setUrl =3D function (url) {
this._url =3D url;
}
this.getForm =3D function ()=20
{
var form;
=20
if(document.forms.length > 1)
{
for(var i =3D 0; i < document.forms.length; i++)
{
if(document.forms[i].method =3D=3D "post" && =
document.forms[i].action !=3D "")
{
form =3D document.forms[i];
break;
}
} =20
if(form =3D=3D null)
form =3D document.forms[0];=20
}
else
form =3D document.forms[0];
if (!form)=20
form =3D document.form1;
return form;
}
=20
this.setProgressIndicator =3D function(value)
{
this._progressIndicator =3D value;=20
}
=20
this._responseComplete =3D function ()=20
{
var proccessComplete =3D null;
for (var i =3D 0; i < _asyncSmartCallbacks.length; i++) {
smartCallback =3D _asyncSmartCallbacks[i];
if (smartCallback && smartCallback._xmlHttpRequest && =
(smartCallback._xmlHttpRequest.readyState =3D=3D 4))=20
{
//if(smartCallback && smartCallback._xmlHttpRequest.status =3D=3D =
"500")
// alert(smartCallback && =
smartCallback._xmlHttpRequest.responseText);
_asyncSmartCallbacks[i] =3D null;
smartCallback.processSmartCallback();
proccessComplete =3D smartCallback;
}
}
if(proccessComplete !=3D null)
{
if(proccessComplete.callbackFinished !=3D null)
proccessComplete.callbackFinished();
proccessComplete._control =3D null;
proccessComplete._registeredControls =3D null;
proccessComplete._progressIndicator =3D null;=20
ig_dispose(proccessComplete);
proccessComplete =3D null;
}
}
this.processSmartCallback =3D function () {
var responseString =3D this._xmlHttpRequest.responseText;
var startIndex =3D responseString.indexOf("_ig_start");
var endIndex =3D responseString.indexOf("_ig_end");
var length =3D endIndex;
if(startIndex > -1 && endIndex > -1) {
responseString =3D responseString.substring(startIndex + 9, =
length);=20
var response =3D eval(responseString);
var index;
for(index =3D 0; index < response.length; index++)=20
{
controlResponse =3D response[index];
var header =3D controlResponse[0];
var payload =3D controlResponse[1].replace(/\ig_NL/g, =
"\n");
=09
for(var i =3D 0; i < this._registeredControls.length; =
i++)
{
if(this._registeredControls[i] !=3D null && header =3D=3D =
this._registeredControls[i].uniqueId)
{
if(payload.length > 0)
{
if(this._registeredControls[i].clientContext.requestType !=3D =
null && this._registeredControls[i].clientContext.requestType =3D=3D =
"styles")
this._resolveStyles(payload);
else if(this._registeredControls[i].callbackFunction !=3D null)
this._registeredControls[i].callbackFunction(payload, =
this._registeredControls[i].clientContext);
else if(this._registeredControls[i].control.callbackRender !=3D =
null)
this._registeredControls[i].control.callbackRender(payload, =
this._registeredControls[i].clientContext);
}
this._registeredControls[i] =3D null;
break;
}
}
}
}
if(this._progressIndicator !=3D null)
this._progressIndicator.hide();
}
=20
this._resolveStyles =3D function(response)
{
var json =3D eval(response.replace(/\^/g, "\""));
var key =3D json[0];
var styleBlock =3D eval(json[1]);
if(styleBlock !=3D null && styleBlock.length > 0)
{
var styles =3D document.getElementsByTagName("style");=09
for(var i =3D 0; i < styles.length; i++)
{
var rules;
=09
if(ig_shared.IsIE)
rules =3D styles[i].styleSheet.rules
else
rules =3D styles[i].sheet.cssRules
=09
for(var j =3D 0; j < rules.length; j++)
{
if(rules[j].selectorText.indexOf(key) > -1)
{
if(ig_shared.IsIE)
styles[i].styleSheet.removeRule(j);
else
styles[i].sheet.deleteRule(j);
}=09
}
for(var j =3D 0; j < styleBlock.length; j++)
{
if(styleBlock[j] !=3D null)
{
if(ig_shared.IsIE)
styles[i].styleSheet.addRule(styleBlock[j][0], styleBlock[j][1], =
0);
else
styles[i].sheet.insertRule(styleBlock[j][0] + "{" + =
styleBlock[j][1] + "}", 0);
}
}
}
}
return;=09
}
=20
this.registerSmartCallback =3D function () {
var index;
for(index =3D 0; index < _asyncSmartCallbacks.length; index++)
if(!_asyncSmartCallbacks[index])
break;
_asyncSmartCallbacks[index] =3D this;
return index;
}
=20
this.formatCallbackArguments =3D function () {
var form =3D this.getForm();
if(!form) return;
var count =3D form.elements.length;
var element;
for (var i =3D 0; i < count; i++) {
element =3D form.elements[i];
if (element.tagName.toLowerCase() =3D=3D "input" && =
(element.type =3D=3D "hidden" || element.type =3D=3D 'password' || =
element.type =3D=3D 'text' || ((element.type =3D=3D "checkbox"|| =
element.type =3D=3D'radio')&& element.checked)))=20
this.addCallbackField(element.name, element.value);
else if(element.tagName.toLowerCase() =3D=3D "textarea")
this.addCallbackField(element.name, element.value);
else if(element.tagName.toLowerCase() =3D=3D "select")
{
var o =3D element.options.length;
while(o-- > 0)
{
if(element.options[o].selected)
this.addCallbackField(element.name, element.options[o].value);
}
}
=20
} =20
=20
var args =3D _postdata + "__EVENTTARGET=3D&__EVENTARGUMENT=3D&" =
+=20
"__CALLBACKID=3D" +=20
this._registeredControls[0].uniqueId +
//this.getServerId() +
"&__CALLBACKPARAM=3D";
var xml =3D '<SmartCallback>';
if(this._registeredControls!=3D null) {
for(var i =3D 0; i < this._registeredControls.length; i++)
{
xml +=3D "<Control";
var control =3D this._registeredControls[i];
=09
xml +=3D " id=3D'" + control.uniqueId + "'";
for(property in control.serverContext)
{
if(control.serverContext[property] !=3D null) {
var value =3D control.serverContext[property].toString();
while(value.indexOf("'") !=3D -1) {
value =3D value.replace("'", "^^");
}
=09
=09
xml +=3D " " + property + "=3D'" + escape(escape(value)) + "'";
}
}
xml +=3D "/>"
}
}
xml +=3D "</SmartCallback>";
xml =3D escape(xml);=20
args +=3D xml;=20
this.setCallbackArguments(args);
}
=20
this.addCallbackField =3D function(name, value) {
_postdata +=3D name + "=3D" + this.encodeValue(value) + "&";
}
=20
this.isAsynchronous =3D function () {
return _async;
}
this.setAsynchronous =3D function (async) {
_async =3D async;
}
=20
this.encodeValue =3D function(uri) {
if(encodeURIComponent !=3D null)=20
return encodeURIComponent(uri);
else
return escape(parameter);
}
}
ig_createCallback =3D function(method, context ) {
=09
return function() {
method.apply(context, [null]);
}
}
var ViewportOrientationEnum =3D new function() {
this.Horizontal =3D 0;
this.Vertical =3D 1;
}=20
var AnimationDirectionEnum =3D new function() {
this.Up =3D 1;
this.Down =3D 2;=20
this.Left =3D 3;
this.Right =3D 4;
}=20
var AnimationRateEnum =3D new function() {
this.Static =3D 0;
this.Accelerate =3D 1;
this.Decelerate =3D 2;=20
this.AccelDecel =3D 3;
this.Linear =3D 4;
} =20
ig_viewport =3D function() {
=09
this.createViewport =3D function(elem, orientation) {
if(this.elem)=20
return;
this.elem =3D elem;
this.orientation =3D orientation;
=09
this.div =3D document.createElement("div");
this.div.style.position =3D "relative";
this.table =3D document.createElement("table"); =09
var tr =3D document.createElement("tr");
var tbody =3D document.createElement("tbody");
this.td1 =3D document.createElement("td"); =09
this.td2 =3D document.createElement("td");
this.div.style.overflow =3D "hidden";
this.div.style.width =3D elem.offsetWidth + "px";=20
this.div.style.height =3D elem.offsetHeight + "px";=20
this.table.cellSpacing =3D "0px";=20
this.table.cellPadding =3D "0px";
this.div.appendChild(this.table); =09
this.table.appendChild(tbody);
tbody.appendChild(tr);
tr.appendChild(this.td1);
=09
this.td1.style.verticalAlign =3D "top";
this.td2.style.verticalAlign =3D "top";
=09
=09
this.table.style.height =3D "100%";
this.td1.style.height =3D "100%";
this.td2.style.height =3D "100%";
=09
if(this.orientation =3D=3D ViewportOrientationEnum.Horizontal) {
tr.appendChild(this.td2);
}
else {
tr =3D document.createElement("tr");
tbody.appendChild(tr);
tr.appendChild(this.td2);
}
elem.parentNode.insertBefore(this.div, elem);
this.td1.appendChild(elem);
this.animate =3D new ig_SlideAnimation();
}
this.transferPositionToDiv =3D function(elem, oldElem)
{
if(elem.style.position !=3D "" && elem.style.position !=3D "static")
{
this.div.style.position =3D elem.style.position;
elem.style.position =3D "static";
if(oldElem)
oldElem.style.position =3D "static";
}
this.div.style.top =3D elem.style.top;
this.div.style.left =3D elem.style.left;
elem.style.top =3D "";
elem.style.left =3D "";
if(oldElem) {
oldElem.style.top =3D "";
oldElem.style.left =3D "";
}
}
this.scroll =3D function(eCurrent, eNew, direction, rate) {
this.direction =3D direction;
this.animate.setElement(this.table);
this.animate.setContainer(this.div);
this.animate.setDirection(direction);
this.animate.setRate(rate);
switch (this.direction) {
case AnimationDirectionEnum.Down :
case AnimationDirectionEnum.Right :
if(this.td1.firstChild !=3D null)
this.td1.removeChild(this.td1.firstChild);
this.td1.appendChild(eCurrent);
if(this.td2.firstChild !=3D null)
this.td2.removeChild(this.td2.firstChild);
this.td2.appendChild(eNew);
this.animate.startPos =3D 0;
this.animate.finishPos =3D this.td1.offsetWidth;
break;
=09
case AnimationDirectionEnum.Up :
case AnimationDirectionEnum.Left :
if(this.td1.firstChild !=3D null)
this.td1.removeChild(this.td1.firstChild);
this.td1.appendChild(eNew);
if(this.td2.firstChild !=3D null)
this.td2.removeChild(this.td2.firstChild);
this.td2.appendChild(eCurrent);
this.div.scrollLeft =3D this.td1.offsetWidth;
this.animate.startPos =3D this.div.scrollLeft;
this.animate.finishPos =3D 0;
break;
}
=09
this.animate.play(); =09
}
}
ig_WebAnimation =3D function() {
=20
this.timerInterval =3D 30;
this.startPos =3D 0;
var _inProgress;
this.eContainer =3D null;
this.duration =3D null;=20
this.cancel =3D false;
} =20
=20
ig_WebAnimation.prototype.getElement =3D function() {
return this.element;
}
ig_WebAnimation.prototype.setElement =3D function(value) {
this.element =3D value;
}
ig_WebAnimation.prototype.getTimerInterval =3D function() {
return timerInterval;
}
ig_WebAnimation.prototype.setTimerInterval =3D function(value) {
timerInterval =3D value;
}
ig_WebAnimation.prototype.isInProgress =3D function() {
return _inProgress;
}
ig_WebAnimation.prototype.cancelAnimation =3D function() {
clearTimeout(this.timerId);
this.cancel =3D true;
}
ig_WebAnimation.prototype.setContainer =3D function(container) {
this.eContainer =3D container;
}
ig_WebAnimation.prototype.getContainer =3D function() {
return this.eContainer;
}
ig_WebAnimation.prototype.onBegin =3D function() {
}
ig_WebAnimation.prototype.onNext =3D function() {
}
ig_WebAnimation.prototype.onEnd =3D function() {
}
ig_WebAnimation.prototype.play =3D function() {
this.currentPos =3D this.startPos;
this.cancel =3D false;
this.begin();
if(!this.cancel)
this.timerId =3D setInterval(ig_createCallback(this.tickHandler, this, =
null), this.timerInterval);
}
ig_WebAnimation.prototype.tickHandler =3D function() {
if(this.cancel || !this.next())
{
clearTimeout(this.timerId);
this.end();
}
}
ig_WebAnimation.prototype.getDuration =3D function() {
return this.duration;=20
}
ig_WebAnimation.prototype.setDuration =3D function(value) {
this.duration =3D value;=20
}
ig_WebAnimation.prototype.calcDurationIncrement =3D function()
{
return this.distance /(this.duration / this.timerInterval);
}
ig_WebAnimation.prototype.ensureContainer =3D function(e) {
var parent =3D e.parentNode;
if(parent.getAttribute("container") =3D=3D '1')
return;
if(e.getAttribute("container") =3D=3D '1')
return;
var eDiv =3D window.document.createElement("DIV");
eDiv.setAttribute("container", '1');
eDiv.cssText =3D 'overflow:hidden; position:absolute;z-index:12000;';
parent.insertBefore(eDiv, e);
parent.removeChild(e);
eDiv.appendChild(e);
}
ig_WebAnimation.prototype.removeContainer =3D function() {
var container =3D this._element;
var child =3D container.firstChild;
if(container.getAttribute("container") !=3D '1'){
container =3D container.parentNode;
if(container.getAttribute("container") !=3D '1')
return;
}
var parent =3D container.parentNode;
container.removeChild(child);
parent.removeChild(container);
delete container;
parent.appendChild(child);
}
ig_SlideAnimation.prototype =3D new ig_WebAnimation();
function ig_SlideAnimation(direction, rate)
{
this.init(direction, rate);
return this;
}
ig_SlideAnimation.prototype.init =3D function(direction, rate) {
if(direction)
this.direction =3D direction;
else
this.direction =3D AnimationDirectionEnum.Right;
if(rate)
this.rate =3D rate;
else=09
this.rate =3D AnimationRateEnum.Linear;
}
ig_SlideAnimation.prototype.getDirection =3D function() {
return this.direction;
}
ig_SlideAnimation.prototype.setDirection =3D function(value) {
this.direction =3D value;
}
ig_SlideAnimation.prototype.getRate =3D function() {
return this.rate;
}
ig_SlideAnimation.prototype.setRate =3D function(value) {
this.rate =3D value;
}
ig_SlideAnimation.prototype.begin =3D function() {
switch (this.direction) {
case AnimationDirectionEnum.Up :
case AnimationDirectionEnum.Down :
this.distance =3D Math.abs(this.finishPos - this.startPos);
break;
case AnimationDirectionEnum.Right :
case AnimationDirectionEnum.Left :
this.distance =3D Math.abs(this.finishPos - this.startPos);
break;
}
switch(this.rate) {
case AnimationRateEnum.Accelerate :
this.increment =3D 1;
break;
case AnimationRateEnum.Decelerate :
this.increment =3D .5 * Math.abs(this.distance);;
break;
case AnimationRateEnum.AccelDecel :
this.midPoint =3D this.distance / 2;
this.accel =3D true;
this.increment =3D 1;
break;
case AnimationRateEnum.Linear :
=09
if(this.duration !=3D null)
this.increment =3D this.calcDurationIncrement();
else
{
if(this.increment =3D=3D null)
this.increment =3D 30;=20
this._originalIncrement =3D this.increment;=20
this.increment =3D 1;=20
var totalCount =3D 0;=20
var temp =3D 1;=20
var distance =3D this.distance;=20
while(temp * 2 < this._originalIncrement)
{
temp *=3D2;=20
distance -=3D temp*2;=20
totalCount++;
}
this._acelCount =3D totalCount;=20
temp =3D this._originalIncrement;=20
totalCount *=3D 2;=20
totalCount +=3D parseInt(distance / this._originalIncrement);=20
this._decelCount =3D totalCount - this._acelCount;=20
this._currentCount =3D 1;=20
}
=09
break;
}
this.onBegin();
}
ig_SlideAnimation.prototype.next =3D function() {
switch (this.direction) {
case AnimationDirectionEnum.Down :
case AnimationDirectionEnum.Right :
this.currentPos +=3D this.increment;
if(this.currentPos > this.finishPos)
return false;
if(this.direction =3D=3D AnimationDirectionEnum.Right)
this.getContainer().scrollLeft =3D this.currentPos;
else
this.getContainer().scrollTop =3D this.currentPos;
break;
case AnimationDirectionEnum.Up :
case AnimationDirectionEnum.Left :
this.currentPos -=3D this.increment;
if(this.currentPos < this.finishPos)
return false;
if(this.direction =3D=3D AnimationDirectionEnum.Left)
this.getContainer().scrollLeft =3D this.currentPos;
else
this.getContainer().scrollTop =3D this.currentPos;
break;
}
=09
switch(this.rate) {
case AnimationRateEnum.Accelerate :
this.increment *=3D 2;
break;
case AnimationRateEnum.Decelerate :
this.increment =3D Math.max(2, this.increment / 2);
break;
case AnimationRateEnum.AccelDecel :
if(this.accel) {
if(this.direction =3D=3D AnimationDirectionEnum.Right || =
this.direction =3D=3D AnimationDirectionEnum.Down) {
if(this.currentPos + this.increment >=3D this.midPoint) {
this.accel =3D false;
this.increment =3D this.midPoint / 2;
}
else
this.increment *=3D 2;
}
else {
if(this.currentPos - this.increment <=3D this.midPoint) {
this.accel =3D false;
this.increment =3D this.midPoint / 2;
}
else
this.increment *=3D 2;
}
}
else {
this.increment =3D Math.max(2, this.increment / 2);
}
break; =09
case AnimationRateEnum.Linear :
=09
if(this.duration =3D=3D null)
{
if(this._currentCount <=3D this._acelCount)
this.increment *=3D2;=20
else if(this._currentCount > this._decelCount)
{
this.increment =3D Math.pow(2,this._acelCount);
if(this._acelCount > 3)
this._acelCount--;=20
}
else
this.increment =3D this._originalIncrement;=20
=09
this._currentCount++;=20
}
=09
break;
}
=09
this.onNext();
return true;
}
ig_SlideAnimation.prototype.end =3D function() {
this.getContainer().scrollLeft =3D this.finishPos;
if(this.rate =3D=3D AnimationRateEnum.Linear && this.duration =3D=3D =
null)
{
this._currentCount =3D 0;=20
this.increment =3D this._originalIncrement;=20
}
this.onEnd();
}
ig_SlideRevealAnimation.prototype =3D new ig_SlideAnimation();
function ig_SlideRevealAnimation(direction, rate)
{
this.init(direction, rate);
return this;
}
ig_SlideRevealAnimation.prototype.begin =3D function() {
this.eContainer.style.overflow =3D "hidden";
this.element.style.position =3D "relative";
=09
this.distance =3D Math.abs(this.finishPos - this.startPos);
this.currentPos =3D this.startPos;=20
switch (this.direction) {
case AnimationDirectionEnum.Up :
this.element.style.top =3D this.currentPos.toString();
break;
case AnimationDirectionEnum.Down :
this.element.style.display =3D "";
this.element.style.top =3D this.currentPos.toString();
break;
case AnimationDirectionEnum.Right :
this.element.style.display =3D "";
this.element.style.left =3D this.currentPos.toString();
break;
case AnimationDirectionEnum.Left :
this.element.style.left =3D this.currentPos.toString();
break;
}
switch(this.rate) {
case AnimationRateEnum.Accelerate :
this.increment =3D 1;
break;
case AnimationRateEnum.Decelerate :
this.increment =3D .5 * Math.abs(this.distance);;
break;
case AnimationRateEnum.AccelDecel :
this.midPoint =3D this.distance / 2;
this.accel =3D true;
this.increment =3D 1;
break;
case AnimationRateEnum.Linear :
if(!this.increment)
this.increment =3D 20;
break;
}
this.onBegin();
}
ig_SlideRevealAnimation.prototype.next =3D function() {
switch (this.direction) {
case AnimationDirectionEnum.Down :
case AnimationDirectionEnum.Right :
this.currentPos +=3D this.increment;
if(this.currentPos > this.finishPos)
return false;
if(this.direction =3D=3D AnimationDirectionEnum.Right)
this.element.style.left =3D this.currentPos.toString();
else
this.element.style.top =3D this.currentPos.toString();
break;
case AnimationDirectionEnum.Up :
case AnimationDirectionEnum.Left :
this.currentPos -=3D this.increment;
if(this.currentPos < this.finishPos)
return false;
if(this.direction =3D=3D AnimationDirectionEnum.Left)
this.element.style.left =3D this.currentPos.toString();
else
this.element.style.top =3D this.currentPos.toString();
break;
}
switch(this.rate) {
case AnimationRateEnum.Accelerate :
this.increment *=3D 2;
break;
case AnimationRateEnum.Decelerate :
this.increment =3D Math.max(2, this.increment / 2);
break;
case AnimationRateEnum.AccelDecel :
if(this.accel) {
if(this.direction =3D=3D AnimationDirectionEnum.Right || =
this.direction =3D=3D AnimationDirectionEnum.Down) {
if(this.currentPos + this.increment >=3D this.midPoint) {
this.accel =3D false;
this.increment =3D this.midPoint / 2;
}
else
this.increment *=3D 2;
}
else {
if(this.currentPos - this.increment <=3D this.midPoint) {
this.accel =3D false;
this.increment =3D this.midPoint / 2;
}
else
this.increment *=3D 2;
}
}
else {
this.increment =3D Math.max(2, this.increment / 2);
}
break; =09
=09
}
this.onNext();
return true;
}
ig_SlideRevealAnimation.prototype.end =3D function() {
if(this.cancel)
return;
if(this.direction =3D=3D AnimationDirectionEnum.Left ||this.direction =
=3D=3D AnimationDirectionEnum.Right)
this.element.style.left =3D this.finishPos;
else
this.element.style.top =3D this.finishPos;
this.onEnd();
}
// Reveal Animation=20
ig_RevealAnimation.prototype =3D new ig_WebAnimation();
function ig_RevealAnimation(direction, rate)
{
this.init(direction, rate);
return this;
}
ig_RevealAnimation.prototype.init =3D function(direction, rate) {
if(direction)
this.direction =3D direction;
else
this.direction =3D AnimationDirectionEnum.Right;
if(rate)
this.rate =3D rate;
else=09
this.rate =3D AnimationRateEnum.Linear;
}
ig_RevealAnimation.prototype.getDirection =3D function() {
return this.direction;
}
ig_RevealAnimation.prototype.setDirection =3D function(value) {
this.direction =3D value;
}
ig_RevealAnimation.prototype.getRate =3D function() {
return this.rate;
}
ig_RevealAnimation.prototype.setRate =3D function(value) {
this.rate =3D value;
}
ig_RevealAnimation.prototype.begin =3D function() {
this.element.style.overflow =3D "hidden";
this.distance =3D Math.abs(this.finishPos - this.startPos);
switch (this.direction) {
case AnimationDirectionEnum.Up :
if(!this.startPos)
this.startPos =3D this.element.scrollHeight;
break;
case AnimationDirectionEnum.Down :
if(!this.startPos)
this.startPos =3D 1;
break;
}
switch(this.rate) {
case AnimationRateEnum.Accelerate :
this.increment =3D 1;
break;
case AnimationRateEnum.Decelerate :
this.increment =3D .5 * Math.abs(this.distance);;
break;
case AnimationRateEnum.AccelDecel :
this.midPoint =3D this.distance / 2;
this.accel =3D true;
this.increment =3D 1;
break;
case AnimationRateEnum.Linear :
if(!this.increment)
this.increment =3D 20;
break;
}
this.onBegin();
this.currentPos =3D this.startPos;
}
ig_RevealAnimation.prototype.next =3D function() {
switch (this.direction) {
case AnimationDirectionEnum.Down :
this.currentPos +=3D this.increment;
if(this.currentPos > this.finishPos)
return false;
break;
case AnimationDirectionEnum.Up :
this.currentPos -=3D this.increment;
if(this.currentPos < this.finishPos)
return false;
break;
}
this.element.style.height =3D this.currentPos;
switch(this.rate) {
case AnimationRateEnum.Accelerate :
this.increment *=3D 2;
break;
case AnimationRateEnum.Decelerate :
this.increment =3D Math.max(2, this.increment / 2);
break;
case AnimationRateEnum.AccelDecel :
if(this.accel) {
if(this.direction =3D=3D AnimationDirectionEnum.Right || =
this.direction =3D=3D AnimationDirectionEnum.Down) {
if(this.currentPos + this.increment >=3D this.midPoint) {
this.accel =3D false;
this.increment =3D this.midPoint / 2;
}
else
this.increment *=3D 2;
}
else {
if(this.currentPos - this.increment <=3D this.midPoint) {
this.accel =3D false;
this.increment =3D this.midPoint / 2;
}
else
this.increment *=3D 2;
}
}
else {
this.increment =3D Math.max(2, this.increment / 2);
}
break; =09
=09
}
this.onNext();
return true;
}
ig_RevealAnimation.prototype.end =3D function() {
switch (this.direction) {
case AnimationDirectionEnum.Down :
this.element.style.height =3D "";
break;
case AnimationDirectionEnum.Up :
this.element.style.display =3D "none";
break;
}
this.element.style.overflow =3D "";
this.element.style.width =3D "";
this.onEnd();
}
var ig_Location =3D {TopLeft:0, TopCenter:1, TopRight:2, TopInfront:3, =
TopBehind:4,
MiddleLeft:8, MiddleCenter:9, MiddleRight:10, MiddleInfront:11, =
MiddleBehind:12,
BottomLeft:16, BottomCenter:17, BottomRight:18, BottomInfront:19, =
BottomBehind:20,
AboveLeft:32, AboveCenter:33, AboveRight:34, AboveInfront:35, =
AboveBehind:36,
BelowLeft:64, BelowCenter:65, BelowRight:66, BelowInfront:67, =
BelowBehind:68};
function ig_progressIndicator(imageUrl, relativeContainer)
{
this._img =3D imageUrl;
this._rc =3D relativeContainer;
this.setImageUrl =3D function(url)
{
=09
if(this._elem)
this._elem.parentNode.removeChild(this._elem);
this._elem =3D null;
this._img =3D url;
}
this.getImageUrl =3D function()
{
return this._img;=20
}
this.setTemplate =3D function(html)
{
var elem =3D this._elem;
this._html =3D html;
if(elem)
{
if(elem.tagName =3D=3D 'DIV' && html)
{
elem.innerHTML =3D html;
return;
}
elem.parentNode.removeChild(elem);
this._elem =3D null;
}
}
this.getTemplate =3D function()
{
return this._html;=20
}
this.setLocation =3D function(location)
{
this._location =3D location;
}
this.setCssStyle =3D function(css)
{
this._css =3D css;
}
this.setRelativeContainer =3D function(elem)
{
this._rc =3D elem;
}
this.display =3D function(rc, loc)
{
this.visible =3D true;
var elem =3D this._elem;
if(!rc)
rc =3D this._rc;
if(!elem)
{
var body =3D document.body, append =3D !ig_shared.IsIE || =
document.readyState =3D=3D 'complete';
if(this._html)
{
elem =3D document.createElement('DIV');
if(append)
body.appendChild(elem);
else
=09
body.insertBefore(elem,body.firstChild);
elem.innerHTML =3D this._html;
}
else
{
elem =3D document.createElement('IMG');
if(append)
body.appendChild(elem);
else
=09
body.insertBefore(elem,body.firstChild);
var img =3D this._img;
if(!img)
img =3D (typeof ig_pi_imageUrl =3D=3D 'string') ? ig_pi_imageUrl : =
'/ig_common/images/ig_progressIndicator.gif';
elem.src =3D img;
}
elem.unselectable =3D 'on';
this._elem =3D elem;
}
if(this._css)
elem.className =3D this._css;
if(loc =3D=3D null)
if((loc =3D this._location) =3D=3D null)
loc =3D ig_Location.BottomRight;
ig_shared.absPosition(rc, elem, loc);
}
this.hide =3D function()
{
this.visible =3D false;
if(this._elem)
this._elem.style.display =3D 'none';
}
}
function ig_callBackManager(form)
{
if(!form) if((form =3D ig_shared.getForm()) =3D=3D null)
return;
this._onUnload =3D function()
{
var f =3D this._form;
if(!f)
return;
this._form =3D this._submit =3D this._style =3D null;
ig_shared.removeEventListener(f, 'submit', this._onFormSubmit);
ig_shared.removeEventListener(f, 'click', this._onFormEvt);
ig_shared.removeEventListener(f, 'mousedown', this._onFormEvt);
ig_shared.removeEventListener(f, 'mouseup', this._onFormEvt);
if(f._ig_cb_submit)
{
f.submit =3D f._ig_cb_submit;
f._ig_cb_submit =3D null;
}
if(this._onsubmit)
f.onsubmit =3D this._onsubmit;
}
=09
=09
=09
=09
=09
=09
=09
=09
=09
this.addPanel =3D function(control, id, elemID, rc, link, ids, post, =
noResp)
{
if(!this._form || !control)
return;
var i =3D -1;
while(++i < this._panels.length)
if(this._panels[i].elemID =3D=3D elemID)
break;
this._panels[i] =3D {control:control, id:id, elemID:elemID, rc:rc, =
link:link, ids:ids, post:post, noResp:noResp};
}
=09
=09
=09
=09
=09
=09
=09
this.addCallBack =3D function(control, id, rc, flag)
{
var e, ee, j, form =3D this._form;
if(!control || !form)
return;
if(!this._ok)
{
form.submit();
return;
}
if(!id)
{
id =3D control.id;
rc =3D control.rc;
control =3D control.control;
}
var i =3D null, args =3D this._submitElem;
if(args)
{
args +=3D '&';
this._submitElem =3D null;
}
else args =3D '';
if(this._wait)
return true;
if(this._jsSrcs.length > 0)
{
if(flag =3D=3D -1)
return true;
this._killJsSrc();
}
var id1 =3D this._elemID, id2 =3D this._evtElem;
if(id2)
id2 =3D id2.id;
var triggers =3D [id2,this._subID,id1];
if(!id1)
id1 =3D id2;
=09
if(control.beforeCBSubmit)
i =3D control.beforeCBSubmit(id1);
var lsnrs =3D ig_shared._cbListeners;
var elem, count =3D lsnrs ? lsnrs.length : 0;
=09
while(count-- > 0)
{
var fn =3D lsnrs[count];
if(fn) if((fn =3D fn.evalCtl) !=3D null)try
{
if(typeof fn =3D=3D 'function')
fn =3D fn(id1);
else if(fn)
fn =3D eval(fn).onCBSubmit(id1);
if(!i)
i =3D fn;
}catch(e){}
}
if(i =3D=3D 'fullPostBack')
{
form.submit();
return;
}
if(i =3D=3D 'cancelSubmit' || i =3D=3D=3D true)
return;
var resp =3D (i !=3D 'cancelResponse'), request =3D null;
try
{
if(this._ie)
request =3D =
ig_createActiveXFromProgIDs(["MSXML2.XMLHTTP","Microsoft.XMLHTTP"]);
else
request =3D new XMLHttpRequest();
}catch(e){}
if(!request)
return;
if(resp)
{
id1 =3D this.__id(id1);
id2 =3D this.__id(id2);
ee =3D this._panels;
i =3D ee.length;
while(i-- > 0 && resp)
{
e =3D ee[i].noResp;
j =3D e ? e.length : e;
while(j-- > 0) if(e[j] =3D=3D id1 || e[j] =3D=3D id2)
resp =3D false;
}
}
this._wait =3D true;
=09
var tags =3D ['INPUT', 'TEXTAREA', 'SELECT'], evs =3D =
['__EVENTTARGET', '__EVENTARGUMENT'];
=09
=09
=09
=09
var vs =3D control.getCBSubmitElems ? control.getCBSubmitElems(flag) : =
null;
var elems =3D vs ? vs : form.elements;
var count =3D j =3D elems.length;
if(vs)
{
elems =3D new Array();
count =3D 0;
while(j-- > 0)
{
e =3D vs[j];
for(var t =3D 0; t < 3; t++) try
{
if(e.tagName =3D=3D tags[0])
{
elems[count++] =3D e;
break;
}
ee =3D e.getElementsByTagName(tags[t]);
for(i =3D 0; i < ee.length; i++)
elems[count++] =3D ee[i];
}catch(ex){}
}
vs =3D this._vs;
for(i =3D 0; i < vs.length; i +=3D 2)
elems[count++] =3D form[vs[i]];
}
while(count-- > 0)
{
if((elem =3D elems[count]) =3D=3D null)
continue;
var val =3D null, name =3D elem.name;
var tag =3D ig_csom.isEmpty(name) ? null : elem.tagName;
i =3D 2;
if(tag =3D=3D tags[0])
{
var type =3D elem.type;
if(type =3D=3D 'text' || type =3D=3D 'password' || type =3D=3D =
'hidden' || ((type =3D=3D 'checkbox' || type =3D=3D 'radio') && =
elem.checked))
val =3D elem.value;
}
else if(tag =3D=3D tags[1])
val =3D elem.value;
else if(tag =3D=3D tags[2])
{
var o =3D elem.options;
i =3D o ? o.length : 0;
while(i-- > 0) if(o[i].selected)
args +=3D name + '=3D' + this._encode(o[i].value) + '&';
}
if(val !=3D null)
{
args +=3D name + '=3D' + this._encode(val) + '&';
while(i-- > 0) if(name =3D=3D evs[i])
{
elem.value =3D '';
evs[i] =3D null;
}
}
}
i =3D 2;
while(i-- > 0) if(evs[i])
args +=3D evs[i] + '=3D&';
var postKey =3D '_' + Math.random(), cb =3D -1;
while(++cb < this._callBacks.length)
if(!this._callBacks[cb])
break;
args +=3D '__IG_CALLBACK=3D' + this._encode(id + '#' + postKey);
try
{
request.open('POST', form.action, true);
try
{
if(this._ie || request.setRequestHeader)
request.setRequestHeader('Content-Type', =
'application/x-www-form-urlencoded');
}catch(e){}
if(resp)
{
if(!(i =3D this._ie)) try
{
i =3D !request.addEventListener;
}
catch(e)
{
i =3D true;
}
if(i)
request.onreadystatechange =3D this._responseEvt;
else
request.addEventListener('load', this._responseEvt, false);
}
request.send(args);
ig_shared._isPosted =3D false;
if(resp)
{
window.setTimeout("try{ig_all._ig_cbManager._timeOut('" + postKey + =
"');}catch(i){}", this._timeLimit + 1000);
cb =3D this._callBacks[cb] =3D {request:request, id:id, =
postKey:postKey, control:control, timer:control._timer, time:(new =
Date()).getTime(), triggers:triggers};
if(rc !=3D=3D false)
{
cb.pis =3D new Array();
if(!rc || rc.nodeName)
cb.pis[0] =3D this._showPI(rc, control);
else for(i =3D 0; i < rc.length; i++)
cb.pis[i] =3D this._showPI(rc[i], control);
}
}
}
catch(e){}
this._wait =3D false;
}
=09
this._timeOut =3D function(key)
{
var cb, i =3D this._callBacks.length;
while(i-- > 0) if((cb =3D this._callBacks[i]) !=3D null)
if(cb.postKey =3D=3D key)
break;
if(i < 0)
return;
var j =3D cb.control;
if(j && j.onError)
j.onError(6);
j =3D cb.pis ? cb.pis.length : 0;
while(j-- > 0)
cb.pis[j].hide();
delete this._callBacks[i];
}
=09
this._showPI =3D function(rc, ctl)
{
var pis =3D this._indicators;
if(!pis)
pis =3D this._indicators =3D new Array();
var pi =3D null, j =3D pis.length, i =3D -1;
while(++i < j)
{
pi =3D pis[i];
if(!pi.visible)
break;
}
if(i =3D=3D j)
pi =3D pis[j] =3D new ig_progressIndicator();
if(ctl.fixPI)
ctl.fixPI(pi);
if(pi._rc)
rc =3D null;
pi.display(rc);
return pi;
}
=09
=09
=09
=09
=09
this.setHtml =3D function(txt, elem)
{
if(!txt || !elem)
return null;
var i =3D 0, css =3D '';
while(ig_shared.IsOpera)
{
var i0 =3D txt.indexOf('', i0);
i3 =3D txt.indexOf('', i0);
if(i1 > i2 || (i3 > i1 && i2 > i3))
i2 =3D i3;
if(i1 > i2)
break;
css +=3D txt.substring(i1 + 1, i2);
txt =3D txt.substring(0, i0) + txt.substring(i2 + 8);
i =3D i0;
}
if(css.length > 5)
this._setCss(null, css, elem.id + '_ig_css');
i =3D -3;
while((i =3D txt.indexOf('<&>3', i +=3D 3)) >=3D 0)
txt =3D txt.replace('<&>3', '<&>');
i =3D 0;
while(true)
{
var iLen =3D txt.length;
var i1 =3D txt.indexOf('', i2), i4 =3D =
txt.indexOf('', i2);
if(i3 > i4 && i4 > i)
i3 =3D i4;
var js =3D txt.substring(i, i2);
if(js.toLowerCase().indexOf('javascript') < 0)
return null;
var first =3D js.indexOf('IG_FIRST') > 0;
js =3D txt.substring(i2 + 1, i3);
txt =3D txt.substring(0, i) + txt.substring(i3 + 9);
if(js.length < 2)
return txt;
if(!this._scripts)
this._scripts =3D new Array();
i =3D this._scripts.length;
this._scripts[i] =3D js;
if(first)
{
while(i-- > 0)
this._scripts[i + 1] =3D this._scripts[i];
this._scripts[0] =3D js;
}
return txt;
}
=09
=09
=09
this._fireBeforeResponse =3D function(elem)
{
var el, ec, control, i =3D -1, lsnrs =3D ig_shared._cbListeners;
if(lsnrs) while(++i < lsnrs.length)
{
if((el =3D lsnrs[i].elemID) =3D=3D null)
continue;
if((el =3D ig_shared.getElement(el, this._form)) =3D=3D null)
continue;
try
{
control =3D eval(ec =3D lsnrs[i].evalCtl);
}
catch(ex)
{
continue;
}
while((el =3D el.parentNode) !=3D null)
if(el =3D=3D elem)
{
if(control.onCBBeforeResponse)
control.onCBBeforeResponse();
var cb =3D this._cb;
if(!cb || !control.onCBAfterResponse)
continue;
if(!cb.lsnrs)
cb.lsnrs =3D new Array();
cb.lsnrs[cb.lsnrs.length] =3D ec;
}
}
}
this._form =3D form;
=09
this._timeLimit =3D 20000;
=09
this._vs =3D ['__VIEWSTATE', null, '__EVENTVALIDATION', null];
=09
this._sep =3D '<&>0';
=09
this._sepLen =3D this._sep.length;
this._setPan =3D function(p, se)
{
this._panelToSubmit =3D p;
this._submitElem =3D se;
if(p) this._panTime =3D (new Date()).getTime();
else this._evtElem =3D null;
}
this._getPan =3D function()
{
var t =3D this._panTime;
if(!t || t + 500 < (new Date()).getTime())
this._submitElem =3D this._panelToSubmit =3D this._panTime =3D null;
return this._panelToSubmit;
}
=09
this._doPostBack =3D function(target, arg)
{
var me =3D ig_all._ig_cbManager, evt =3D window.event;
if(!me || me._wait)
return ig_cancelEvent(evt, 'submit');
var pan =3D me._findPanel(target), form =3D me._form;
if(!pan)
{
me._evtElem =3D null;
me._oldPostBack(target, arg);
return;
}
me._setPan(pan);
var e =3D form ? form.__EVENTTARGET : null;
if(e)
e.value =3D target;
e =3D form ? form.__EVENTARGUMENT : null;
if(e)
e.value =3D arg;
me._elemID =3D target;
me._onFormSubmit();
me._elemID =3D null;
ig_cancelEvent(evt, 'submit');
}
=09
this._isMatch =3D function(x, v)
{
if(x =3D=3D v)
return true;
var len =3D x ? x.length : 0;
if(len-- < 2)
return false;
var wc0 =3D x.charCodeAt(0) =3D=3D 42, wc1 =3D x.charCodeAt(len) =
=3D=3D 42;
if(wc1) x =3D x.substring(0, len);
if(wc0) x =3D x.substring(1);
var i =3D v.indexOf(x);
if(wc0)
{
if(wc1) return i >=3D 0;
i =3D v.lastIndexOf(x);
return i >=3D 0 && i + len =3D=3D v.length;
}
return wc1 && i =3D=3D 0;
}
this.__id =3D function(id){return id ? id.replace(/\:/g, =
'_').replace(/\$/g, '_') : id;}
=09
this._findPanel =3D function(id, e)
{
var j, i, pans =3D this._panels.length, form =3D this._form;
if(this._wait || pans < 1)
return null;
if(e)
id =3D e.id;
else if(!id)
return null;
var id0 =3D id;
id =3D this.__id(id);
if(!e && id)
if((e =3D ig_shared.getElement(id, form)) =3D=3D null)
if((e =3D ig_shared.getElement(id + "_Data", form)) =3D=3D null)
if((e =3D ig_shared.getElement(id + "_hidden", form)) =3D=3D null)
if((e =3D ig_shared.getElement(id.replace(/\_/g, 'x'), form)) !=3D =
null)
if(id0 !=3D id) if((e =3D ig_shared.getElement(id0, form)) =3D=3D =
null)
e =3D ig_shared.getElement(id0 + "_Data", form);
id0 =3D id;
while(e || id)
{
if(id || (e && e.id)) for(i =3D 0; i < pans; i++)
{
var p =3D this._panels[i];
if(e && p.elemID =3D=3D e.id)
{
if(p.post) for(j =3D 0; j < p.post.length; j++)
if(this._isMatch(p.post[j], id0))
return null;
return p;
}
if(p.ids && id) for(j =3D 0; j < p.ids.length; j++)
if(this._isMatch(p.ids[j], id0))
return p;
if(p.noResp && id) for(j =3D 0; j < p.noResp.length; j++)
if(this._isMatch(p.noResp[j], id0))
return p;
}
id =3D null;
if(e)
e =3D e.parentNode;
}
return null;
}
=09
this._onFormEvt =3D function(evt)
{
if(!evt)
if((evt =3D window.event) =3D=3D null)
return;
var elem =3D evt.target;
if(!elem)
if((elem =3D evt.srcElement) =3D=3D null)
elem =3D this;
var me =3D ig_all._ig_cbManager, type =3D elem.type, tag =3D =
elem.tagName, name =3D elem.name;
if(!me)
return;
me._evtElem =3D elem;
me._evtTime =3D (new Date()).getTime();
if(evt.type !=3D 'click' || elem.disabled)
return;
me._subID =3D me._submitElem =3D null;
var pan =3D me._findPanel(null, elem);
if(!pan)
return;
var val =3D null, x =3D evt.offsetX;
if(type =3D=3D 'image' && tag =3D=3D 'INPUT')
val =3D name + '.x=3D' + (x ? x : 1) + '&' + name + '.y=3D' + (x ? =
evt.offsetY : 1);
else if(type =3D=3D 'submit' && (tag =3D=3D 'BUTTON' || tag =3D=3D =
'INPUT'))
val =3D name + '=3D' + me._encode(elem.value);
else
return;
me._setPan(pan, ig_csom.isEmpty(me._subID =3D name) ? null : val);
}
=09
this._encode =3D function(val)
{
return (typeof encodeURIComponent =3D=3D 'function') ? =
encodeURIComponent(val) : escape(val);
}
=09
this._restore =3D function()
{
for(var i =3D 0; i < 3; i +=3D 2)
{
var val =3D this._vs[i + 1], e =3D ig_shared.getElement(this._vs[i], =
this._form);
if(e && val)
e.value =3D val;
}
}
=09
=09
this._onFormSubmit =3D function(evt, me)
{
var my =3D me && me._vs;
if(!my)
{
me =3D ig_all._ig_cbManager;
if(!evt)
evt =3D window.event;
}
if(me && me._wait)
me =3D null;
if(me && me._onsubmit && !my)
{
try
{
if(me._onsubmit() =3D=3D=3D false)
me =3D null;
}catch(ex)
{
me =3D null;
}
if(evt && evt.returnValue =3D=3D false && evt.type =3D=3D 'submit')
me =3D null;
}
if(!me)
return ig_cancelEvent(evt, 'submit');
var form =3D me._form, pan =3D me._getPan(), pp =3D me._panels;
if(!pan || !form || form.action !=3D form._ig_cb_act)
return true;
ig_cancelEvent(evt, 'submit');
=09
var p, rc =3D pan.rc, i =3D pp.length, id =3D pan.link;
if(id) while(i-- > 0)
if((p =3D pp[i]) !=3D null)
if(p.elemID =3D=3D id || p.id =3D=3D id)
pan =3D p;
if(pan)
me.addCallBack(pan.control, pan.id, rc ? rc : pan.rc);
me._setPan(null);
return false;
}
=09
this._responseEvt =3D function()
{
var me =3D ig_all._ig_cbManager;
if(!me || me._wait)
return;
for(var i =3D 0; i < me._callBacks.length; i++)
{
var j =3D -1, cb =3D me._callBacks[i];
if(cb && me._doResponse(cb))
{
if(cb.pis)
j =3D cb.pis.length;
while(j-- > 0)
cb.pis[j].hide();
me._cb =3D me._scripts =3D null;
delete me._callBacks[i];
if(!me._jsWait && cb.timer)
me._timer(cb.id, true);
}
}
}
=09
this._doCss =3D function(e, v)
{
e.cssText =3D v;
var e1, ss =3D document.styleSheets;
var i =3D ss.length;
while(i-- > 0)
{
e1 =3D ss[i];
if(e1 =3D=3D e)
return;
if(!e1.readOnly && !e1.disabled && e1.type =3D=3D 'text/css')
break;
}
if(i < 0)
return;
=09
}
=09
this._doResponse =3D function(cb)
{
var request =3D cb.request;
if(!request || request.readyState !=3D 4)
return false;
var txt =3D request.responseText, sep =3D this._sep, sepLen =3D =
this._sepLen;
if(!txt)
return (new Date()).getTime() - cb.time > this._timeLimit;
this.serverError =3D null;
var e, i, i0 =3D txt.indexOf(sep);
var iID =3D txt.indexOf(sep, i0 + sepLen);
var iKey =3D txt.indexOf(sep, iID + sepLen);
if(i0 < 0 || iID < 0 || iKey < 0)
return false;
this.triggers =3D cb.triggers;
this._jsWait =3D false;
var id =3D txt.substring(i0 + sepLen, iID), postKey =3D =
txt.substring(iID + sepLen, iKey);
this._error =3D 0;
if(postKey.indexOf('') =3D=3D 0)
{
i =3D this._panels.length;
this.serverError =3D txt.split(this._sep)[3];
while(i-- > 0)
{
e =3D this._panels[i].control;
if(e && e.onError)
e.onError(1);
}
var lsnrs =3D ig_shared._cbError;
i =3D lsnrs ? lsnrs.length : 0;
=09
while(i-- > 0)try
{
lsnrs[i](cb.control,cb.triggers,this.serverError);
}catch(e){}
this._restore();
try
{
this._submit(9);
}catch(e){}
return true;
}
if(id =3D=3D cb.id && postKey =3D=3D cb.postKey)
{
if(this._cb)
{
=
window.setTimeout("try{ig_all._ig_cbManager._responseEvt();}catch(i){}", =
1);
return this._killCB++ > 20;
}
this._cb =3D cb;
this._killCB =3D 0;
txt =3D txt.substring(iKey + sepLen);
var vals =3D txt.split(sep), old =3D this._vs;
for(i =3D 2; i < vals.length - 1; i +=3D 2)
{
var index =3D -1, v0 =3D vals[i], v1 =3D vals[i + 1];
if(v0 =3D=3D old[2])
index =3D 2;
else if(v0 =3D=3D old[0])
index =3D 0;
else if(v0 && v0.indexOf('<') !=3D 0)
continue;
vals[i] =3D vals[i + 1] =3D null;
if(index > -1)
{
e =3D ig_shared.getElement(v0, this._form);
if(e)
{
old[index + 1] =3D e.value;
e.value =3D v1;
}
}
else if(v0 =3D=3D ' |