function gotoURL(url)
{
  document.location.href = url;
}

function doload(d){
  var id = '#'+d;
  $(id).nyroModalManual();
}

function expandCollapse( objID, showOrHide )
{

  var expand_collapse_obj = document.getElementById("expand_collapse["+objID+"]");
  var placesToGo = '<?=$l_sPlacesToGo?>';
  var placesToGoLite = '<?=$l_sPlacesToGoLite?>';
  var thingsToDo = '<?=$l_sThingsToDo?>';
  var thingsToDoLite = '<?=$l_sThingsToDoLite?>';
  if ( objID == 1 ) {
      if ( showOrHide == 1 ) { expand_collapse_obj.innerHTML = placesToGo; } else { expand_collapse_obj.innerHTML = placesToGoLite; }
  }
  if ( objID == 2 ) {
      if ( showOrHide == 1 ) { expand_collapse_obj.innerHTML = thingsToDo; } else { expand_collapse_obj.innerHTML = thingsToDoLite; }
  }
}
  
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function YY_checkform() { //v4.69
//copyright (c)1998,2002 Yaromat.com
  var a=YY_checkform.arguments,oo=true,v='',s='',err=false,r,o,at,o1,t,i,j,ma,rx,cd,cm,cy,dte,at;
  for (i=1; i<a.length;i=i+4){
    if (a[i+1].charAt(0)=='#'){r=true; a[i+1]=a[i+1].substring(1);}else{r=false}
    o=MM_findObj(a[i].replace(/\[\d+\]/ig,""));
    o1=MM_findObj(a[i+1].replace(/\[\d+\]/ig,""));
    v=o.value;t=a[i+2];
    if (o.type=='text'||o.type=='password'||o.type=='hidden'){
      if (r&&v.length==0){err=true}
      if (v.length>0)
      if (t==1){ //fromto
        ma=a[i+1].split('_');if(isNaN(v)||v<ma[0]/1||v > ma[1]/1){err=true}
      } else if (t==2){
		err = !/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(v);
		
        //rx=new RegExp("^[\\w\.=-]+@[\\w\\.-]+\\.[a-z]{2,4}$");if(!rx.test(v))err=true;
      } else if (t==3){ // date
        ma=a[i+1].split("#");at=v.match(ma[0]);
        if(at){
          cd=(at[ma[1]])?at[ma[1]]:1;cm=at[ma[2]]-1;cy=at[ma[3]];
          dte=new Date(cy,cm,cd);
          if(dte.getFullYear()!=cy||dte.getDate()!=cd||dte.getMonth()!=cm){err=true};
        }else{err=true}
      } else if (t==4){ // time
        ma=a[i+1].split("#");at=v.match(ma[0]);if(!at){err=true}
      } else if (t==5){ // check this 2
            if(o1.length)o1=o1[a[i+1].replace(/(.*\[)|(\].*)/ig,"")];
            if(!o1.checked){err=true}
      } else if (t==6){ // the same
            if(v!=MM_findObj(a[i+1]).value){err=true}
      }
    } else
    if (!o.type&&o.length>0&&o[0].type=='radio'){
          at = a[i].match(/(.*)\[(\d+)\].*/i);
          o2=(o.length>1)?o[at[2]]:o;
      if (t==1&&o2&&o2.checked&&o1&&o1.value.length/1==0){err=true}
      if (t==2){
        oo=false;
        for(j=0;j<o.length;j++){oo=oo||o[j].checked}
        if(!oo){s+='* '+a[i+3]+'\n'}
      }
    } else if (o.type=='checkbox'){
      if((t==1&&o.checked==false)||(t==2&&o.checked&&o1&&o1.value.length/1==0)){err=true}
    } else if (o.type=='select-one'||o.type=='select-multiple'){
      if(t==1&&o.selectedIndex/1==0){err=true}
    }else if (o.type=='textarea'){
      if(v.length<a[i+1]){err=true}
    }
    if (err){s+='* '+a[i+3]+'\n'; err=false}
  }
  if (s!=''){alert('The required information is incomplete or contains errors:\t\t\t\t\t\n\n'+s)}
  document.MM_returnValue = (s=='');
}
function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}



