/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *   __     __    __    __         __         _______    _______   *
 *  |  |   |  |  |  |  |  |       |  |       |  _____|  |   __  |  *
 *  |   \_/   |  |  |  |  |       |  |       |   __|    |  |__| |  *
 *  |  |\_/|  |  |  |  |  |____   |  |____   |  |____   |   _   /  *
 *  |__|   |__|  |__|  |_______|  |_______|  |_______|  |__| \__\  *
 *                                                                 *
 *                                     _____   ___   ___| .  ___   *
 *                                    |  |  | | __| |   | |  __ |  *
 *                                    |  |  | |___  |___| | |___|  *
 *                                                                 *
 *                                                                 *
 *    Fisier cu functii necesare functionarii paginilor de web     *
 *         ale site-ului firmei "GUV Electronics s.r.l."           *
 *     Codul poate fii folosit fara restrictii ( open source )     *
 *                                                                 *
 *           file description:               program functions     *
 *            programmer info:                 Written by  McM     *
 *               company info:             Miller Media s.r.l.     *
 *                     e-mail:             millermedia@xnet.ro     *
 *                                   catalinmartazan@yahoo.com     *
 *                                                                 *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */


window.defaultStatus = 'GUV Electronics - Avantajul tehnologiei';

function MM_reloadPage(init)
{
	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);


function newImage(arg)
{
  if (document.images)
  {
    rslt = new Image();
    rslt.src = arg;
    return rslt;
  }
}


function changeImages()
{
   if (document.images && (preloadFlag == true))
   {
      for (var i=0; i<changeImages.arguments.length; i+=2)
      {
         document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
      }
   }
}


var preloadFlag = false;
function preloadImages()
{
   if (document.images)
   {
      Home_over = newImage(CurrentOffsetDir + "All/images/MainMenu/Level_0/Home-over.gif");
      Products_over = newImage(CurrentOffsetDir + "All/images/MainMenu/Level_0/Products-over.gif");
      About_over = newImage(CurrentOffsetDir + "All/images/MainMenu/Level_0/About-over.gif");
      Contact_over = newImage(CurrentOffsetDir + "All/images/MainMenu/Level_0/Contact-over.gif");

      Tracker_over = newImage(CurrentOffsetDir + "All/images/MainMenu/Level_1/Tracker-over.gif");
      Techone_over = newImage(CurrentOffsetDir + "All/images/MainMenu/Level_1/Techone-over.gif");
      Automations_over = newImage(CurrentOffsetDir + "All/images/MainMenu/Level_1/Automations-over.gif");

      preloadFlag = true;
   }
}


function WriteIntro()
{
   document.write('<DIV ID=\"Intro\" STYLE=\"position: absolute; left:0; top:0; width:100%; height:100%; z-index:50; visibility: visible; background-color: #FFFFFF\">'+
                  '<TABLE WIDTH="100%" HEIGHT="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD NOWRAP>&nbsp;</TD><TD WIDTH="170" VALIGN="MIDDLE" NOWRAP><P CLASS="Intro">Pagin&#259; &icirc;n curs de &icirc;nc&#259;rcare</P></TD>'+
                  '<TD WIDTH="27" VALIGN="MIDDLE" NOWRAP> <IMG SRC="' + CurrentOffsetDir + 'All/images/Intro/Wait.gif" WIDTH="27" HEIGHT="27" BORDER="0"></TD><TD NOWRAP>&nbsp;</TD></TR></TABLE></DIV>');
}


function ShowPageContent()
{

  if (preloadFlag)
  {
      with (document.getElementById('Intro'))
	  {
		  style.visibility = 'hidden';
		  innerHTML = "";
          style.width = style.height = '0px';
      }

      with (document.getElementById('Ad'))
      {
      
         innerHTML = '<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="468" HEIGHT="42">' +
                     '<PARAM NAME="movie" VALUE="' + CurrentOffsetDir + 'All/animations/Slogan.swf">' +
                     '<PARAM NAME="quality" VALUE="high">' +
                     '<EMBED SRC="' + CurrentOffsetDir + 'All/animations/Slogan.swf" QUALITY="high" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" TYPE="application/x-shockwave-flash" WIDTH="468" HEIGHT="42"></EMBED></OBJECT>';
      }
      
  }
    
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *                                                               *
 *                          END of FILE                          *
 *                                                               *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */