function Sunglass_Initialize()
{
  //# Defined sizes for popupdiv types
  var aPopupDivSizes = new Array;
  aPopupDivSizes['popup'] = new Array;
  aPopupDivSizes['popup']['width'] = 940;
  aPopupDivSizes['popup']['height'] = 521;
  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()
{
  if ( document.location.pathname
       && ( '/' == document.location.pathname 
            || '/technoservice/' == document.location.pathname ) )
  {
    Sunglass_Initialize();
    SUNGLASS_SunglassPopupShowType('/technoservice/popup.html','popup');
  }
}

if ('function' == typeof WHITE_AddBodyLoadFunction)
{
  if ('function' == typeof SUNGLASS_InitClosePopupWindow)
  {
    WHITE_AddBodyLoadFunction(SUNGLASS_InitClosePopupWindow);
  }
  WHITE_AddBodyLoadFunction(HomePopupShow);
}