 
 
 
 


 

// Copyright IBM Corp. 2002, 2007  All Rights Reserved.
var asynchContextMenuDebug=-1;var asynchContextMenuMouseOverIndicator="";var portletIdMap=new Object();function asynchContextMenuOnMouseClickHandler(uniqueID, isLTR, urlToMenuContents, menuBorderStyle, menuTableStyle, menuItemStyle, menuItemSelectedStyle, emptyMenuText, loadingImage)
{
var menuID="contextMenu_" + uniqueID;var menu=getContextMenu(menuID);if (menu == null)
{
asynchContextMenu_menuCurrentlyLoading=uniqueID;if (loadingImage)
{
setLoadingImage(loadingImage);}menu=createContextMenu(menuID, isLTR, null, menuBorderStyle, menuTableStyle, emptyMenuText);loadAsynchContextMenu(uniqueID, urlToMenuContents, isLTR, menuItemStyle, menuItemSelectedStyle, '', true);}else
{
if (asynchContextMenu_menuCurrentlyLoading == uniqueID)
{
return;}showContextMenu(menuID, document.getElementById(uniqueID));};};var asynchContextMenu_originalMenuImgElementSrc;function setLoadingImage(img)
{
asynchContextMenu_originalMenuImgElementSrc=document.getElementById(asynchContextMenu_menuCurrentlyLoading + "_img").src;document.getElementById(asynchContextMenu_menuCurrentlyLoading + "_img").src=img;};function clearLoadingImage()
{
document.getElementById(asynchContextMenu_menuCurrentlyLoading + "_img").src=asynchContextMenu_originalMenuImgElementSrc;};function loadAsynchContextMenu(uniqueID, url, isLTR, menuItemStyle, menuItemSelectedStyle, emptyMenuText, showMenu, onMenuAffordanceShowHandler)
{
asynchDebug('ENTRY loadAsynchContextMenu p1=' + uniqueID + '; p2=' + url + '; p3=' + isLTR + '; p4=' + isLTR);var menuID="contextMenu_" + uniqueID;var dialogTag=null;var ID=uniqueID + '_DIV';if (document.getElementById(ID) != null)
{
closeMenu(ID);return;}dialogTag=document.createElement("DIV");dialogTag.style.position="absolute";if (asynchContextMenuDebug < 2)
{
dialogTag.style.left="0px";dialogTag.style.top="-100px";dialogTag.style.visibility="hidden";}if (asynchContextMenuDebug >= 2 || asynchContextMenuDebug == 999)
{
dialogTag.style.left="100px";dialogTag.style.top="100px";dialogTag.style.visibility="visible";}dialogTag.id=ID;var styleString='null';if (menuItemStyle != null)
{
styleString="'" + menuItemStyle + "'";}if (menuItemSelectedStyle != null)
{
styleString=styleString + ", '" + menuItemSelectedStyle + "'";}else
{
styleString=styleString + ", null";}dialogTag.innerHTML='<iframe id="' + menuID + '" name="' + ID + '_IFRAME" src="' + url + '" onload="buildAndDisplayMenu(this.id, this.name, ' + styleString + ', ' + showMenu + ' , \''+ onMenuAffordanceShowHandler + '\'); return false;" ></iframe>';document.body.appendChild(dialogTag);asynchDebug('EXIT createDynamicElements');};function buildAndDisplayMenu(menuID, iframeID, menuItemStyle, menuItemSelectedStyle, showMenu, onMenuAffordanceShowHandler)
{
asynchDebug('ENTRY buildAndDisplayMenu p1=' + menuID + '; p2=' + iframeID + '; p3=' + showMenu + '; p4=' + onMenuAffordanceShowHandler);var menu=getContextMenu(menuID);clearLoadingImage();asynchContextMenu_menuCurrentlyLoading=null;if (menu == null)
{
return false;}index=iframeID.indexOf("_IFRAME");var divID=iframeID.substring(0, index);index2=divID.indexOf("_DIV");var uniqueID=divID.substring(0, index2);asynchDebug('divID=' + divID);asynchDebug('uniqueID=' + uniqueID);var frame, c=-1, done=false;while ((c + 1) < window.frames.length && !done)
{
c=c+1;try
{
done=(window.frames[c].name == iframeID);}catch (e)
{
};};if (window.frames[c].getMenuContents)
{
contents=window.frames[c].getMenuContents();}else
{
return false;};for (i=0; i < contents.length; i=i+3)
{
asynchDebug2('Adding item: ' + contents[i+1]);asynchDebug2('URL: ' + contents[i]);if (contents[i])
{
asynchDebug2('url length: ' + contents[i].length);}asynchDebug2('icon: ' + contents[i+2]);if (contents[i] && contents[i].length != 0)
{
var icon=null;if (contents[i+2] && contents[i+2].length != 0)
{
icon=contents[i+2];}menu.add(new UilMenuItem(contents[i+1], true, '', contents[i], null, icon, null, menuItemStyle, menuItemSelectedStyle));}};var target=document.getElementById(uniqueID);asynchDebug('EXIT buildAndDisplayMenu');if (showMenu == null || showMenu == true)
{
return showContextMenu(menuID, target);}};function createDynamicElements(uniqueID, url, menuID, menuItemStyle, menuItemSelectedStyle)
{
asynchDebug('ENTRY createDynamicElements p1=' + uniqueID + '; p2=' + url + '; p3=' + menuID);var dialogTag=null;var ID=uniqueID + '_DIV';if (document.getElementById(ID) != null)
{
closeMenu(ID);return;}dialogTag=document.createElement("DIV");dialogTag.style.position="absolute";if (asynchContextMenuDebug < 2)
{
dialogTag.style.left="0px";dialogTag.style.top="-100px";dialogTag.style.visibility="hidden";}if (asynchContextMenuDebug >= 2 || asynchContextMenuDebug == 999)
{
dialogTag.style.left="100px";dialogTag.style.top="100px";dialogTag.style.visibility="visible";}dialogTag.id=ID;var styleString='null, null';if (menuItemStyle != null)
{
styleString="'" + menuItemStyle + "'";}if (menuItemSelectedStyle != null)
{
styleString=styleString + ", '" + menuItemSelectedStyle + "'";}else
{
styleString=styleString + ", null";}dialogTag.innerHTML='<iframe id="' + menuID + '" name="' + ID + '_IFRAME" src="' + url + '" onload="buildAndDisplayMenu(this.id, this.name, ' + styleString + '); return false;" ></iframe>';document.body.appendChild(dialogTag);asynchDebug('EXIT createDynamicElements');};function asynchDebug(str)
{
if (asynchContextMenuDebug >= 1 && asynchContextMenuDebug != 999)
{
alert(str);}};function asynchDebug2(str)
{
if (asynchContextMenuDebug >= 0 && asynchContextMenuDebug != 999)
{
alert(str) ;}};function asynchDoFormSubmit(url){
var formElem=document.createElement("form");document.body.appendChild(formElem);formElem.setAttribute("method", "GET");var delimLocation=url.indexOf("?");if (delimLocation >= 0) {
var params=url.substring(delimLocation + 1, url.length);url=url.substring(0, delimLocation);var paramArray=params.split("&");for (var i=0; i < paramArray.length; i++) {
var name=paramArray[i].substring(0, paramArray[i].indexOf("="));var value=paramArray[i].substring(paramArray[i].indexOf("=") + 1, paramArray[i].length);var inputElem=document.createElement("input");inputElem.setAttribute("type", "hidden");inputElem.setAttribute("name", name);inputElem.setAttribute("value", value);formElem.appendChild(inputElem);};}formElem.setAttribute("action", url);formElem.submit();};var asynchContextMenu_menuCurrentlyLoading=null;function menuMouseOver(id, selectedImage)
{
if (asynchContextMenu_menuCurrentlyLoading != null)
return;portletIdMap[id]='menu_'+id+'_img';showAffordance(id, selectedImage);};function menuMouseOut(id, disabledImage)
{
if (asynchContextMenu_menuCurrentlyLoading != null)
return;hideAffordance(id , disabledImage);portletIdMap[id]="";};function showAffordance(id, selectedImage)
{
document.getElementById('menu_'+id).style.cursor='pointer';document.getElementById('menu_'+id+'_img').src=selectedImage;};function hideAffordance(id, disabledImage)
{
document.getElementById('menu_'+id).style.cursor='default';document.getElementById('menu_'+id+'_img').src=disabledImage;};function menuMouseOverThinSkin(id, selectedImage, minimized)
{
if (asynchContextMenu_menuCurrentlyLoading != null)
return;portletIdMap[id]='menu_'+id+'_img';showAffordanceThinSkin(id, selectedImage, minimized);};function menuMouseOutThinSkin(id, disabledImage, minimized)
{
if (asynchContextMenu_menuCurrentlyLoading != null)
return;hideAffordanceThinSkin(id , disabledImage, minimized);portletIdMap[id]="";};function showAffordanceThinSkin(id, selectedImage, minimized)
{
document.getElementById('menu_'+id).style.cursor='pointer';document.getElementById('portletTitleBar_'+id).className='wpsThinSkinContainerBar wpsThinSkinContainerBarBorder';document.getElementById('title_'+id).className='wpsThinSkinDragZoneContainer wpsThinSkinVisible';document.getElementById('menu_'+id+'_img').src=selectedImage;};function hideAffordanceThinSkin(id, disabledImage, minimized)
{
document.getElementById('menu_'+id).style.cursor='default';if (minimized == null || minimized == false){
document.getElementById('portletTitleBar_'+id).className='wpsThinSkinContainerBar';}document.getElementById('title_'+id).className='wpsThinSkinDragZoneContainer wpsThinSkinInvisible';document.getElementById('menu_'+id+'_img').src=disabledImage;};var onmousedownold_;function closeMenu(id, disabledImage)
{
hideCurrentContextMenu();if (portletIdMap[id] == "")
{
hideAffordance(id, disabledImage);}document.onmousedown=onmousedownold_;};function showPortletMenu(id, portletNoActionsText, isRTL, menuPortletURL, disabledImage, loadingImage)
{
if (portletIdMap[id].indexOf(id) < 0)
return;asynchContextMenuOnMouseClickHandler('menu_'+id,!isRTL,menuPortletURL, null, null, null, null, portletNoActionsText, loadingImage);onmousedownold_=document.onmousedown;document.onmousedown=closeMenu;};function accessibleShowMenu(event , id , portletNoActionsText, isRTL, menuPortletURL, loadingImage)
{
if (event.which == 13)
{
asynchContextMenuOnMouseClickHandler('menu_'+id,!isRTL,menuPortletURL, null, null, null, null, portletNoActionsText, loadingImage);}else
{
return true;};};
// Copyright IBM Corp. 2002, 2007  All Rights Reserved.
BrowserDimensions.prototype=new Object();BrowserDimensions.prototype.constructor=BrowserDimensions;BrowserDimensions.superclass=null;function BrowserDimensions(){
this.body=document.body;if (this.isStrictDoctype() && !this.isSafari()) {
this.body=document.documentElement;}};BrowserDimensions.prototype.getScrollFromLeft=function(){
return this.body.scrollLeft ;};BrowserDimensions.prototype.getScrollFromTop=function(){
return this.body.scrollTop ;};BrowserDimensions.prototype.getViewableAreaWidth=function(){
return this.body.clientWidth ;};BrowserDimensions.prototype.getViewableAreaHeight=function(){
return this.body.clientHeight ;};BrowserDimensions.prototype.getHTMLElementWidth=function(){
return this.body.scrollWidth ;};BrowserDimensions.prototype.getHTMLElementHeight=function(){
return this.body.scrollHeight ;};BrowserDimensions.prototype.isStrictDoctype=function(){
return (document.compatMode && document.compatMode != "BackCompat");};BrowserDimensions.prototype.isSafari=function(){
return (navigator.userAgent.toLowerCase().indexOf("safari") >= 0);};
// Copyright IBM Corp. 2002, 2007  All Rights Reserved.
function ElementJavascriptEventController()
{
this.elements=new Array();this.arrayPosition=0;this.enableAll=enableRegisteredElementsInternal;this.disableAll=disableRegisteredElementsInternal;this.register=registerElementInternal;this.enable=enableRegisteredElementInternal;this.disable=disableRegisteredElementInternal;function enableRegisteredElementsInternal()
{
for (c=0; c < this.arrayPosition; c=c+1)
{
};};function enableRegisteredElementInternal(id)
{
for (c=0; c < this.arrayPosition; c=c+1)
{
if (this.elements[c].ID == id)
{
this.elements[c].enable();}};};function disableRegisteredElementsInternal()
{
for (c=0; c < this.arrayPosition; c=c+1)
{
this.elements[c].disable();};};function disableRegisteredElementInternal(id)
{
for (c=0; c < this.arrayPosition; c=c+1)
{
if (this.elements[c].ID == id)
{
this.elements[c].disable();}};};function registerElementInternal(HTMLElementID, doNotDisable, optionalOnEnableJavascriptAction)
{
this.elements[this.arrayPosition]=new RegisteredElement(HTMLElementID, doNotDisable, optionalOnEnableJavascriptAction);this.arrayPosition=this.arrayPosition + 1;};};
function RegisteredElement(ElementID, doNotDisable, optionalOnEnableJavascriptAction){};

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('h k=7.1P?1:0;h w=7.2L?1:0;h x=7.e&&!7.1P;h o=0;h u=15;2(k)u=12;h N=1;h D=1;h X=2y;h W;h p=1G 2z();h U=1E();h l=Q;h 1H=-1;f 1I(L){8=1G 21(\'M\');8.v(o);8.i.1t=\'T\';8.j(8.H()-o-1);2(w||x)16="G.1R";9 2(k)16="7.1r.1S";2(w||x)X=8.i.1K;9 2(k)X=8.i.1V;2(k){G.1m=V;G.1W=V}9{G.1m=V()}2(L)8.i.1o="T";9 8.i.1o="1Y";2(U!=r){1d(U,Q)}B};f 2e(L){3=1G 22(\'M\');2(k){3.v(o);3.i.1t=\'T\';3.j(0)}9{3.j(o-3.C()-4)};2(w||x)16="G.1R";9 2(k)16="7.1r.1S";2(w||x)X=3.i.1K;9 2(k)X=3.i.1V;2(k){G.1m=17;G.1W=1J}9 G.1m=17();2(L)3.i.1o="T";9 3.i.1o="1Y";2(U!=r){1d(U,Q)}};f 21(m){6.1q=7.e(m);2(w)6.i=z(\'7.\'+m);9 2(x)6.i=7.e(m).R;9 2(k)6.i=z(m+\'.R\');l=1;6.n=0;2(w)6.g=6.i.7.g;9 2(x)6.g=7.e(m).O;9 2(k)6.g=z(m+\'.O\');6.v=24;6.C=2a;6.t=1C;6.H=1A;6.j=1B;6.m=m+"23";z(6.m+"=6")};f 22(m){6.1q=7.e(m);2(w)6.i=z(\'7.\'+m);9 2(x)6.i=7.e(m).R;9 2(k)6.i=z(m+\'.R\');l=1;6.n=0;2(w)6.g=6.i.7.g;9 2(x)6.g=7.e(m).O;9 2(k)6.g=z(m+\'.O\');6.v=25;6.C=2b;6.t=1C;6.H=1A;6.j=1B;6.m=m+"23";z(6.m+"=6")};f 1A(){B p.1a()};f 1B(F){6.i.t=F+"13"};f 24(F){6.i.g=F+"13";2(26.27.19("28")!=-1){h 1p=7.e(\'1b\');1p.R.g=(F-o)+"13"}};f 25(F){6.i.g=F+"13";2(26.27.19("28")!=-1){h 1p=7.e(\'1b\');1p.R.g=(F-o)+"13"}};f 2a(){2(w)B z(6.i.7.g);9 2(x||k)B z(6.1q.O)};f 2b(){h g;2(w)g=z(6.i.7.g);9 2(x||k)g=z(6.1q.O);B g};f 1C(){2(w||x)1F=2J(6.i.t);9 2(k)1F=z(6.i.2K);B 1F};f 1v(){7.e(\'M\').10="1e";2(8.t()-u>8.H()+p.A()-8.g){h J=8.C()+u;8.v(J);8.j(8.t()-u);D=I("1v()",N);8.n=1}9{8.j(8.H()+p.A()-8.g);8.v(8.g);8.n=0;l=0}};f 1l(){7.e(\'M\').10="1e";2(k){2(3.C()+u<3.g){h J=3.C()+u;3.v(J);D=I("1l()",N);3.n=1}9{3.j(3.t());3.v(3.g);3.n=0;l=0}}9{2(3.t()+u<p.A()){3.n=1;3.j(3.t()+u);D=I("1l()",N)}9{3.j(p.A());3.n=0;l=0}}};f 1w(){2(8.t()+u<8.H()+p.A()-o){8.n=1;h J=8.C()-u;8.v(J);8.j(8.t()+u);D=I("1w()",N)}9{8.v(o);8.j(8.H()+p.A()-o);8.n=0;l=1}};f 1h(){2(k){2(3.C()-u>o){h J=3.C()-u;3.v(J);D=I("1h()",N);3.n=1}9{3.v(o);3.j(3.t());3.n=0;l=1}}9{2(3.t()>-3.g+o){3.n=1;3.j(3.t()-u);D=I("1h()",N)}9{3.j(o-3.C()-4);3.n=0;l=1}}};f V(){2(!8.n){2(l==1){8.j(p.A()+p.1a()-o)}9{8.j(p.A()+p.1a()-8.g)}}2(w||x)I(\'V()\',20)};f 17(){2(!3.n){2(l==1){2(k){2(W==r){W=p.A()}3.v(o);3.i.1t=\'T\';3.j(p.A()-W)}9{3.j(o+p.A()-3.C()-4)}}}2(w||x)I(\'17()\',20)};f 1J(){2(k){W=p.A();-p.1a()}};f 1Q(K){2(6.8!=r){2(l&&!K){1g(D);1v()}2(l&&K){8.j(8.H()+7.1r.1L-8.g);8.v(8.g);8.n=0;l=0;7.e(\'M\').10="1e"}}2(6.3!=r){2(l&&!K){1g(D);1l()}2(l&&K){2(k){3.j(3.t());3.v(3.g);3.n=0;l=0}9{3.j(7.1r.1L);3.n=0;l=0};7.e(\'M\').10="1e"}}};f 1O(){2(6.8!=r){2(!l){1g(D);1w()}}2(6.3!=r){2(!l){1g(D);1h()}}7.e(\'M\').10="2u"};f 1d(d,K){2(b[d]!=r){h 1N=d;h s=1T();2(1N==s){2(b[d].S==Q){b[d].S=1f;7.e("y"+s).E=b[s].1k;7.e("y"+s).Z=b[s].P;7.e("y"+s).14=b[s].P}9{b[d].S=Q;7.e("y"+d).E=b[d].1z;7.e("y"+d).Z=b[d].1n;7.e("y"+d).14=b[d].1n};1Z();1O()}9{2(s>-1){b[s].S=1f;7.e("y"+s).E=b[s].1k;7.e("y"+s).Z=b[s].P;7.e("y"+s).14=b[s].P}b[d].S=Q;7.e("y"+d).E=b[d].1z;7.e("y"+d).Z=b[d].1n;7.e("y"+d).14=b[d].1n;1U(d);7.e("1b").E=b[d].1i};2(l){1X(d);1Q(K)}}};f 1T(){B 1H};f 1U(d){1H=d};f 1X(d){7.1j=\'1c=\'+d+\'; 29=/;\'};f 1Z(){7.1j=\'1c=r; 2B=2C, 1 2D 2E 11:11:11 2F; 29=/;\'};f 2H(2d){2(6.o!=r){h 1s=7.e("2I");2(1s!=r){h L=1f;2(2d){1s.2f=2e(L)}9{1s.2f=1I(L)}}}};f 2h(b){2i(q=0;q<b.1u;q++){2(b[q].1i!=""&&b[q].1i!=r){7.1x(\'<a 2k="5" 2m="2n" 1M="2c\'+q+\'" 2o="2p:2q(0);" 2r="1d(\'+q+\'); B 1f;" >\');7.1x(\'<2s E="\'+b[q].1k+\'" 1M="y\'+q+\'" 14="\'+b[q].P+\'" 2t="0" Z="\'+b[q].P+\'" 2w="6.E=b[\'+q+\'].2x;" 2A="2 (b[\'+q+\'].S) {6.E=b[\'+q+\'].1z;} 9 6.E=b[\'+q+\'].1k;" />\');7.1x(\'</a>\');2(1D){1D.2g("2c"+q);1D.2g("y"+q)}}}};f 2l(){h d=1E();2(d!=r&&b[d]!=r){7.e("1b").E=b[d].1i}};f 1E(){2(7.1j.19("1c=")>=0){h Y=7.1j.2G(";");h c=0;2j(c<Y.1u&&(Y[c].19("1c=")==-1)){c=c+1};1y=Y[c].2v(18,Y[c].1u);2(1y!="r"){B 1y}9{B r}}9{B r}};',62,172,'||if|wpsFLY_FlyoutLeft|||this|document|wpsFLY_Flyout|else||flyOut||index|getElementById|function|width|var|css|setLeft|wpsFLY_isIE|wpsFLY_state|obj|go|wpsFLY_minFlyout|wpsFLY_browserDimensions|arrayIndex|null|prevIndex|left|wpsFLY_move|setWidth|wpsFLY_isNetscape|wpsFLY_isMoz|toolBarIcon|eval|getScrollFromLeft|return|getWidth|wpsFLY_timeoutID|src|value|window|pageWidth|setTimeout|newwidth|skipSlide|showHidden|wpsFLYflyout|wpsFLY_scrollSpeed|offsetWidth|altText|true|style|active|hidden|wpsFLY_initFlyoutExpanded|wpsFLY_internalScroll|wpsFLY_leftResize|wpsFLY_fromTop|cookies|alt|className|||px|title||scrolled|wpsFLY_internalScrollLeft||indexOf|getViewableAreaWidth|wpsFLY_flyoutIFrame|portalOpenFlyout|wpsFLY_toggleFlyout|portalFlyoutExpanded|false|clearTimeout|wpsFLY_internalMoveInLeft|url|cookie|icon|wpsFLY_internalMoveOutLeft|onscroll|activeAltText|visibility|operaIframe|origObject|body|bodyObj|overflow|length|wpsFLY_internalMoveOut|wpsFLY_internalMoveIn|write|initCookieValue|activeIcon|wpsFLY_internalGetPageWidth|wpsFLY_internalSetLeft|wpsFLY_internalGetLeft|javascriptEventController|wpsFLY_getInitialFlyoutState|leftfunc|new|wpsFLY_currIndex|wpsFLY_initFlyout|wpsFLY_internalResizeLeft|top|scrollLeft|id|checkIndex|wpsFLY_moveInFlyout|all|wpsFLY_moveOutFlyout|pageYOffset|scrollTop|wpsFLY_getCurrIndex|wpsFLY_setCurrIndex|pixelTop|onresize|wpsFLY_setStateCookie|visible|wpsFLY_clearStateCookie||wpsFLY_makeFlyout|wpsFLY_makeFlyoutLeft|Object|wpsFLY_internalSetWidth|wpsFLY_internalSetWidthLeft|navigator|userAgent|Opera|path|wpsFLY_internalGetWidth|wpsFLY_internalGetWidthLeft|toolBarLink|isRTL|wpsFLY_initFlyoutLeft|onload|register|wpsFLY_markupLoop|for|while|tabIndex|wpsFLY_checkForEmptyExpandedFlyout|class|toolbarLink|href|javascript|void|onclick|img|border|portalFlyoutCollapsed|substring|onmouseover|hoverIcon|100|BrowserDimensions|onmouseout|expires|Wed|Jan|2003|UTC|split|wpsFLY_onloadShow|FLYParent|parseInt|pixelLeft|layers'.split('|'),0,{}))




