﻿function OpenForm(oForm, nWidth, nHeight){
	var w= nWidth;
	var h= nHeight;
	var win= null;
	var winl = (screen.width-w)/2;
	var wint = (screen.height-h)/2;
	myname = 'Abbantia';
	var scroll = 'yes';
	
	var settings  ='dialogHeight:'+h+'px; ';
	settings +='dialogWidth:'+w+'px; ';
	settings +='dialogTop:'+wint+'px; ';
	settings +='dialogLeft:'+winl+'px; ';
	settings +='resizable:yes; ';
	settings +='scrollbars: '+scroll+'; ';
	settings +='status:no ';
	
	window.showModalDialog(oForm, '', settings);
		
	return false; 
	}

function LoadFlash(oFlash, nWidth, nHeight){
	var LoadObject = '<object type="application/x-shockwave-flash" data="Flash/' + oFlash + '" width="' + nWidth + '" height="' + nHeight + '">';
	LoadObject += '<param name="movie" value="Flash/' + oFlash + '">'
	LoadObject += '<param name="quality" value="high">';
	LoadObject += '<param name="wmode" value="transparent">';
	LoadObject += '</object>';
	
	document.write(LoadObject);
}

function SetFocus(obj){
	document.getElementById(obj).focus();
}

function LoadModal(){
	self.focus()
}

function OpenContact(){
	window.open('http://www.abbantia.es/Contact.aspx','jav','width=300,height=500,resizable=no');
}

function GetURL(cVar){
	var regexS = "[\\?&]"+cVar+"=([^&#]*)";
	var regex = new RegExp (regexS);
	var tmpURL = window.location.href;
	var results = regex.exec(tmpURL);
		
	if( results == null )
		return "";
	else
		return results[1];
}

function LoadMenu(){
	stm_bm(["menu3ba5",900,"","blank.gif",0,"","",0,1,250,0,1000,10,10,0,"","",67108897,0,1,2,"default","hand","",1,25],this);
	stm_bp("p0",[0,4,0,0,0,0,0,0,90,"",-2,"",-2,50,0,0,"#999999","#E6EFF9","bg_02.gif",3,0,0,"#000000"]);
	stm_ai("p0i0",[0,"Productos Software","","",-1,-1,0,"","_self","","","","",0,0,0,"","",0,0,0,1,1,"#E6EFF9",1,"#E6EFF9",1,"","",3,3,1,1,"#000000","#666666","#FFFFFF","#FFFFFF","bold 9pt Verdana","bold 9pt Verdana",0,0,"","","","",0,0,0],180,33);
	stm_bpx("p1","p0",[1,4,-20,2,0,5,0,0,100,"",-20,"",-2,50,2,3,"#333333","#333333","",3,1,1]);
	stm_aix("p1i0","p0i0",[0,"Soluciones de Gestión","","",-1,-1,0,"BusinessSolutions.htm","_self","","Soluciones de Gestión Empresarial","","",0,0,0,"","",0,0,0,0,1,"#E6EFF9",1,"#000000",0,"","",3,3,0,0,"#E6EFF9","#000000","#FFFFFF","#6699FF","bold 8pt Verdana","bold 8pt Verdana"],165,25);
	stm_aix("p1i1","p1i0",[0,"Software de Gestión - ERP","","",-1,-1,0,"ERPSolutions.htm","_self","","Software de Gestión Empresarial"],165,25);
	stm_aix("p1i2","p1i0",[0,"Soluciones Web","","",-1,-1,0,"WebSolutions.htm","_self","","Soluciones sobre Internet"],165,25);
	stm_aix("p1i3","p1i0",[0,"Soluciones Movilidad","","",-1,-1,0,"MobileSolutions.htm","_self","","Soluciones de Movilidad"],165,25);
	stm_ep();
	stm_aix("p0i1","p0i0",[0,"Soluciones"],193,33);
	stm_bpx("p2","p1",[]);
	stm_aix("p2i0","p1i2",[0,"Distribución","","",-1,-1,0,"Distribution.htm","_self","","Soluciones para empresas de distribución","","",0,0,0,"","",0,0,0,0,1,"#E6EFF9",1,"#000000",0,"","",3,3,0,0,"#E6EFF9","#000000","#FFFFFF","#6699FF","bold 8pt Verdana","bold 8pt Verdana"],165,25);
	stm_aix("p2i1","p1i2",[0,"Fabricación y Ensamblaje","","",-1,-1,0,"Manufacturing.htm","_self","","Soluciones para empresas de fabricación y ensamblaje"],165,25);
	stm_aix("p2i2","p1i2",[0,"Servicios Profesionales","","",-1,-1,0,"ProfessionalServices.htm","_self","","Soluciones para empresas de Servicios Profesionales"],165,25);
	stm_aix("p2i3","p1i2",[0,"Venta al por Menor","","",-1,-1,0,"Retail.htm","_self","","Soluciones para empresas de Vanta al por Menor"],165,25);
	stm_ep();
	stm_aix("p0i2","p0i0",[0,"Plataforma Tecnológica"],200,33);
	stm_bpx("p3","p1",[1,4,-50]);
	stm_aix("p3i0","p1i2",[0,"Arquitectura Orientada a Servicios (SOA)","","",-1,-1,0,"Technology.htm","_self","","Arquitectura Tecnológica","","",0,0,0,"","",0,0,0,0,1,"#E6EFF9",1,"#000000",0,"","",3,3,0,0,"#E6EFF9","#000000","#FFFFFF","#6699FF","bold 8pt Verdana","bold 8pt Verdana"],165,25);
	stm_aix("p3i1","p1i2",[0,"Personalización a medida","","",-1,-1,0,"CustomProcesses.htm","_self","","Personalización a medida"],165,25);
	stm_ep();
	stm_aix("p0i3","p0i0",[0,"Servicios"],150,33);
	stm_bpx("p4","p3",[]);
	stm_aix("p4i0","p1i2",[0,"Modelo de Implantación Tecnológica","","",-1,-1,0,"Services.htm","_self","","Servicios Profesionales para la adopción de tecnología en las empresas","","",0,0,0,"","",0,0,0,0,1,"#E6EFF9",1,"#000000",0,"","",3,3,0,0,"#E6EFF9","#000000","#FFFFFF","#6699FF","bold 8pt Verdana","bold 8pt Verdana"],165,25);
	stm_ep();
	stm_aix("p0i4","p0i0",[0,"Empresa"],170,33);
	stm_bpx("p5","p1",[]);
	stm_aix("p5i0","p1i2",[0,"Valores Corporativos","","",-1,-1,0,"CorpValues.htm","_self","","Valores Corporativos","","",0,0,0,"","",0,0,0,0,1,"#E6EFF9",1,"#000000",0,"","",3,3,0,0,"#E6EFF9","#000000","#FFFFFF","#6699FF","bold 8pt Verdana","bold 8pt Verdana"],165,25);
	stm_aix("p5i1","p1i2",[0,"Localización y Contacto","","",-1,-1,0,"ContactUs.htm","_self","","Localización y Contacto"],165,25);
	stm_aix("p5i2","p1i2",[0,"Únete a Nosotros","","",-1,-1,0,"JoinUs.htm","_self","","Únete a nosotros"],165,25);
	stm_aix("p5i3","p1i2",[0,"Formulario","","",-1,-1,0,"ContactForm.htm","_self","","Formulario"],165,25);
	stm_em();
}
