// JavaScript Document
function janelaSecundaria (URL){ 
   window.open(URL,"janela1","width=600,height=450,scrollbars=NO") 
} 
function pop(x,w,h,s) {
	var l = ( (window.screen.width  - w) / 2 );
	var t = ( (window.screen.height - h) / 2 );
	janelinha = window.open(x,'media','leftmargin=0,topmargin=0,marginheight=0,marginwidth=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+s+',resizable='+s+',top='+t+',left='+l+',screenX='+l+',screenY='+t+',copyhistory=no,height='+h+',width='+w+'');
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}


// javascript:pop('lembrar_senha.php',350,245); */

$(document).ready(function(){

$("#aa_formlogin").load("obsidian/form_topo.php");
$("#new_form").load("obsidian/new_form.php");

$("#lembra_senha").live("click", function(){
   pop('lembrar_senha.php',350,245);


   });
   
   
   $("#secundaria").live("click", function(){
   pop('http://futura.mysuite.com.br/empresas/ftr/atendimento.php',600,450);


   });
   
   
   $("#criacao").live("click", function(){
   pop('contato_desenvolvimento.php',350,450);


   });
   
   

   


 var h='<object width="251" height="200"><param name="movie" value="http://www.youtube.com/v/MkXMQPZvDCY&hl=pt-br&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/MkXMQPZvDCY&hl=pt-br&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="251" height="200"></embed></object>';
         $("#aa_video").html(h);



 $("#anterior").live("click", function(){
  javascript:history.go(-1);

   });
   
   var i='<object width="251" height="200"><param name="movie" value="http://www.youtube.com/v/KERRqFTrUKc&hl=pt-br&fs=1" /></param><param name="allowFullScreen" value="true" /></param><param name="allowscriptaccess" value="always" /></param> <embed src="http://www.youtube.com/v/KERRqFTrUKc&hl=pt-br&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="251" height="200"></embed></object>';
   $("#video").html(i);
   
   $("#futura_orkut").html('<img src="fatia/bt_projegido_02.jpg" alt="Orkut" width="53" height="34" title="Orkut" />');

  $("#futura_youtube").html('<img src="fatia/bt_projegido_03.jpg" alt="Youtube" width="67" height="34" title="Youtube" />');

  $("#futura_google").html('<img src="fatia/bt_projegido_04.jpg" alt="Google Maps" width="91" height="34" title="Google Maps" />');

  $("#futura_twitter").html('<img src="fatia/bt_projegido_05.jpg" alt="Twitter" width="94" height="34" title="Twitter" />');


  $(".mostrar").toggle(function(e) {
        e.preventDefault();
       var caminho=$(this).attr("rel");
       $("#"+caminho).toggle("slow");
       $(this).html('Ocultar Detalhes');
       },
       function() {
      var caminho=$(this).attr("rel");
     $(this).html('Detalhes');
     $("#"+caminho).hide('slow');


   });
   
   
   $(".mostrar2").toggle(function(e) {
        e.preventDefault();
       var caminho=$(this).attr("rel");
        var sa = caminho.split("_");


       $("#"+sa[0]).toggle("slow");
       $("#"+sa[1]).html('Ocultar Detalhes');

       },
       function() {

      var caminho=$(this).attr("rel");
      var sa = caminho.split("_");
     $("#"+sa[1]).html('Detalhes');
     $("#"+sa[0]).hide('slow');


   });








   
   });
   