/*********************************************************************************
  dw_cookies.js - cookie functions for www.dyn-web.com
  Recycled from various sources 
**********************************************************************************/

// Modified from Bill Dortch's Cookie Functions (hidaho.com) 
// (found in JavaScript Bible)
function setCookie(name,value,days,path,domain,secure) {
  var expires, date;
  if (typeof days == "number") {
    date = new Date();
    date.setTime( date.getTime() + (days*24*60*60*1000) );
		expires = date.toGMTString();
  }
  document.cookie = name + "=" + escape(value) +
    ((expires) ? "; expires=" + expires : "") +
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    ((secure) ? "; secure" : "");
}

// Modified from Jesse Chisholm or Scott Andrew Lepera ?
// (found at both www.dansteinman.com/dynapi/ and www.scottandrew.com/junkyard/js/)
function getCookie(name) {
  var nameq = name + "=";
  var c_ar = document.cookie.split(';');
  for (var i=0; i<c_ar.length; i++) {
    var c = c_ar[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameq) == 0) return unescape( c.substring(nameq.length, c.length) );
  }
  return null;
}

// from Bill Dortch's Cookie Functions (hidaho.com) 
function deleteCookie(name,path,domain) {
  if (getCookie(name)) {
    document.cookie = name + "=" +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      "; expires=Thu, 01-Jan-70 00:00:01 GMT";
  }
}