////////////////  GLOBAL TOOPTIP CONFIGURATION  /////////////////////
var ttBgColor      = '#e6ecff';
var ttBgImg        = '';           // path to background image;
var ttBorderColor  = '#003399';
var ttBorderWidth  = 1;
var ttDelay        = 500;          // time span until tooltip shows up [milliseconds]
var ttFontColor    = '#000066';
var ttFontFace     = 'arial,helvetica,sans-serif';
var ttFontSize     = '11px';
var ttFontWeight   = 'normal';     // alternative is 'bold';
var ttOffsetX      = 8;            // horizontal offset of left-top corner from mousepointer
var ttOffsetY      = 19;           // vertical offset                   "
var ttPadding      = 3;            // spacing between border and content
var ttShadowColor  = '';
var ttShadowWidth  = 0;
var ttTitleColor   = '#ffffff';    // color of caption text
var ttWidth        = 300;
////////////////////  END OF TOOLTIP CONFIG  ////////////////////////



//////////////  TAGS WITH TOOLTIP FUNCTIONALITY  ////////////////////
// List may be extended or shortened:
var tt_tags = new Array('a','area','b','big','caption','center','code','dd','div','dl','dt','em','h1','h2','h3','h4','h5','h6','i','img','input','li','map','ol','p','pre','s','small','span','strike','strong','sub','sup','table','td','th','tr','tt','u','var','ul','layer');
/////////////////////////////////////////////////////////////////////



///////// DON'T CHANGE ANYTHING BELOW THIS LINE /////////////////////
var tt_obj,                // current tooltip
tt_objW = 0, tt_objH = 0,  // width and height of tt_obj
tt_objX = 0, tt_objY = 0,
tt_offX = 0, tt_offY = 0,
xlim = 0, ylim = 0,        // right and bottom borders of visible client area
tt_above = false,          // true if T_ABOVE cmd
tt_static = false,         // tt_obj static?
tt_sticky = false,         // tt_obj sticky?
tt_wait = false,
tt_vis = false,            // tooltip visibility flag
tt_dwn = false,            // true while tooltip below mousepointer
tt_u = 'undefined',
tt_inputs = new Array();   // drop-down-boxes to be hidden in IE


var tt_db = (document.compatMode && document.compatMode != 'BackCompat')? document.documentElement : document.body? document.body : null,
tt_n = navigator.userAgent.toLowerCase();

// Browser flags
var tt_op = !!(window.opera && document.getElementById),
tt_op6 = tt_op && !document.defaultView,
tt_ie = tt_n.indexOf('msie') != -1 && document.all && tt_db && !tt_op,
tt_n4 = (document.layers && typeof document.classes != "undefined"),
tt_n6 = (!tt_op && document.defaultView && typeof document.defaultView.getComputedStyle != "undefined"),
tt_w3c = !tt_ie && !tt_n6 && !tt_op && document.getElementById;

tt_n = '';


function tt_Int(t_x)
{
  var t_y;
  return isNaN(t_y = parseInt(t_x))? 0 : t_y;
}


function wzReplace(t_x, t_y)
{
  var t_ret = '',
  t_str = this,
  t_xI;
  while ((t_xI = t_str.indexOf(t_x)) != -1)
  {
    t_ret += t_str.substring(0, t_xI) + t_y;
    t_str = t_str.substring(t_xI + t_x.length);
  }
  return t_ret+t_str;
}
String.prototype.wzReplace = wzReplace;


function tt_N4Tags(tagtyp, t_d, t_y)
{
  t_d = t_d || document;
  t_y = t_y || new Array();
  var t_x = (tagtyp=='a')? t_d.links : t_d.layers;
  for (var z = t_x.length; z--;) t_y[t_y.length] = t_x[z];
  for (var z = t_d.layers.length; z--;) t_y = tt_N4Tags(tagtyp, t_d.layers[z].document, t_y);
  return t_y;
}


