//
//  JavaScript
//
//  Licensed Materials - Property of IBM
//
//  5724I83
//
//  (C) Copyright IBM Corp. 1995, 2006 All Rights Reserved.
//



//HPB_SCRIPT_SITEMENU_11

var hpb=new Object();
	hpb.ContentLoader=function(url, divId, onload) {
	this.url = url;
	this.divId=divId;
	this.request=null;
	this.onload=onload;
	this.onerror=this.defaultError;
	this.loadSiteMenu(url);
}
hpb.ContentLoader.prototype={
	loadSiteMenu:function(url){
		// non-IE
		if(window.XMLHttpRequest) {
			this.request = new XMLHttpRequest();
		// IE
		} else if(window.ActiveXObject) {
			try {
				this.request = new ActiveXObject ("Msxml2.XMLHTTP");
			} catch(e) {
				this.request = new ActiveXObject ("Microsoft.XMLHTTP");
			}
		}
		if(this.request) {
			try{
				var loader=this;
				this.request.onreadystatechange=function(){
					loader.onReadyState.call(loader);
				}
				this.request.open('GET',url, true);
				this.request.send(null);
			}catch( err) {
				this.onerror.call(this);
			}
		}
	},
	onReadyState:function(){
		var request = this.request;
		var readyState = request.readyState;
		if(readyState==4){
			var httpStatus=request.status;
			if(httpStatus==200 || httpStatus == 0) {
				this.onload.call(this);
			}else{
				this.onerror.call(this);
			}
		}
	},
	
	defautError:function() {
	}
}	
  
function getMenu(){
	document.getElementById(this.divId).innerHTML = this.request.responseText;
}

function getHpbSiteMenu(menuURL, divId) {
	var loader=new hpb.ContentLoader(menuURL, divId, getMenu);
	
}


//HPB_SCRIPT_ELQ_80_DATA

var HpbELQData = {idPrefix:"Q",questions:[
{type:"Description",mandatory:true},
{type:"Selection",single:true,n_selection:2,mandatory:true}]};


//
//  Licensed Materials - Property of IBM
//  5724I83
//  (C) Copyright IBM Corp. 1995, 2006 All Rights Reserved.
//

//HPB_SCRIPT_SDS_60

var appVer = parseInt(navigator.appVersion);
var isNC=false,isN6=false,isIE=false;
if (document.all && appVer >= 4) isIE=true; else
  if (document.getElementById && appVer > 4) isN6=true; else
    if (document.layers && appVer >= 4) isNC=true;
var slideobj;
slideobj = new Array;
var chkobj;
chkobj = true;
//
// HpbSlideInit
//
function HpbSlideInit() {
  if (arguments.length < 4) return;
  var n;
  n = arguments[3];
  slideobj[n] = new Array;
  slideobj[n].auto = arguments[0];
  slideobj[n].interval = arguments[1];
  var w_str;
  var base;
  base = new Array;
  if (isNC) {
    w_str = "document." + arguments[2];
    base = eval(w_str);
    if (base) {
      base.pos_x = base.left;
      for (var div=0; div < arguments.length-3; div++) {
        w_str = "base.document." + arguments[div+3];
        slideobj[n][div] = eval(w_str);
        if (slideobj[n][div]) {
          slideobj[n][div].innerH = window.innerHeight;
          slideobj[n][div].innerW = window.innerWidth;
          slideobj[n][div].pos_x = slideobj[n][div].left;
          slideobj[n][div].pos_y = slideobj[n][div].top;
          slideobj[n][div].pos_w = slideobj[n][div].clip.width;
          slideobj[n][div].pos_h = slideobj[n][div].clip.height;
          slideobj[n][div].cnt = 0;
        } else chkobj = false;
      }
    } else chkobj = false;
  }
  if (isN6) {
    base = document.getElementById(arguments[2]);
    if (base) {
      base.pos_x = parseInt(base.style.left);
      for (var div=0; div < arguments.length-3; div++) {
        slideobj[n][div] = document.getElementById(arguments[div+3]);
        if (slideobj[n][div]) {
          slideobj[n][div].innerH = window.innerHeight;
          slideobj[n][div].innerW = window.innerWidth;
          slideobj[n][div].pos_x = parseInt(slideobj[n][div].style.left);
          slideobj[n][div].pos_y = parseInt(slideobj[n][div].style.top);
          slideobj[n][div].pos_w = parseInt(slideobj[n][div].style.width);
          slideobj[n][div].pos_h = parseInt(slideobj[n][div].style.height);
          slideobj[n][div].cnt = 0;
        } else chkobj = false;
      }
    } else chkobj = false;
  }
  if (isIE) {
    w_str = "document.all.item(\"" + arguments[2] + "\")";
    if (eval(w_str)) {
      w_str = "document.all.item(\"" + arguments[2] + "\").style";
      base = eval(w_str);
      if (base) base.pos_x = base.pixelLeft; else chkobj = false;
    } else chkobj = false;
    for (var div=0; div < arguments.length-3; div++) {
      w_str = "document.all.item(\"" + arguments[div+3] + "\")";
      if (eval(w_str)) {
        w_str = "document.all.item(\"" + arguments[div+3] + "\").style";
        slideobj[n][div] = eval(w_str);
        if (slideobj[n][div]) {
          slideobj[n][div].innerH = document.body.clientHeight;
          slideobj[n][div].innerW = document.body.clientWidth;
          slideobj[n][div].pos_x = slideobj[n][div].pixelLeft;
          slideobj[n][div].pos_y = slideobj[n][div].pixelTop;
          slideobj[n][div].pos_w = slideobj[n][div].pixelWidth;
          slideobj[n][div].pos_h = slideobj[n][div].pixelHeight;
          slideobj[n][div].cnt = 0;
        } else chkobj = false;
  } } }
  if (!chkobj) return;
  for (var div = 1; div < slideobj[n].length; div++) {
    slideobj[n][div].pos_mx = new Array;
    slideobj[n][div].pos_my = new Array;
    slideobj[n][div].pos_mx[0] = 0 - ( base.pos_x + slideobj[n][div].pos_w );
    var w_sub;
    w_sub = 320-(base.pos_x+slideobj[n][div].pos_x);
    if (w_sub > 0) slideobj[n][div].pos_mx[0]-=w_sub;
    slideobj[n][div].pos_my[0] = slideobj[n][0].pos_y + ( slideobj[n][0].pos_h / 2 ) - ( slideobj[n][div].pos_h / 2 );
    for (var p = 1; ; p++) {
      slideobj[n][div].pos_mx[p] = slideobj[n][div].pos_mx[p - 1] + 20;
      slideobj[n][div].pos_my[p] = slideobj[n][div].pos_my[0];
      if ( slideobj[n][div].pos_mx[p] >= slideobj[n][0].pos_x + ( slideobj[n][0].pos_w / 2 ) - ( slideobj[n][div].pos_w / 2 ) ) {
        slideobj[n][div].pos_mx[p] = slideobj[n][0].pos_x + ( slideobj[n][0].pos_w / 2 ) - ( slideobj[n][div].pos_w / 2 );
        break;
      }
    }
    slideobj[n][div].pos_ox = new Array;
    slideobj[n][div].pos_oy = new Array;
    slideobj[n][div].pos_ox[0] = slideobj[n][div].pos_mx[slideobj[n][div].pos_mx.length - 1];
    slideobj[n][div].pos_oy[0] = slideobj[n][div].pos_my[0];
    for (var p = 1; ; p++) {
      slideobj[n][div].pos_ox[p] = slideobj[n][div].pos_ox[p - 1] + 20;
      slideobj[n][div].pos_oy[p] = slideobj[n][div].pos_oy[0];
      if ( slideobj[n][div].pos_ox[p] >= slideobj[n][div].innerW ) {
        break;
      }
    }
  }
  slideobj[n].idiv = 1;
  slideobj[n].odiv = slideobj[n].length - 1;
  slideobj[n].lr = 1;
  slideobj[n].itm = false;
  slideobj[n].otm = false;
  HpbSlideShowObj(slideobj[n][slideobj[n].idiv]);
}
//
// HpbSlideNext
//
function HpbSlideNext( n ) {
  if ((isNC||isN6||isIE) && chkobj) {
    if ( slideobj[n].auto == true ) {
      if ( slideobj[n].itm == false && slideobj[n].otm == false ) {
        var p;
        if ( slideobj[n].lr > 0 ) {
          slideobj[n].odiv = slideobj[n].idiv;
          p = 0;
        } else {
          slideobj[n].idiv = slideobj[n].odiv;
          slideobj[n].odiv += 1;
          if ( slideobj[n].odiv >= slideobj[n].length ) slideobj[n].odiv = 1;
          p = slideobj[n][slideobj[n].odiv].pos_ox.length - 1;
        }
        slideobj[n].otm = true;
        setTimeout( "HpbSlideTimerOut('" + n + "'," + p + ")", slideobj[n].interval );
        if ( slideobj[n].lr > 0 ) {
          slideobj[n].idiv += 1;
          if ( slideobj[n].idiv >= slideobj[n].length ) slideobj[n].idiv = 1;
          p = 0;
        } else {
          p = slideobj[n][slideobj[n].idiv].pos_mx.length - 1;
        }
        slideobj[n].itm = true;
        setTimeout( "HpbSlideTimerIn('" + n + "'," + p + ")", slideobj[n].interval );
      }
    }
  }
}
//
// HpbSlideTimerIn
//
function HpbSlideTimerIn( n, p ) {
  if ((isNC||isN6||isIE) && chkobj) {
    var div;
    div = slideobj[n].idiv;
    if (slideobj[n][div]) {
      var pl;
      if ( slideobj[n].lr > 0 && p == 0 ) HpbSlideShowObj(slideobj[n][div]);
      HpbSlideMoveobj(slideobj[n][div],slideobj[n][div].pos_mx[p],slideobj[n][div].pos_my[p]);
      pl = slideobj[n][div].pos_mx.length;
      p += slideobj[n].lr;
      if ( ( p < pl && slideobj[n].lr > 0 )
        || ( p >= 0 && slideobj[n].lr < 0 ) ) {
        setTimeout( "HpbSlideTimerIn('" + n + "'," + p + ")", 100 );
      } else {
        slideobj[n].itm = false;
        HpbSlideNext( n );
        if ( slideobj[n].lr < 0 ) HpbSlideHideObj(slideobj[n][div]);
      }
} } }
//
// HpbSlideTimerOut
//
function HpbSlideTimerOut( n, p ) {
  if ((isNC||isN6||isIE) && chkobj) {
    var div;
    div = slideobj[n].odiv;
    if (slideobj[n][div]) {
      var pl;
      if ( slideobj[n].lr < 0 && p == ( slideobj[n][div].pos_ox.length - 1 ) ) HpbSlideShowObj(slideobj[n][div]);
      HpbSlideMoveobj(slideobj[n][div],slideobj[n][div].pos_ox[p],slideobj[n][div].pos_oy[p]);
      pl = slideobj[n][div].pos_ox.length;
      p += slideobj[n].lr;
      if ( ( p < pl && slideobj[n].lr > 0 )
        || ( p >= 0 && slideobj[n].lr < 0 ) ) {
        setTimeout( "HpbSlideTimerOut('" + n + "'," + p + ")", 100 );
      } else {
        slideobj[n].otm = false;
        HpbSlideNext( n );
        if ( slideobj[n].lr > 0 ) HpbSlideHideObj(slideobj[n][div]);
      }
} } }
//
// HpbSlideStart
//
function HpbSlideStart( n, pn, rb, sq, mv ) {
  if ((isNC||isN6||isIE) && chkobj) {
    if ( slideobj[n].itm == false && slideobj[n].otm == false ) {
      var p;
      if ( slideobj[n].lr == pn ) {
        if ( pn > 0 ) {
          slideobj[n].odiv = slideobj[n].idiv;
          if ( sq > 0 ) {
            slideobj[n].idiv += 1;
            if ( slideobj[n].idiv >= slideobj[n].length ) slideobj[n].idiv = 1;
          } else {
            slideobj[n].idiv -= 1;
            if ( slideobj[n].idiv < 1 ) slideobj[n].idiv = slideobj[n].length - 1;
          }
        } else {
          slideobj[n].idiv = slideobj[n].odiv;
          if ( sq > 0 ) {
            slideobj[n].odiv += 1;
            if ( slideobj[n].odiv >= slideobj[n].length ) slideobj[n].odiv = 1;
          } else {
            slideobj[n].odiv -= 1;
            if ( slideobj[n].odiv < 1 ) slideobj[n].odiv = slideobj[n].length - 1;
          }
        }
      } else {
        slideobj[n].lr = pn;
        if ( rb == false ) {
          if ( pn > 0 ) {
            if ( sq > 0 ) {
              slideobj[n].idiv = slideobj[n].odiv + 1;
              if ( slideobj[n].idiv >= slideobj[n].length ) slideobj[n].idiv = 1;
            } else {
              slideobj[n].idiv -= 1;
              if ( slideobj[n].idiv < 1 ) slideobj[n].idiv = slideobj[n].length - 1;
            }
          } else {
            if ( sq > 0 ) {
              slideobj[n].odiv = slideobj[n].idiv + 1;
              if ( slideobj[n].odiv >= slideobj[n].length ) slideobj[n].odiv = 1;
            }
          }
        }
      }
      if ( mv == true ) {
        if ( pn > 0 ) {
          p = 0;
        } else {
          p = slideobj[n][slideobj[n].odiv].pos_ox.length - 1;
        }
        slideobj[n].otm = true;
        setTimeout( "HpbSlideTimerOut('" + n + "'," + p + ")", 100 );
      } else {
        if ( pn > 0 ) {
          HpbSlideShowObj(slideobj[n][slideobj[n].idiv]);
        } else {
          HpbSlideShowObj(slideobj[n][slideobj[n].odiv]);
        }
      }
      if ( mv == true ) {
        if ( pn > 0 ) {
          p = 0;
        } else {
          p = slideobj[n][slideobj[n].idiv].pos_mx.length - 1;
        }
        slideobj[n].itm = true;
        setTimeout( "HpbSlideTimerIn('" + n + "'," + p + ")", 100 );
      } else {
        if ( pn > 0 ) {
          HpbSlideHideObj(slideobj[n][slideobj[n].odiv]);
        } else {
          HpbSlideHideObj(slideobj[n][slideobj[n].idiv]);
        }
      }
    }
  }
}
//
// HpbSlideShowObj
//
function HpbSlideShowObj(obj) {
  if (obj) {
    if (isNC) obj.visibility = "show";
    if (isN6) obj.style.visibility = "visible";
    if (isIE) obj.visibility = "visible";
    lastobj = obj;
} }
//
// HpbSlideHideObj
//
function HpbSlideHideObj(obj) {
  if (obj) {
    if (isNC) obj.visibility = "hide";
    if (isN6) obj.style.visibility = "hidden";
    if (isIE) obj.visibility = "hidden";
} }
//
// HpbSlideMoveobj
//
function HpbSlideMoveobj(obj,x,y) {
  if (obj) {
    if (isNC) {obj.left=x;obj.top=y;}
    if (isN6) {obj.style.left=x+"px";obj.style.top=y+"px";}
    if (isIE) {obj.left=x;obj.top=y;}
} }
//
// HpbSlideAutoStart
//
function HpbSlideAutoStart( n, pn, mv ) {
  if ((isNC||isN6||isIE) && chkobj) {
    if ( slideobj[n].itm == false && slideobj[n].otm == false &&  slideobj[n].auto == false ) {
      if ( slideobj[n].lr != pn ) {
        if ( pn > 0 ) {
        } else {
          slideobj[n].odiv = slideobj[n].idiv;
          slideobj[n].idiv += 1;
          if ( slideobj[n].idiv >= slideobj[n].length ) slideobj[n].idiv = 1;
        }
      }
      slideobj[n].auto = true;
      slideobj[n].lr = pn;
      if ( mv == true ) {
        HpbSlideNext( n );
      } else {
        HpbSlideSwap( n, pn );
      }
    }
  }
}
//
// HpbSlideAutoStop
//
function HpbSlideAutoStop( n ) {
  if ((isNC||isN6||isIE) && chkobj) {
    slideobj[n].auto = false;
  }
}
//
// HpbSlideSwap
//
function HpbSlideSwap( n, pn ) {
  if ((isNC||isN6||isIE) && chkobj) {
    if ( slideobj[n].auto == true ) {
      HpbSlideStart(n,pn,false,pn,false);
      setTimeout( "HpbSlideSwap('" + n + "'," + pn + ")", slideobj[n].interval );
    }
  }
}