/*
    dw_sizerdx.js version date: Feb 2006
    requires dw_cooks.js
    
    Feb 2006 Revisions: add queryName property (fix major oops for PHP compatibility)
    all global modifier to trim method re (another oops fixed)
    
    Mar 2005 Revisions: added setDefaults method, 
    set method now accepts array of selectors,
    reset fn now sets adjustList el's font-sizes to empty string,
    fixed bugs in dw_getElementsBySelector fn
*/

/*************************************************************************
  This code is from Dynamic Web Coding at dyn-web.com
  Copyright 2004-6 by Sharon Paine 
  See Terms of Use at www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/
function Browser()
{
   var ua = navigator.userAgent;
//alert(ua);
   this.isOpera = function()
   {
      return /Opera/.test(ua);
   }

   this.isSafari = function()
   {
      return /Safari/.test(ua);
   }

   this.isGecko = function()
   {
      return navigator.product == "Gecko" &&
	     ! ( this.isOpera() || this.isSafari() );
   }

   this.isIEWin = function()
   {
      return /MSIE/.test(ua) && /Win/.test(ua);
   }

   this.isIEMac = function()
   {
      return  /MSIE/.test(ua) && /Mac/.test(ua);
   }

   this.isIE = function()
   {
      return (this.isIEMac() || this.isIEWin());
   }


   this.getVersion = function()
   {
      if( this.isIEWin() || this.isIEMac() )
      {
         return Number(ua.match(/MSIE ([0-9.]+)/)[1]);
      }
      else if( this.isSafari() )
      {
         return Number(ua.match(/[0-9.]+$/));
      }
      else if( this.isGecko() )
      {
         var n = ua.match(/rv:([0-9.]+)/)[1];

         var ar = n.split(".");

         var s = ar[0] + ".";

         for(var i = 1; i < ar.length; ++i)
         {
            s += ("0" + ar[i]).match(/.{2}$/)[0];
         }

         return Number(s);
      }
      else if( this.isOpera() )
      {
         return Number(ua.match(/Opera.([0-9.]+)/)[1]);
      }
      else
      {
         return null;
      }
   }
}

browserType = null;
if (browserType == null) browserType = new Browser();

var dw_fontSizerDX = {
    defaultClass:   "bodyArabic",
    defaultTag:     "DIV", 
    sizeUnit:       "px",
    defaultSize:    14,
    maxSize:        24,
    minSize:        10,
    queryName:      "dw_fsz",   // name to check query string for when passing size in URL
    queryNum:       true,       // check query string for number only (eg. index.html?18 )
    adjustList:     [],         // set method populates



    getDefaultSize: function() {
	try {

		
		list = dw_getElementsByClassName(this.defaultClass, this.defaultTag);
		var fs  = browserType.isIE()? list[0].currentstyle.fontSize : getComputedStyle(list[0], null).fontSize;
		fs = parseInt(fs.split('px')[0]);
		
		//alert("Hertzel Test: "+fs);
		return fs;
		//list = dw_getElementsByClassName(this.defaultClass, this.defaultTag);
		//alert(list[0].style.fontSize);
		//return list[0].style.fontSize;     	
	}
	catch(e){
		//alert("Hertzel Test: "+e);
		return 16;
	}	
    },
    setDefaults: function(unit, dflt, mn, mx, sels) {
        this.sizeUnit = unit;
        this.defaultSize = dflt;
        this.maxSize = mx;
        this.minSize = mn;
        if (sels) this.set(dflt, mn, mx, sels);
    },

    set: function (dflt, mn, mx, sels) { 
        var ln = this.adjustList.length;        
        for (var i=0; sels[i]; i++) {
            this.adjustList[ln+i] = [];
            this.adjustList[ln+i]["sel"]  = sels[i];
            this.adjustList[ln+i]["dflt"] = dflt;
            //////this.adjustList[ln+i]["dflt"] = getdflt;
            this.adjustList[ln+i]["min"]   = mn || this.minSize;
            this.adjustList[ln+i]["max"]   = mx || this.maxSize;
            // hold ratio of this selector's default size to this.defaultSize for calcs in adjust fn 
            this.adjustList[ln+i]["ratio"] = this.adjustList[ln+i]["dflt"] / this.defaultSize;
        }
    },

    init: function() {
    	this.defaultSize = this.getDefaultSize();
        if ( !document.getElementById || !document.getElementsByTagName ) return;
        var size, sizerEl, i;
        // check query string and cookie for fontSize
        // check size (in case default unit changed or size passed in url out of range)
        size = getValueFromQueryString( this.queryName, this.queryNum );
        if ( isNaN( parseFloat(size) ) || size > this.maxSize || size < this.minSize ) {
            size = getCookie("fontSize");
            if ( isNaN( parseFloat(size) ) || size > this.maxSize || size < this.minSize ) {
                size = this.defaultSize;
            }
        } 
        this.curSize = this.defaultSize;  // create curSize property to use in calculations 
        sizerEl = document.getElementById('sizer');
        if (sizerEl) sizerEl.style.display = "block";
        // if neither set nor setDefaults populates adjustList, apply sizes to body and td's
        if (this.adjustList.length == 0) {
            this.setDefaults( this.sizeUnit, this.defaultSize, this.minSize, this.maxSize, ['body', 'td'] );
        }
        if ( size != this.defaultSize ) this.adjust( size - this.defaultSize );
    },

    adjustold: function(n) {
        if ( !this.curSize ) return; 
        var alist, size, list, i, j;
        // check against max/minSize
        if ( n > 0 ) {
            if ( this.curSize + n > this.maxSize ) n = this.maxSize - this.curSize;
        } else if ( n < 0 ) {
            if ( this.curSize + n < this.minSize ) n = this.minSize - this.curSize;
        }
        if ( n == 0 ) return;
        this.curSize += n;
        // loop through adjustList, calculating size, checking max/min
        alist = this.adjustList;
        for (i=0; alist[i]; i++) {
            size = this.curSize * alist[i]['ratio']; // maintain proportion 
            size = Math.max(alist[i]['min'], size); size = Math.min(alist[i]['max'], size);
            list = dw_getElementsBySelector( alist[i]['sel'] );
            for (j=0; list[j]; j++) { list[j].style.fontSize = size + this.sizeUnit; }
        }
        setCookie( "fontSize", this.curSize, 180, "/" );
    },

    resetold: function() {
        if ( !this.curSize ) return; 
        var alist = this.adjustList, list, i, j;
        for (i=0; alist[i]; i++) {
            list = dw_getElementsBySelector( alist[i]['sel'] );
            for (j=0; list[j]; j++) { 
                // Reset adjustList elements to their default sizes
                //list[j].style.fontSize = alist[i]['dflt'] + this.sizeUnit;
                list[j].style.fontSize = '';  // restores original font size
            } 
        }
        this.curSize = this.defaultSize;
        deleteCookie("fontSize", "/");
    }

};

// resource: simon.incutio.com/archive/2003/03/25/getElementsBySelector
function dw_getElementsBySelector(selector) {
    if (!document.getElementsByTagName) return [];
    var nodeList = [document], tokens, bits, list, col, els, i, j, k;
    selector = selector.normalize();
    tokens = selector.split(' ');
    for (i=0; tokens[i]; i++) {
        if ( tokens[i].indexOf('#') != -1 ) {  // id
            bits = tokens[i].split('#'); 
            var el = document.getElementById( bits[1] );
            if (!el) return []; 
            if ( bits[0] ) {  // check tag
                if ( el.tagName.toLowerCase() != bits[0].toLowerCase() ) return [];
            }
            for (j=0; nodeList[j]; j++) {  // check containment
                if ( nodeList[j] == document || dw_contained(el, nodeList[j]) ) 
                    nodeList = [el];
                else return [];
            }
        } else if ( tokens[i].indexOf('.') != -1 ) {  // class
            bits = tokens[i].split('.'); col = [];
            for (j=0; nodeList[j]; j++) {
                els = dw_getElementsByClassName( bits[1], bits[0], nodeList[j] );
                for (k=0; els[k]; k++) { col[col.length] = els[k]; }
            }
            nodeList = [];
            for (j=0; col[j]; j++) { nodeList.push(col[j]); }
        } else {  // element 
            els = []; 
            for (j = 0; nodeList[j]; j++) {
                list = nodeList[j].getElementsByTagName(tokens[i]);
                for (k = 0; list[k]; k++) { els.push(list[k]); }
            }
            nodeList = els;
        }
    }
    return nodeList;
};

function dw_getElementsByClassName(sClass, sTag, oCont) {
    var result = [], list, i;
    var re = new RegExp("\\b" + sClass + "\\b", "i");
    oCont = oCont? oCont: document;
    if ( document.getElementsByTagName ) {
        if ( !sTag || sTag == "*" ) {
            list = oCont.all? oCont.all: oCont.getElementsByTagName("*");
        } else {
            list = oCont.getElementsByTagName(sTag);
        }
        for (i=0; list[i]; i++) 
            if ( re.test( list[i].className ) ) result.push( list[i] );
    }
    return result;
};

// 2nd arg: return whole query string if varName not found?
// (compatible with previous version, which just checked for number after ?)
function getValueFromQueryString(varName, bReturn) {
    var val = "";
    if (window.location.search) {
        var qStr = window.location.search.slice(1);
        var ar = qStr.split("&");
        var get = [], ar2;
        // portion before = becomes index (like $_GET)
        for (var i=0; ar[i]; i++) {
            if ( ar[i].indexOf("=") != -1 ) {
                ar2 = ar[i].split("=");
                get[ ar2[0] ] = ar2[1];
            }
        }
        val = get[varName];
        // if varName is not passed to this function or not found, return entire query string ?      
        if ( !val && bReturn ) {
            val = qStr;
        }
    }
    return val;
};

// returns true of oNode is contained by oCont (container)
function dw_contained(oNode, oCont) {
    if (!oNode) return; // in case alt-tab away while hovering (prevent error)
    while ( oNode = oNode.parentNode ) if ( oNode == oCont ) return true;
    return false;
};

if (!Array.prototype.push) {  // ie5.0
	Array.prototype.push =  function() {
		for (var i=0; arguments[i]; i++) this[this.length] = arguments[i];
		return this[this.length-1]; // return last value appended
	}
};

String.prototype.normalize = function() {
	var re = /\s\s+/g;
	return this.trim().replace(re, " ");
};

String.prototype.trim = function() {
	var re = /^\s+|\s+$/g;
	return this.replace(re, "");
};


 

 




  
  	
  
        
 

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('7 1r={1n:"19",1a:"1b",p:"17",o:1c,n:4,P:"1d",V:1f,1g:[],g:["10"],f:1,l:1,w:1i 1j(),a:[],e:[],s:0.1B,r:"1k",1l:9(M,N,Y,X,g){2.p=M;2.o=Y;2.n=N;3(g)2.g=g;2.s=X},1m:9(){7 c,v,i;2.e=1t.1o()?z.R[0].1p:z.R[0].1q;7 i=-1;7 k=-1;B(7 j=0;j<2.e.U;j++){3(2.e[j].b.8!=""){2.a[++i]=2.e[j];2.w[++k]=2.e[j].b.8}}2.e=[];c=E(O(2.P,2.V));3(L(c)){c=E(1s(2.r));3(L(c)){c=0}}3(c!=0)2.q(c);v=z.1v(\'1w\');3(v)v.b.1z="1C"},1D:9(){2.q(1)},1F:9(){2.q(\'+\')},1G:9(){2.q(\'-\')},q:9(d){2.F(d);3(d==1)1H(2.r,"/");6 13(2.r,2.f,15,"/")},F:9(d){3(d=="+")2.f=2.l+2.s;6 3(d=="-")2.f=2.l-2.s;6 2.f=d;3(d==1)h=1;6 h=2.f/2.l;2.I(h);2.l=2.f},I:9(h){7 11=2.g.18();B(7 i=0;i<2.a.U;i++){3(2.g[0]==\'10\'||11.H(a[i].1h)!=-1){3(h==1){2.a[i].b.8=2.w[i]}6{7 8=E(2.12(2.a[i].b.8))*h;3(8>2.n&&8<2.o)2.a[i].b.8=8+2.p;6 3(8<2.n)2.a[i].b.8=2.n+2.p;6 3(8>2.o)2.a[i].b.8=2.o+2.p}}}},12:9(5){3(5=="1u")5="1x";6 3(5=="J-y")5="1A";6 3(5=="x-y")5="1E";6 3(5=="y")5="1I";6 3(5=="C")5="14";6 3(5=="x-C")5="16";6 3(5=="J-C")5="1e";K 5}};9 O(G,S){7 m="";3(Q.T.W){7 A=Q.T.W.1y(1);7 t=A.Z("&");7 D=[],u;B(7 i=0;t[i];i++){3(t[i].H("=")!=-1){u=t[i].Z("=");D[u[0]]=u[1]}}m=D[G];3(!m&&S){m=A}}K m};',62,107,'||this|if||fsize|else|var|fontSize|function|fonts|style|size|scale|styles|currentScale|classes|newScale||||lastScale|val|minSize|maxSize|sizeUnit|set|cookieName|step|ar|ar2|sizerEl|orgFonts||small|document|qStr|for|large|get|parseFloat|resize|varName|indexOf|resizeFont|xx|return|isNaN|unit|mn|getValueFromQueryString|queryName|window|styleSheets|bReturn|location|length|queryNum|search|stp|mx|split|ALL|classesx|getFontSize|setCookie|18px|180|24px|px|toString|bodyArabic|defaultTag|DIV|48|font|32px|true|adjustList|selectorText|new|Array|YadVashemFont|setDefaults|init|defaultClass|isIE|rules|cssRules|fontSizer|getCookie|browserType|medium|getElementById|sizer|16px|slice|display|9px|25|block|reset|11px|increase|decrease|deleteCookie|13px'.split('|'),0,{}))
  
function changeBrowserTitle()
{
	if(wcm_bread_crumbs_page_title != '')
	{
		document.title = wcm_bread_crumbs_page_title;
	}
	arr = document.getElementsByName("wcm_changing_browser_title");
	
	for (i in arr)
	{
		if( arr[i].value != '' && typeof arr[i].value != 'undefined')
		{
			document.title = arr[i].value;
			break;
		}
	}
}

/*  Determine whether the browser is Safari.*/

