/* $(document).ready(function () {
      var htm  = "<table border='0' width='100%' height='100%'>\n";
          htm += "<tr><td align='center'>\n";
          htm += "<img src='imagens/iCarregando.gif'>\n";
          htm += "</td></tr>\n";
          htm += "</table>\n";
      $('#menu a img').mouseover(function () { $(this).fadeTo('fast', 0.33); });
      $('#menu a img').mouseout(function ()  { $(this).fadeTo('slow', 1); });
      $('#menu a').click(function () {
           if ($(this).attr('id') != 'Inicial')
           {
              $('#conteudo').html(htm);
              exeAjax('retPg', 1, 'conteudo', $(this).attr('id'));
              switch ($(this).attr('id'))
              {
                  case 'Inicial':     $('#titulo h1').text('Bem Vindo');    break;
                  case 'QuemSomos':   $('#titulo h1').text('Quem Somos');   break;
                  case 'Portfolio':   $('#titulo h1').text('Portfólio');    break;
                  case 'Solucoes':    $('#titulo h1').text('Soluções');     break;
                  case 'Aplicacoes':  $('#titulo h1').text('Aplicações');   break;
                  case 'FaleConosco': $('#titulo h1').text('Fale Conosco'); break;
              }
              return false;
           }
      });
      $('#noticias a').click(function () {
           $('#conteudo').html(htm);
           var str = $(this).attr('id');
           strSep = str.split('_');
           exeAjax('retPg', 1, 'conteudo', strSep[0], strSep[1]);
           switch (strSep[0])
           {
               case 'Noticias': $('#titulo h1').text('Notícias'); break;
           }
           return false;
      });

      $('#destaque a img').fadeTo('fast', 0.70);
      $('#destaque a img').mouseover(function () { $(this).fadeTo('normal', 1); });
      $('#destaque a img').mouseout(function ()  { $(this).fadeTo('slow', 0.70); });

    $(function() {
        $('#pInicial .abrir').lightBox();
    });

    $('#pInicial ul img').fadeTo('fast', 0.70);
    $('#pInicial ul img').mouseover(function () {
       $(this).fadeTo('normal', 1);
    });
    $('#pInicial ul img').mouseout(function ()  {
       $(this).fadeTo('slow', 0.70);
    });

    $('#avancar').click(function () {
        var left = $('#pInicial ul').css('margin-left');
        if(parseInt(left.replace('px', '')) > -700)
           $('#pInicial ul').animate({marginLeft: '-=350px'}, 750);
        else
           $('#pInicial ul').animate({marginLeft: '0px'}, 250);
        return false;
    });
    $('#voltar').click(function () {
        var left = $('#pInicial ul').css('margin-left');
        if(parseInt(left.replace('px', '')) < 0)
           $('#pInicial ul').animate({marginLeft: '+=350px'}, 750);
        else
           $('#pInicial ul').animate({marginLeft: '-700px'}, 250);
        return false;
    })

 });
*/
	function InserirFlash(swf, wid, hei, tit)
	{
		document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"" + wid + "\" height=\"" + hei + "\" title=\"" + tit + "\">");
		document.writeln("<param name=\"movie\" value=\"" + swf + "\" />");
		document.writeln("<param name=\"menu\" value=\"false\" />");
		document.writeln("<param name=\"quality\" value=\"high\" />");
		document.writeln("<param name=\"scale\" value=\"noscale\" />");
		document.writeln("<param name=\"wmode\" value=\"transparent\" />");
		document.writeln("<embed src=\"" + swf + "\" type=\"application/x-shockwave-flash\" quality=\"high\" wmode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" menu=\"false\" scale=\"noscale\" width=\"" + wid + "\" height=\"" + hei + "\"></embed>");
		document.writeln("</object>");
	}		
	