function tt_GetSelects()
{
  if (!tt_op6 && !tt_ie) return;
  var t_s = tt_op6? 'input' : 'select';
  if (document.all)
  {
    var t_i = document.all.tags(t_s).length; while (t_i--)
      tt_inputs[t_i] = document.all.tags(t_s)[t_i];
  }
  else if (document.getElementsByTagName)
  {
    var t_i = document.getElementsByTagName(t_s).length; while (t_i--)
      tt_inputs[t_i] = document.getElementsByTagName(t_s)[t_i];
  }
  var t_i = tt_inputs.length; while (t_i--)
  {
    tt_inputs[t_i].x = 0;
    tt_inputs[t_i].y = 0;
    var t_o = tt_inputs[t_i];
    while (t_o)
    {
      tt_inputs[t_i].x += t_o.offsetLeft || 0;
      tt_inputs[t_i].y += t_o.offsetTop|| 0;
      t_o = t_o.offsetParent;
    }
  }
}


function tt_Htm(tt, t_id, txt)
{
  var t_bgc = (typeof tt.T_BGCOLOR != tt_u)? tt.T_BGCOLOR : ttBgColor,
  t_bgimg   = (typeof tt.T_BGIMG != tt_u)? tt.T_BGIMG : ttBgImg,
  t_bc      = (typeof tt.T_BORDERCOLOR != tt_u)? tt.T_BORDERCOLOR : ttBorderColor,
  t_bw      = (typeof tt.T_BORDERWIDTH != tt_u)? tt.T_BORDERWIDTH : ttBorderWidth,
  t_ff      = (typeof tt.T_FONTFACE != tt_u)? tt.T_FONTFACE : ttFontFace,
  t_fc      = (typeof tt.T_FONTCOLOR != tt_u)? tt.T_FONTCOLOR : ttFontColor,
  t_fsz     = (typeof tt.T_FONTSIZE != tt_u)? tt.T_FONTSIZE : ttFontSize,
  t_fwght   = (typeof tt.T_FONTWEIGHT != tt_u)? tt.T_FONTWEIGHT : ttFontWeight,
  t_padd    = (typeof tt.T_PADDING != tt_u)? tt.T_PADDING : ttPadding,
  t_shc     = (typeof tt.T_SHADOWCOLOR != tt_u)? tt.T_SHADOWCOLOR : (ttShadowColor || 0),
  t_shw     = (typeof tt.T_SHADOWWIDTH != tt_u)? tt.T_SHADOWWIDTH : (ttShadowWidth || 0),
  t_tit     = (typeof tt.T_TITLE != tt_u)? tt.T_TITLE : '',
  t_titc    = (typeof tt.T_TITLECOLOR != tt_u)? tt.T_TITLECOLOR : ttTitleColor,
  t_w       = (typeof tt.T_WIDTH != tt_u)? tt.T_WIDTH  : ttWidth;
  if (t_shc || t_shw)
  {
    t_shc = t_shc || '#cccccc';
    t_shw = t_shw || 3;
  }
  if (tt_n4 && (t_fsz == '10px' || t_fsz == '11px')) t_fsz = '12px';


  var t_y = '<div id="' + t_id + '" style="position:absolute;z-index:1010;';
  t_y += 'left:0px;top:0px;width:' + (t_w+t_shw) + 'px;visibility:' + (tt_n4? 'hide' : 'hidden') + ';">';
  t_y += '<table border="0" cellpadding="0" cellspacing="0"' + (t_bc? (' bgcolor="' + t_bc + '"') : '') + ' width="' + t_w + '">';
  if (t_tit)
  {
    t_y += '<tr><td style="padding-left:3px;"><font color="' + t_titc + '" face="' + t_ff + '" ';
    t_y += 'style="color:' + t_titc + ';font-family:' + t_ff + ';font-size:' + t_fsz + ';"><b>';
    t_y += t_tit + '<\/b><\/font><\/td><\/tr>';
  }
  t_y += '<tr><td><table border="0" cellpadding="' + t_padd + '" cellspacing="' + t_bw + '" width="100%">';
  t_y += '<tr><td' + (t_bgc? (' bgcolor="' + t_bgc + '"') : '') + (t_bgimg? ' background="' + t_bgimg + '"' : '');
  if (tt_n6) t_y += ' style="padding:' + t_padd + 'px;"';
  t_y += '><font color="' + t_fc + '" face="' + t_ff + '"';
  t_y += ' style="color:' + t_fc + ';font-family:' + t_ff + ';font-size:' + t_fsz + ';font-weight:' + t_fwght + ';">';
  if (t_fwght == 'bold') t_y += '<b>';
  t_y += txt;
  if (t_fwght == 'bold') t_y += '<\/b>';
  t_y += '<\/font><\/td><\/tr><\/table><\/td><\/tr><\/table>';
  if (t_shw)
  {
    var t_spct = Math.round(t_shw*1.3);
    if (tt_n4)
    {
      t_y += '<layer bgcolor="' + t_shc + '" left="' + t_w + '" top="' + t_spct + '" width="' + t_shw + '" height="0"><\/layer>';
      t_y += '<layer bgcolor="' + t_shc + '" left="' + t_spct + '" align="bottom" width="' + (t_w-t_spct) + '" height="' + t_shw + '"><\/layer>';
    }
    else
    {
      var t_opa = tt_n6? '-moz-opacity:0.85;' : tt_ie? 'filter:Alpha(opacity=85);' : '';
      t_y += '<div id="' + t_id + 'R" style="position:absolute;background:' + t_shc + ';left:' + t_w + 'px;top:' + t_spct + 'px;width:' + t_shw + 'px;height:1px;overflow:hidden;' + t_opa + '"><\/div>';
      t_y += '<div style="position:relative;background:' + t_shc + ';left:' + t_spct + 'px;top:0px;width:' + (t_w-t_spct) + 'px;height:' + t_shw + 'px;overflow:hidden;' + t_opa + '"><\/div>';
    }
  }
  t_y += '<\/div>';
  return t_y;
}