//
//  Licensed Materials - Property of IBM
//  5724I83
//  (C) Copyright IBM Corp. 1995, 2006 All Rights Reserved.
//

//HPB_SCRIPT_ROV_50


// HpbImgPreload:
//
function HpbImgPreload()
{
  var appVer=parseInt(navigator.appVersion);
  var isNC=false,isN6=false,isIE=false;
  if (document.all && appVer >= 4) isIE=true; else
    if (document.getElementById && appVer > 4) isN6=true; else
      if (document.layers && appVer >= 4) isNC=true;
  if (isNC||isN6||isIE)
  {
    if (document.images)
    {
      var imgName = HpbImgPreload.arguments[0];
      var cnt;
      swImg[imgName] = new Array;
      for (cnt = 1; cnt < HpbImgPreload.arguments.length; cnt++)
      {
        swImg[imgName][HpbImgPreload.arguments[cnt]] = new Image();
        swImg[imgName][HpbImgPreload.arguments[cnt]].src = HpbImgPreload.arguments[cnt];
      }
    }
  }
}
// HpbImgFind:
//
function HpbImgFind(doc, imgName)
{
  for (var i=0; i < doc.layers.length; i++)
  {
    var img = doc.layers[i].document.images[imgName];
    if (!img) img = HpbImgFind(doc.layers[i], imgName);
    if (img) return img;
  }
  return null;
}
// HpbImgSwap:
//
function HpbImgSwap(imgName, imgSrc)
{
  var appVer=parseInt(navigator.appVersion);
  var isNC=false,isN6=false,isIE=false;
  if (document.all && appVer >= 4) isIE=true; else
    if (document.getElementById && appVer > 4) isN6=true; else
      if (document.layers && appVer >= 4) isNC=true;
  if (isNC||isN6||isIE)
  {
    if (document.images)
    {
      var img = document.images[imgName];
      if (!img) img = HpbImgFind(document, imgName);
      if (img) img.src = imgSrc;
    }
  }
}
var swImg; swImg=new Array;


//HPB_SCRIPT_PLD_50

HpbImgPreload('_HPB_ROLLOVER2', 'button132.gif', 'button1322.gif');
HpbImgPreload('_HPB_ROLLOVER4', 'button15.gif', 'button151.gif');
HpbImgPreload('_HPB_ROLLOVER5', 'button121.gif', 'button1211.gif');
HpbImgPreload('_HPB_ROLLOVER6', 'button17.gif', 'button171.gif');
HpbImgPreload('_HPB_ROLLOVER7', 'button16.gif', 'button161.gif');
HpbImgPreload('_HPB_ROLLOVER8', 'button18.gif', 'button181.gif');
HpbImgPreload('_HPB_ROLLOVER3', 'osagashi3.jpg', 'osagashi31.jpg');
