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", "250px", "8.0.0", false, flashvars, params, attributes);
swfobject.embedSWF("representantes.swf", "representantes", "220px", "150px", "8.0.0", false, flashvars, params, attributes);
swfobject.embedSWF("certificaciones.swf", "certificaciones", "220px", "150px", "8.0.0", false, flashvars, params, attributes);
swfobject.embedSWF("clientes.swf", "clientes", "220px", "150px", "8.0.0", false, flashvars, params, attributes);
swfobject.embedSWF("gruas.swf", "gruas", "198px", "155px", "8.0.0", false, flashvars, params, attributes);


var bottom=''+
'<table width="910" border="0" cellpadding="0" cellspacing="0">'+
'<tr><td class="design">Design by <a href="http://www.sacsoluciones.com.ar" target="_blank">SAC Solutions</a></td><td class="foot">Grúas Torre © 2009<br />Neuquén 907 - Bernal Oeste <br />TelFax.: 4251-9373/4252-2637<br /></td></tr>'+
'</table>';



function pheight(){
  if ($("div#content").height() > $("div#pright").height()) {
        $("div#pright").height($("div#content").height()); 
  }
  else{
	 $("div#content").height($("div#pright").height())
  }
}

window.onload = pheight;

$(document).ready(function(){
	$("#bottom").html(bottom);	
   
});



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());}
};
