var flashvars = {};
var params = {};
    params.menu = "false";
    params.quality = "high";
    params.allowscriptaccess = "sameDomain";
    params.wmode = "transparent";    
var attributes = {};
    attributes.align = "middle";
swfobject.embedSWF("ptop.swf", "top", "950px", "220px", "8.0.0", false, flashvars, params, attributes);

swfobject.embedSWF("online.swf", "online", "180px", "150px", "8.0.0", false, flashvars, params, attributes);
swfobject.embedSWF("mfamilia.swf", "mfamilia", "180px", "150px", "8.0.0", false, flashvars, params, attributes);


var bottom=''+
'<table width="910" cellpadding="0" cellspacing="0" border="0">'+
'<tr><td><b>Sindicato del Personal de Frig. de Carnes Capital y Gran Buenos</b><br />Personería gremial N* 106. – Res. N° 24 del 22 de Enero de 1949  <br />Afiliado a FE.S.I.T.C.A.R.A.<br /><br />Salta 1121- C.A.B.A. -Telefax 54 11 4306 5403<br />&copy 2009</td><td><div id="sac">Design by <a href="http://www.sacsoluciones.com.ar" target="_blank">SAC Solutions</a></div></td></tr>'+
'</table>';


$(document).ready(function(){ 
var n=0;
  $("#bottom").html(bottom);
  $("ul.optionsleft .sublist").hide();
  $("ul.optionsleft .sublist .active").parent(".sublist").show();
  $("ul.optionsleft .active").children(".sublist").show();
  $("ul.optionsleft .sublist .active").children(".sublist").show();
  $("ul.optionsleft li").click(function(){
  	$("ul",this).slideToggle("fast", function () {
		n=n+1;
//		alert(n);
      });

  });
  /*$("ul.optionsleft li ul li").click(function(){
  	$("ul:eq(2)",this).slideToggle("fast");
  }); */
  
     

});



var filters = {
			nombre: function(el) {return ($(el).val() != '' && $(el).val() != -1);},
			apellido: function(el) {return ($(el).val() != '' && $(el).val() != -1);},
			empresa: function(el) {return ($(el).val() != '' && $(el).val() != -1);},
			consulta: function(el) {return ($(el).val() != '' && $(el).val() != -1);},
			email: function(el) {return /^[A-Za-z][A-Za-z0-9_.]*@[A-Za-z0-9_]+\.[A-Za-z0-9_.]+[A-za-z]$/.test($(el).val());},
			telefono: function(el){return /^[0-9- ]*$/.test($(el).val());}
};

