// ------------------------------------------------------
// Copyright (c) 2006, Ed de Heus, excITed Software Inc.
// 23 Okt 2004
// ------------------------------------------------------

// ------------------------------------
// Functie      : product_Over()
// Datum        : 14 feb 2012
// ------------------------------------
function cursorHand_Over( srcEle ) { 
  srcEle.style.backgroundColor = "#FFFFFF";
  srcEle.style.cursor = "hand";
  return true; 
}
function cursorHand_Out( srcEle )  {
  srcEle.style.backgroundColor = "";
  srcEle.style.cursor = ""; 
  return true;
}

 // ===========
 //  LEFT MENU
 // ===========
 function menuCat_Over( srcEle ) {
   srcEle.style.cursor          = "hand";
   srcEle.style.backgroundColor = "#FAFAFA";
   //srcEle.style.borderColor   = "#DDDDDD";
 }

 function menuCat_Out( srcEle ) {
   srcEle.style.cursor          = "";
   srcEle.style.backgroundColor = "";
   //srcEle.style.borderColor   = "white";
 }

 function menuPag_Over( srcEle ) {
   srcEle.style.cursor          = "hand";
   srcEle.style.backgroundColor = "#FFFFFF";
   srcEle.style.borderColor     = "gray";
 }

 function menuPag_Out( srcEle ) {
   srcEle.style.cursor          = "";
   srcEle.style.backgroundColor = "";
   srcEle.style.borderColor     = "";
 }

 // ================
 //  NIEUWS BLOKJES
 // ================
 function divNews_Over( srcEle ) {
   srcEle.style.cursor          = "hand";
   srcEle.style.backgroundColor = "#FAFAFA";
   srcEle.style.borderColor     = "#DDDDDD";
 }

 function divNews_Out( srcEle ) {
   srcEle.style.cursor          = "";
   srcEle.style.backgroundColor = "";
   srcEle.style.borderColor     = "white";
 }

 // ================
 //  TABLE ROW BLUE
 // ================
 function tableRowBlue_Over( srcEle ) {
   srcEle.style.backgroundColor = "#D5F1FF";
   srcEle.style.cursor          = "hand";
 }

 function tableRowBlue_Down( srcEle ) {
   srcEle.style.backgroundColor = "#D5F1FF";
 }

 function tableRowBlue_Out( srcEle ) {
   srcEle.style.backgroundColor = "";
   srcEle.style.cursor          = "";
   srcEle.style.borderColor     = "white";
 }

 function tableRowCMS_Over( srcEle ) {
   srcEle.style.backgroundColor = "#C4DEFF";
   srcEle.style.cursor          = 'hand';
 }

 function tableRowCMS_Down( srcEle ) {
   srcEle.style.backgroundColor = "#C4DEFF";
 }

 function tableRowCMS_Out( srcEle ) {
     srcEle.style.backgroundColor = "";
 }

  // --------------------------------------------------------------------------------
  // Functie      : runClock()
  // Datum        : 4 feb 2005
  // Auteur       : E. de Heus
  // Omschrijving : Functie om datum en tijd in de statusbar te tonen ...
  // Parameters   : $cat_id = id van de categorie
  // Returns      : array( page_id, menu_desc )
  // --------------------------------------------------------------------------------
  function runClock() {
    theTime = window.setTimeout("runClock()", 1000);
    var today   = new Date();
    var display = today.toLocaleString();
    status      = display;
  }

  // --------------------------------------------------------------------------------
  // Functie      : Left()
  // Datum        : 2 okt 2007
  // Auteur       : E. de Heus
  // Omschrijving : Implementeren van de left functie
  // Parameters   : str = de string, n = aantal characters van links
  // Returns      : aangepaste string
  // --------------------------------------------------------------------------------  
  function Left( str, n ){
	  if ( n <= 0 )
      return "";
    else if ( n > String( str ).length )
      return str;
	 else
      return String( str ).substring( 0, n );
  }

  // --------------------------------------------------------------------------------
  // Functie      : Right()
  // Datum        : 2 okt 2007
  // Auteur       : E. de Heus
  // Omschrijving : Implementeren van de right functie
  // Parameters   : str = de string, n = aantal characters van rechts
  // Returns      : aangepaste string
  // --------------------------------------------------------------------------------    
  function Right( str, n ){
    if ( n <= 0 )
      return "";
    else if ( n > String( str ).length )
      return str;
    else {
      var iLen = String( str ).length;
      return String( str ).substring( iLen, iLen - n );
    }
  }
  
  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) { // v3.0
    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); 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+=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];}
  }

  // --------------------------------------------------------------------------------
  // Functie      : openScherm()
  // Datum        : 24 oktober 2011
  // Auteur       : E. de Heus
  // Omschrijving : Openen van en extra scherm
  // Parameters   : str = de string, n = aantal characters van rechts
  // Returns      : aangepaste string
  // -------------------------------------------------------------------------------- 
  function openScherm( url ) {
    var height = 600;
    var width  = 700;
    var x, y   = 20;
    if ( window.screen ) {
      x = (screen.availWidth - width) / 2;
      y = (screen.availHeight - height) / 2;
    }
    var properties = 'dependent=yes,menubar,resizable,scrollbars,toolbar,width=' + width + ',height=' + height + ',screenX=' + x + ',screenY=' + y + ',left=' + x + ',top=' + y;
    var win = window.open( url, '_blank', properties );
  }  
  
// ---- end of file. ----