function tt_Init()
{
  if (!(tt_op || tt_n4 || tt_n6 || tt_ie || tt_w3c)) return;

  var htm = tt_n4? '<div style="position:absolute;"><\/div>' : '',
  tags,
  t_tj,
  over,
  esc = 'return escape(';
  var i = tt_tags.length; while (i--)
  {
    tags = tt_ie? (document.all.tags(tt_tags[i]) || 1)
      : document.getElementsByTagName? (document.getElementsByTagName(tt_tags[i]) || 1)
      : (!tt_n4 && tt_tags[i]=='a')? document.links
      : 1;
    if (tt_n4 && (tt_tags[i] == 'a' || tt_tags[i] == 'layer')) tags = tt_N4Tags(tt_tags[i]);
    var j = tags.length; while (j--)
    {
      if (typeof (t_tj = tags[j]).onmouseover == 'function' && t_tj.onmouseover.toString().indexOf(esc) != -1 && !tt_n6 || tt_n6 && (over = t_tj.getAttribute('onmouseover')) && over.indexOf(esc) != -1)
      {
        if (over) t_tj.onmouseover = new Function(over);
        var txt = unescape(t_tj.onmouseover());
        htm += tt_Htm(
          t_tj,
          'tOoLtIp'+i+''+j,
          txt.wzReplace('& ','&')
        );

        t_tj.onmouseover = new Function('e',
          'tt_Show(e,'+
          '"tOoLtIp' +i+''+j+ '",'+
          (typeof t_tj.T_ABOVE != tt_u) + ','+
          ((typeof t_tj.T_DELAY != tt_u)? t_tj.T_DELAY : ttDelay) + ','+
          ((typeof t_tj.T_FIX != tt_u)? '"'+t_tj.T_FIX+'"' : '""') + ','+
          (typeof t_tj.T_LEFT != tt_u) + ','+
          ((typeof t_tj.T_OFFSETX != tt_u)? t_tj.T_OFFSETX : ttOffsetX) + ','+
          ((typeof t_tj.T_OFFSETY != tt_u)? t_tj.T_OFFSETY : ttOffsetY) + ','+
          (typeof t_tj.T_STATIC != tt_u) + ','+
          (typeof t_tj.T_STICKY != tt_u) +
          ');'
        );
        t_tj.onmouseout = tt_Hide;
        if (t_tj.alt) t_tj.alt = "";
        if (t_tj.title) t_tj.title = "";
      }
    }
  }
  document.write(htm);
}


