
//my code [Galaxy Keon]
function showInfo(text)
{
  if(text) 
   {
    document.getElementById('link_info').innerHTML=text;
   }
}

function hideInfo(text) 
{
  document.getElementById('link_info').innerHTML=text;
}

function showImage(image, width, height,dest)
{
  if(image) 
   {
    document.getElementById(dest).innerHTML='<img src="'+image+'" style="width:'+width+'px; height: '+height+'px">';
   }
}

//getypte tekst
i=0; letter=''; 
function Start(message)
{ if (i!=message.length){ window.status=letter; letter+=message.charAt(i++); SleepFXTimer=setTimeout("Start('" + message + "')",10); } if (i==message.length){ letter+=message.charAt(i); window.status=letter; clearTimeout(SleepFXTimer); i=0; letter=''; } 
} 

function Stop(){ clearTimeout(SleepFXTimer); i=0; letter=''; window.status=""; }


  //--------------------------------------------------------------//
  // Full Window (stretched) Watermarked Background Image v2.0.1. //
  //--------------------------------------------------------------//
  //                                                              //
  //        Copyright (C) 2002-2004 QCS Systems Inc.              //
  //                                                              //
  //  This JavaScript can be used  with  permission as long as    //
  //  this message stays here in the header of the script. Any    //
  //  modifications and bug fixes are appreciated.                //
  //                                                              //
  //    Author : D.J.Oepkes                                       //
  //    Date   : 11/22/2002                                       //
  //    Email  : joepkes@qcssystems.com                           //
  //                                                              //
  //--------------------------------------------------------------//
  // Modifications                                                //
  //--------------------------------------------------------------//
  // 11/22/2004 D.J.Oepkes, Total rebuild as I finally found an   //
  //                        excellent way to do away with java-   //
  //                        script to position it. It's now all   //
  //                        done through CSS and an easy onload   //
  //                        function does all the layering work   //
  //--------------------------------------------------------------//
  // 01/12/2005 D.J.Oepkes, Removed one layer out the equation.   //
  //                        Also removed layer-position: fixed    //
  //                        to make flash work in firefox.        //
  //--------------------------------------------------------------//

  var backgroundset=false;   // do not change, for internal use only

  //--------------------------------------------------------------//
  // fixedBackground                                              //
  //--------------------------------------------------------------//
  // set the fixed background image. If Called for the first time //
  // it will set the necessary body styles, layers, and images to //
  // create the fixed background effect,  otherwise it will  just //
  // change the background image.                                 // 
  //                                                              //
  // Insert the following into the html to load the script        //
  //   <script src="fixedbackground.js"></script>                 //
  //                                                              //
  // 1) How to Use in body-tag (preferred):                       //
  //  <body onload="fixedBackground('background.jpg');">          //
  //                                                              //
  // 2) How to Use in link:                                       //
  //  <a href="javascript:fixedBackground('background.jpg');">    //
  //    Try this background...                                    //
  //  </a>                                                        //
  //                                                              //
  // 3) How to use in script:                                     //
  //  <script>                                                    //
  //    fixedBackground('background.jpg');                        //
  //  </script>                                                   //
  //--------------------------------------------------------------//

  function fixedBackground(url)
  {
    if(!backgroundset)
    {
      document.body.style.overflow = 'hidden';
      document.body.style.padding  = '0px';
      document.body.style.margin   = '0px';

      var overlay = document.createElement('DIV');
      overlay.style.position    = 'absolute';
      overlay.style.top         = '0px';
      overlay.style.left        = '0px';
      overlay.style.height      = '100%';
      overlay.style.width       = '100%';
      overlay.style.overflow    = 'auto';

      overlay.innerHTML         = document.body.innerHTML;
      document.body.innerHTML   = '<img id="background" height="100%"  width="100%" src="' + url + '" style="left: 0; bottom: 0; right: 0; top: 0; z-index: 0" />';

      document.body.appendChild(overlay);

      backgroundset=true;
    }
    else
      background.src=url;
  }

  //--------------------------------------------------------------//



//function to popup a link in a new window with specific size

var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus)
{
 if(pos=="random")
   {myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
 if(pos=="center")
   {myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null)
   {myleft=40;mytop=60}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=yes,directories=yes,status=yes,menubar=yes,toolbar=yes,resizable=yes";win=window.open(mypage,myname,settings);
win.focus();}