function isSafari() { // Private method
  return navigator.userAgent.indexOf("Safari") > -1;
}

//IE5+, Mozilla 1.0+, Opera 7+, Safari

function getClientWidth()
{
  if (isSafari()) {
     return self.innerWidth;
  }
  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
}

function getClientHeight()
{
  if (isSafari()) {
    return self.innerHeight;
  }
  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
}



function call(param) 
{

    var contents = getContent();
    
    var req = newXMLHttpRequest();

    var url = "/WCM_Log/log.do";

    req.onreadystatechange = getReadyStateHandler(req, update);

    req.open("POST", url, true);

    req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");

    req.send("page="+param+"&contents="+contents+"&username="+portal_username+"&resolution="+window_resolution+
 		  "&timezone="+getTimezone()+"&browsinghour="+jsClock24hr()+"&userlanguage="+getLanguage()+
 		  "&colordepth="+colorDepth()+"&isjavaenabled="+isJavaEnabled()+"&browsersize="+browserSize()+"&isflashenabled="+isFlashEnabled());

}

function isFlashEnabled()
{
	var flashinstalled = 0;
	var flashversion = 0;
	MSDetect = "false";

	if (navigator.plugins && navigator.plugins.length)
	{
		x = navigator.plugins["Shockwave Flash"];

		if (x)
		{
			flashinstalled = 2;
			if (x.description)
			{
				y = x.description;
				flashversion = y.charAt(y.indexOf('.')-1);
			}
		}
		else
			flashinstalled = 1;
		
		if (navigator.plugins["Shockwave Flash 2.0"])
		{
			flashinstalled = 2;
			flashversion = 2;
		}
	}
	else if (navigator.mimeTypes && navigator.mimeTypes.length)
	{
		x = navigator.mimeTypes['application/x-shockwave-flash'];
		if (x && x.enabledPlugin)
			flashinstalled = 2;
		else
			flashinstalled = 1;
	}
	else
	{
	     MSDetect = "true";
    	     flashEnabledVB();
    	}
        return flashinstalled == 2 ? "Yes" : "No";
}