function tt_EvX(t_e)
{
  var t_y = tt_Int(t_e.pageX || t_e.clientX || 0) +
    tt_Int(tt_ie? tt_db.scrollLeft : 0) +
    tt_offX;
  if (t_y > xlim) t_y = xlim;
  var t_scr = tt_Int(window.pageXOffset || (tt_db? tt_db.scrollLeft : 0) || 0);
  if (t_y < t_scr) t_y = t_scr;
  return t_y;
}


function tt_EvY(t_e)
{
  var t_y = tt_Int(t_e.pageY || t_e.clientY || 0) +
    tt_Int(tt_ie? tt_db.scrollTop : 0);
  if (tt_above) t_y -= (tt_objH + tt_offY - (tt_op? 31 : 15));
  else if (t_y > ylim || !tt_dwn && t_y > ylim-24)
  {
    t_y -= (tt_objH + 5);
    tt_dwn = false;
  }
  else
  {
    t_y += tt_offY;
    tt_dwn = true;
  }
  return t_y;
}


function tt_ReleasMov()
{
  if (document.onmousemove == tt_Move)
  {
    if (document.releaseEvents) document.releaseEvents(Event.MOUSEMOVE);
    document.onmousemove = null;
  }
}


function tt_HideInput()
{
  if (!(tt_ie || tt_op6) || !tt_inputs) return;
  var t_o;
  var t_i = tt_inputs.length; while (t_i--)
  {
    t_o = tt_inputs[t_i];
    if (tt_vis && tt_objX+tt_objW > t_o.x && tt_objX < t_o.x+t_o.offsetWidth && tt_objY+tt_objH > t_o.y && tt_objY < t_o.y+t_o.offsetHeight)
      t_o.style.visibility = 'hidden';
    else t_o.style.visibility = 'visible';
  }
}


function tt_GetDiv(t_id)
{
  return (
    tt_n4? (document.layers[t_id] || null)
    : tt_ie? (document.all[t_id] || null)
    : (document.getElementById(t_id) || null)
  );
}


function tt_GetDivW()
{
  return (
    tt_n4? tt_obj.clip.width
    : tt_obj.style.pixelWidth? tt_obj.style.pixelWidth
    : tt_obj.offsetWidth
  );
}


function tt_GetDivH()
{
  return (
    tt_n4? tt_obj.clip.height
    : tt_obj.style.pixelHeight? tt_obj.style.pixelHeight
    : tt_obj.offsetHeight
  );
}


// Compat with DragDrop Lib: Ensure z-index of tooltip is lifted beyond toplevel dragdrop element
function tt_SetDivZ()
{
  var t_i = tt_obj.style || tt_obj;
  if (window.dd && dd.z)
    t_i.zIndex = Math.max(dd.z+1, t_i.zIndex);
}


function tt_SetDivPos(t_x, t_y)
{
  var t_i = tt_obj.style || tt_obj;
  var t_px = (tt_op6 || tt_n4)? '' : 'px';
  t_i.left = (tt_objX = t_x) + t_px;
  t_i.top = (tt_objY = t_y) + t_px;
  tt_HideInput();
}


