/*****************************************************
lock right click
*****************************************************/
/*if (document.layers){
 window.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
 window.onmousedown=rightclick;
 window.onmouseup=rightclick;

 function rightclick(e) {
  if (e.which == 3) {
   alert('© 2005 Copyright Camsoft GmbH');
   return false;
  }
  else {
   return true;
  }
 }
}

if (document.all){
 function click() {
  if (event.button==2) {
   alert('© 2005 Copyright Camsoft GmbH')
  }

  if (event.button==3) {
   alert('© 2005 Copyright Camsoft GmbH')}
  }
  document.onmousedown=click
 }
*/

/****************************************************
function for buttons
****************************************************/
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_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_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_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+=2)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+1];}
}

function MM_showHideLayers() { //v3.0
  var i,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-1); i+=2) if (args[i] && (obj=MM_findObj(args[i]))!=null) { v=args[i+1];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

/*function MM_showObj(o, l) {
  var i,obj,a;
  if (l == null)
    l = 0;
  if (!this.MM_sm)
    document.MM_sm = new Array;
  a = document.MM_sm;
  for (i=document.MM_sm.length-1;i>=l;i--)
    if (document.MM_sm[i]) {document.MM_sm[i].style.visibility='hidden'; document.MM_sm[i] = null;}
  if (o!=null && (obj=MM_findObj(o))!=null) 
    if (obj.style) {document.MM_sm[l]=obj; obj.style.visibility='visible';}
}*/
function MM_prepareshowObj() {
  var i,v,obj,obj2,top,args=MM_prepareshowObj.arguments;
  //document.MM_prepareTop = new Array;
  //document.MM_prepareTop[0] = 0;
  obj=MM_findObj(args[0]);
  if (!obj)
    return;
  top = obj.offsetHeight - 266;
  for (i=1; i<(args.length); i++) if (args[i] && (obj2=MM_findObj(args[i]))!=null) {
    obj2.style.height = 0;
    top = top - obj.offsetHeight;
    obj2.style.top = top;
    obj = obj2;
  }
}
function MM_showObj(o,id) {
  var obj;
  
  if (document.MM_sm)
  {
    obj=MM_findObj(document.MM_sm);
    obj.style.visibility = 'hidden';
    obj.style.height = 0;
    document.MM_sm = null;
  }
  o = o + id;
  if (o!=null && (obj=MM_findObj(o))!=null) 
    if (obj.style) {document.MM_sm=o; obj.style.height=264; obj.style.visibility='visible';}
}

function MM_roll(obj,h) {
  if (obj) {    
    obj.style.height = h;
    h = h - 10;
    if (h <= 0)
      obj.style.visibility = 'hidden';
    else
      setTimeout("MM_roll(document.MM_blend,"+h+")", 5);
  }
}

function MM_over(id) {
  document.MM_blend = null;
  MM_showObj('info_',id);
}

function MM_out() {
  //MM_showObj();
  var o,obj;
  if (document.MM_sm)
    o = document.MM_sm;
  if (o && (obj=MM_findObj(o))!=null)
    if (obj.style) {	
        document.MM_blend = obj;
        MM_roll(document.MM_blend,200);
    }
}

function MM_tover(obj) {
  var src = new String(obj.src);
  if (src.substr(src.length-5, 2) == '0.')
    obj.src = src.substr(0, src.length-5) + '1.' + src.substr(src.length-3, 3);
}

function MM_tout(obj) {
  var src = new String(obj.src);
  if (src.substr(src.length-5, 2) == '1.')
    obj.src = src.substr(0, src.length-5) + '0.' + src.substr(src.length-3, 3);
}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);

/****************************************************
functions for open new window
****************************************************/

function open_info(filename, winname, gotheight, gotwidth, gottop) {
  var gotleft = 0;
  if (window.screen)
  {
    gottop=Math.round((window.screen.availHeight-gotheight)/2);
    gotleft=Math.round((window.screen.availWidth-gotwidth)/2);
  }
  window.open(filename,winname,"width="+gotwidth+",height="
    +gotheight+",menubar=no,toolbar=no,statusbar=no,scrollbars=yes,resizable=yes,top="
    +gottop+",left="+gotleft).focus();
}