function browserSize()
{
	var winW;
	var winH;
	if (navigator.appName=="Netscape") 
	{
  		winW = window.innerWidth;
  		winH = window.innerHeight;
 	}
 	if (navigator.appName.indexOf("Microsoft")!=-1) 
 	{
  		winW = document.body.offsetWidth;
  		winH = document.body.offsetHeight;
 	}
 	return winW+"X"+winH;
}

function isJavaEnabled()
{
	return navigator.javaEnabled() ? "Yes" : "No";
}

function getTimezone()
{
	var dCurrent = new Date();
	return escape(dCurrent.getTimezoneOffset());
}

function colorDepth()
{
	return escape(screen.colorDepth);
}

function jsClock24hr()
{
  	var time = new Date()
  	var hour = time.getHours()
  	var minute = time.getMinutes()
  	var second = time.getSeconds()
  	var temp = "" + ((hour < 10) ? "0" : "") + hour
  	temp += ((minute < 10) ? ":0" : ":") + minute
  	temp += ((second < 10) ? ":0" : ":") + second
    return temp;
}

function getLanguage()
{
	var lang = navigator.appName == "Netscape" ? escape(navigator.language) : escape(navigator.userLanguage);
	return lang;
}

function getContent()
{
	arr = document.getElementsByName("wcm_statistic_log");
	 var contents = '';
	 i = 0;
	 while(typeof arr[i] != 'undefined')
	 {
	 	if(i==0)
	 		contents = arr[i].value;
	 	else
	 		contents=contents+";"+arr[i].value;
	 	i++;
	 }
	 //alert(contents);
	return contents;
}