function tt_ShowDiv(t_x)
{
  if (tt_n4) tt_obj.visibility = t_x? 'show' : 'hide';
  else tt_obj.style.visibility = t_x? 'visible' : 'hidden';
  tt_vis = t_x;
  tt_HideInput();
}


function tt_Show(t_e, t_id, t_above, t_delay, t_fix, t_left, t_offx, t_offy, t_static, t_sticky)
{
  if (tt_obj) tt_Hide();
  var t_mf = document.onmousemove || null;
  if (window.dd && (window.DRAG && t_mf == DRAG || window.RESIZE && t_mf == RESIZE)) return;
  var t_uf = document.onmouseup || null;
  if (t_mf && t_uf) t_uf(t_e);

  tt_obj = tt_GetDiv(t_id);
  if (tt_obj)
  {
    tt_dwn = !(tt_above = t_above);
    tt_static = t_static;
    tt_sticky = t_sticky;
    tt_objW = tt_GetDivW();
    tt_objH = tt_GetDivH();
    tt_offX = t_left? -(tt_objW+t_offx) : t_offx;
    tt_offY = t_offy;
    if (tt_op) tt_offY += 21;
    if (tt_n4)
    {
      if (tt_obj.document.layers.length)
      {
        var t_sh = tt_obj.document.layers[0];
        t_sh.clip.height = tt_objH - Math.round(t_sh.clip.width*1.3);
      }
    }
    else
    {
      var t_sh = tt_GetDiv(t_id+'R');
      if (t_sh)
      {
        var t_h = tt_objH - tt_Int(t_sh.style.pixelTop || t_sh.style.top || 0);
        if (typeof t_sh.style.pixelHeight != tt_u) t_sh.style.pixelHeight = t_h;
        else t_sh.style.height = t_h + 'px';
      }
    }

    tt_GetSelects();

    xlim = tt_Int((tt_db && tt_db.clientWidth)? tt_db.clientWidth : window.innerWidth) +
      tt_Int(window.pageXOffset || (tt_db? tt_db.scrollLeft : 0) || 0) -
      tt_objW -
      (tt_n4? 21 : 0);
    ylim = tt_Int(window.innerHeight || tt_db.clientHeight) +
      tt_Int(window.pageYOffset || (tt_db? tt_db.scrollTop : 0) || 0) -
      tt_objH - tt_offY;

    tt_SetDivZ();
    t_e = t_e || window.event;
    if (t_fix) tt_SetDivPos(tt_Int((t_fix = t_fix.split(','))[0]), tt_Int(t_fix[1]));
    else tt_SetDivPos(tt_EvX(t_e), tt_EvY(t_e));

    window.tt_rdl = window.setTimeout(
      'if (tt_sticky)'+
      '{'+
        'tt_ReleasMov();'+
        'window.tt_upFunc = document.onmouseup || null;'+
        'if (document.captureEvents) document.captureEvents(Event.MOUSEUP);'+
        'document.onmouseup = new Function("window.setTimeout(\'tt_Hide();\', 10);");'+
      '}'+
      'else if (tt_static) tt_ReleasMov();'+
      'tt_ShowDiv(\'true\');',
      t_delay
    );

    if (!t_fix)
    {
      if (document.captureEvents) document.captureEvents(Event.MOUSEMOVE);
      document.onmousemove = tt_Move;
    }
  }
}


var tt_area = false;
function tt_Move(t_ev)
{
  if (!tt_obj) return;
  if (tt_n6 || tt_w3c)
  {
    if (tt_wait) return;
    tt_wait = true;
    setTimeout('tt_wait = false;', 5);
  }
  var t_e = t_ev || window.event;
  tt_SetDivPos(tt_EvX(t_e), tt_EvY(t_e));
  if (tt_op6)
  {
    if (tt_area && t_e.target.tagName != 'AREA') tt_Hide();
    else if (t_e.target.tagName == 'AREA') tt_area = true;
  }
}


