function detalhe(cod,fot)
{
	window.open('detalhe.php?cod=' + cod + '&fot=' + fot, '', "Height=390px, Width= 420px, Top= 25px, Left= 25px, help= Yes, resizable= no, status= no, scrollbars=no")
}
function consulta(cod)
{
	window.open('consulta.php?cod=' + cod, '', "Height=300px, Width= 300px, Top= 25px, Left= 25px, help= Yes, resizable= no, status= no, scrollbars=no")
}
function esqueci()
{
	window.open('esqueci.php', '', "Height=220px, Width= 340px, Top= 25px, Left= 25px, help= Yes, resizable= no, status= no, scrollbars=no")
}
function jardim1cp()
{
	window.open('e_i_jardim1_cp.htm', '', "Height=500px, Width= 500px, Top= 25px, Left= 25px, help= Yes, resizable= no, status= no, scrollbars=yes")
}
function jardim2cp()
{
	window.open('e_i_jardim2_cp.htm', '', "Height=500px, Width= 500px, Top= 25px, Left= 25px, help= Yes, resizable= no, status= no, scrollbars=yes")
}
function precp()
{
	window.open('e_i_pre_cp.htm', '', "Height=500px, Width= 500px, Top= 25px, Left= 25px, help= Yes, resizable= no, status= no, scrollbars=yes")
}
function indique()
{
	window.open('indique.htm', '', "Height=150, Width=350, Top=10, Left=10, help=Yes, resizable=no, status=no")
}
function cadastrese()
{
	window.open('cadastrese.htm', '', "Height=110, Width=350, Top=10, Left=10, help=Yes, resizable=no, status=no")
}
function registered()
{
	window.open('registered.htm', '', "Height=110, Width=350, Top=10, Left=10, help=Yes, resizable=no, status=no")
}
function registrese()
{
	window.open('registrese.htm', '', "Height=110, Width=350, Top=10, Left=10, help=Yes, resizable=no, status=no")
}
function janela_fotos()
{
	window.open('fotos/fotos.php?min=0', '', "Height=350px, Width= 650px, Top= 25px, Left= 25px, help= Yes, resizable= no, status= no")
}
var Aberto = ""
var Fechado = ""

function preload(){
if(document.images){
Aberto = new Image() 
Fechado = new Image()
Aberto.src = "imagens_gerais/mais2.jpg"
Fechado.src = "imagens_gerais/menos2.jpg"
}}
function mostra(item,item2){
if (item.style.display=='none'){
item.style.display='';
item2.src=Fechado.src
}
else{
item.style.display='none'
item2.src=Aberto.src
}
}
preload();

//v1.0
//Copyright 2006 Adobe Systems, Inc. All rights reserved.
function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '<object ';
  for (var i in objAttrs)
    str += i + '="' + objAttrs[i] + '" ';
  str += '>';
  for (var i in params)
    str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  str += '<embed ';
  for (var i in embedAttrs)
    str += i + '="' + embedAttrs[i] + '" ';
  str += ' ></embed></object>';

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "id":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}