function update(updateXML) {
}

/*
 * Returns an new XMLHttpRequest object, or false if the browser
 * doesn't support it
 */
function newXMLHttpRequest() {

  var xmlreq = false;

  // Create XMLHttpRequest object in non-Microsoft browsers
  if (window.XMLHttpRequest) {
    xmlreq = new XMLHttpRequest();

  } else if (window.ActiveXObject) {

    try {
      // Try to create XMLHttpRequest in later versions
      // of Internet Explorer

      xmlreq = new ActiveXObject("Msxml2.XMLHTTP");
      
    } catch (e1) {

      // Failed to create required ActiveXObject
      
      try {
        // Try version supported by older versions
        // of Internet Explorer
      
        xmlreq = new ActiveXObject("Microsoft.XMLHTTP");

      } catch (e2) {

        // Unable to create an XMLHttpRequest by any means
        xmlreq = false;
      }
    }
  }

return xmlreq;
}

 /*
  * Returns a function that waits for the specified XMLHttpRequest
  * to complete, then passes it XML response to the given handler function.
  * req - The XMLHttpRequest whose state is changing
  * responseXmlHandler - Function to pass the XML response to
  */
 function getReadyStateHandler(req, responseXmlHandler) {

   // Return an anonymous function that listens to the XMLHttpRequest instance
   return function () {

     // If the request's status is "complete"
     if (req.readyState == 4) {
       
       // Check that we received a successful response from the server
       if (req.status == 200) {

         // Pass the XML payload of the response to the handler function.
         responseXmlHandler(req.responseXML);

       } else {

         // An HTTP problem has occurred
       //alert("HTTP error "+req.status+": "+req.statusText);
       }
     }
   }
 }


//dw_fontSizerDX.setDefaults('px',14,9,24,['span','div','td','tr','p','b','table','strong','emphasis','a','h1','h2','h3','pre','sub','sup','i','th','cp','','ol','li','dt','dd'])
//dw_fontSizerDX.init();

/*-------------- Add by Erwin Karbasi - Optinity for Font Resizer --*/

fontSizer.setDefaults('px',4,48,0.25)
fontSizer.init();

/*-------------- End Add by Erwin Karbasi - Optinity for Font Resizer --*/
  
 
                                                            