function tt_Hide()
{
  if (window.tt_obj)
  {
    if (window.tt_rdl) window.clearTimeout(tt_rdl);
    if (!tt_sticky || tt_sticky && !tt_vis)
    {
      tt_ShowDiv(false);
      tt_SetDivPos(-tt_objW, -tt_objH);
      tt_obj = null;
      if (typeof window.tt_upFunc != tt_u) document.onmouseup = window.tt_upFunc;
    }
    tt_sticky = false;
    if (tt_op6 && tt_area) tt_area = false;
    tt_ReleasMov();
    tt_HideInput();
  }
}


tt_Init();

/*****

Image Cross Fade Redux
Version 1.0
Last revision: 02.15.2006
steve@slayeroffice.com

Please leave this notice intact. 

Rewrite of old code found here: http://slayeroffice.com/code/imageCrossFade/index.html


*****/


window.addEventListener?window.addEventListener("load",so_init,false):window.attachEvent("onload",so_init);

var d=document, imgs = new Array(), zInterval = null, current=0, pause=false;

function so_init() {
  if(!d.getElementById || !d.createElement)return;
  
  //css = d.createElement("link");
  //css.setAttribute("href","/default_adven.css");
  //css.setAttribute("rel","stylesheet");
  //css.setAttribute("type","text/css");
  //d.getElementsByTagName("head")[0].appendChild(css);
  
  // 2008-06-13 walter
  if (!d.getElementById("imageContainer"))return;

  imgs = d.getElementById("imageContainer").getElementsByTagName("img");
  for(i=1;i<imgs.length;i++) imgs[i].xOpacity = 0;
  imgs[0].style.display = "block";
  imgs[0].xOpacity = .99;
  
  setTimeout(so_xfade,3000);
}

function so_xfade() {
  cOpacity = imgs[current].xOpacity;
  nIndex = imgs[current+1]?current+1:0;
  nOpacity = imgs[nIndex].xOpacity;
  
  cOpacity-=.05; 
  nOpacity+=.05;
  
  imgs[nIndex].style.display = "block";
  imgs[current].xOpacity = cOpacity;
  imgs[nIndex].xOpacity = nOpacity;
  
  setOpacity(imgs[current]); 
  setOpacity(imgs[nIndex]);
  
  if(cOpacity<=0) {
    imgs[current].style.display = "none";
    current = nIndex;
    setTimeout(so_xfade,3000);
  } else {
    setTimeout(so_xfade,50);
  }
  
  function setOpacity(obj) {
    if(obj.xOpacity>.99) {
      obj.xOpacity = .99;
      return;
    }
    obj.style.opacity = obj.xOpacity;
    obj.style.MozOpacity = obj.xOpacity;
    obj.style.filter = "alpha(opacity=" + (obj.xOpacity*100) + ")";
  }
  
}

function GetXmlHttpObject()
{
  var xmlHttp=null;
  try
  {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
  }
  catch (e)
   {
   //Internet Explorer
     try
     {
       xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
     }
     catch (e)
    {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
  return xmlHttp;
}

function explode (delimiter, string, limit) {
	// Splits a string on string separator and return array of components. If limit is positive only limit number of components is returned. If limit is negative all components except the last abs(limit) are returned.  
	 var emptyArray = { 0: '' };
	
	// third argument is not required
	if ( arguments.length < 2 ||
		typeof arguments[0] == 'undefined' ||        typeof arguments[1] == 'undefined' ) {
		return null;
	}
 
	if ( delimiter === '' ||        delimiter === false ||
		delimiter === null ) {
		return false;
	}
	 if ( typeof delimiter == 'function' ||
		typeof delimiter == 'object' ||
		typeof string == 'function' ||
		typeof string == 'object' ) {
		return emptyArray;    }
 
	if ( delimiter === true ) {
		delimiter = '1';
	}    
	if (!limit) {
		return string.toString().split(delimiter.toString());
	} else {
		// support for limit argument        var splitted = string.toString().split(delimiter.toString());
		var partA = splitted.splice(0, limit - 1);
		var partB = splitted.join(delimiter.toString());
		partA.push(partB);
		return partA;    }
}
