function ShowFlash(item, getvars)
{
  if (item == 'header') {
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="762" height="274">\n');
    document.write('  <param name="movie" value="http://www.starline.nl/flash/starline_header.swf' + getvars + '">\n');
    document.write('  <param name=quality value=high>\n');
    document.write('  <param name=menu value=false>\n');
    document.write('  <param name="wmode" value="transparent">\n');
    document.write('  <embed src="http://www.starline.nl/flash/starline_header.swf' + getvars + '" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="762" height="274" wmode="transparent"></embed>\n');
    document.write('</object>\n');
  }
}

function PopUpWindow(Wurl,Wname,Wtoolbar,Wlocation,Wdirectories,Wstatus,Wmenubar,Wscrollbars,Wresizable,Wcopyhistory,_width,_height)
{
  Wtop  = (document.body.clientHeight-_height)/2;
  Wleft = (document.body.clientWidth-_width)/2
  nw = window.open(Wurl,Wname,"height="+_height+",width="+_width+",top="+Wtop+",left="+Wleft+",resizable="+Wresizable+",scrollbars="+Wscrollbars+",toolbar="+Wtoolbar+",menubar="+Wmenubar+",location="+Wlocation+",status="+Wstatus+",directories="+Wdirectories);
}

function addLoadEvent(func)
{
  var oldonload = window.onload;
  if (typeof window.onload != 'function')
  {
    window.onload = func;
  }
  else
  {
    window.onload = function()
    {
      if (oldonload)
      {
        oldonload();
      }
      func();
    }
  }
}

/*############################################################################*/
/*# Initialize */

function Sunglass_Initialize()
{
  //# Defined sizes for popupdiv types
  var aPopupDivSizes = new Array;
  aPopupDivSizes['popup'] = new Array;
  aPopupDivSizes['popup']['width'] = 752;
  aPopupDivSizes['popup']['height'] = 410;
  document['aPopupDivSizes'] = aPopupDivSizes;

  //# Create sunglassdiv and add onclick events
  if ('function' == typeof SUNGLASS_CreateSunglassPopup)
  {
    SUNGLASS_CreateSunglassPopup();
  }
  //# Create close popup links
  if ('function' == typeof SUNGLASS_InitClosePopupWindow)
  {
    SUNGLASS_InitClosePopupWindow();
  }
}



function HomePopupShow()
{
  //Sunglass_Initialize();
  //SUNGLASS_SunglassPopupShowType('http://www.starline.nl/popup.html','popup');
  //setTimeout('SUNGLASS_SunglassPopupHide();',5000);
}

/*# /Initialize */
/*############################################################################*/