function setsw(txt){
		// <![CDATA[
			var obj_swf = new FlashObject("swfs/"+txt+".swf", "GALIZA", "484", "289", "7");
			obj_swf.addParam("quality", "high");
			obj_swf.addParam("menu", "false");
			obj_swf.addParam("scale", "noborder");
			//obj_swf.addParam("wmode", "transparent");
			obj_swf.write("animacion");
		// ]]>
		 }
		 
function set(nro,valor){
 if (nro==1){
		setsw("basic");
		document.getElementById('texto').innerHTML="<div id='texto'><h2 align='center'><strong>Basic Services & Facilities.</strong></h2><ul type='circle'><li>Wireless Internet.</li><li>Executive Desk available 24 hrs.</li><li>Private Telephone number with Voice Mail. Available upon request.</li><li>Money exchange.</li><li>Daily courtesy Bottled Water, Coffee Station and Housekeeping service in all Suites.</li><li>Swimming Pool.</li><li>Jacuzzi.</li><li>Gym.</li><li>Sauna.</li><li>Front Desk attention from 6:30 a.m. to 10:30 p.m.</li><li>Indoor Parking.</li><li>Pool Towels available in Front Desk.</li></ul></div>";
		valor=1;
	}
	else if (nro==2)
	{
		setsw("deluxeservices");
		document.getElementById('texto').innerHTML="<div id='texto'><h2 align='center'><strong>Ask our Front Desk for Assistance in the following Services:</strong></h2><ul type='circle'><li>Assistance with your requests for delivery services such as: Express restaurants, Express Pharmacy.</li><li>Beauty Salon next door (In Avalon Strip mall).</li><li>Restaurant Menus in Lobby.</li><li>Transportation assistance.</li><li>DVD player.</li><li>Pool Towels.</li><li>Small kitchen appliances upon availability.</li><li> Extra bed.</li></ul></div>";		
		valor=2;
	}
	else if (nro==3)
	{
		setsw("business");
		document.getElementById('texto').innerHTML="<div id='texto'><h2 align='center'><strong>Business Meeting Services:</strong></h2><ul type='circle'><li>Executive Desk available 24 hrs.</li> <li>2 courtesy Meeting Rooms for 4-8 persons. (reservation required).</li> <li>Coffee Break Service.</li> <li>Mini Bar Service.</li></ul>  <h2 align='center'><strong>Additional Assistance for your Meetings:</strong></h2><ul type='circle'><li>Secretaries (outsourced).</li> <li>Translators  (outsourced).</li> <li>Equipment: Video VIN, Copier, Scanner, Printer, Stationary, Supplies, etc. (Available for Rent).</li></ul></div>";
		valor=3;
	}
	else if (nro==4)
	{

		setsw("breakfast");
		document.getElementById('texto').innerHTML="<div id='texto'><h2 align='center'><strong>Complimentary Breakfast</Strong></h2><ul type='circle'><li>Enjoy a healthy deluxe Continental Breakfast in our <br><strong>'Morning Start Lounge'</strong></li><br><li>Includes:<p>Variety of juices, cereals, breads, Mermelades, cheeses and cold cuts, fruit, yogurt and some sort of breakfast pastry , Coffe and variety of teas. </p></li></ul></div>";
		
		valor=4;
	}
	else if (nro==5)
	{

		setsw("kidsamenities");
		document.getElementById('texto').innerHTML="<div id='texto'><h2 align='center'><strong>Kids Friendly Environment</Strong></h2><p style='padding-left:10px;padding-right:10px;'>Galiza Suites offers a variety of services, furniture and amenities oriented for kids:</p><ul type='circle'><li>Cribs.</li><li>Baby Chairs.</li><li>Appropiate plates, bowls &amp; mugs</li><li>Playground</li><li>Children&acute;s Swimming Pool</li></ul></div>";
		valor=5;
	}
	else if (nro==6)
	{
		setsw("");
		document.getElementById('texto').innerHTML="";
		document.getElementById('animacion').innerHTML="<div style=''><table width='100%' border='0' cellpadding='0' cellspacing='0'><tr><td width='758' height='289' style='background:#FFFFFF;'><div id='rate-list'><div style='padding-left:10px;padding-right:90px;'><h2>BACCHUS</h2>     <div align='justify'>        As a result of a careful speech to the former House Quitirris&iacute; which dates from 1870 and today recognized as Architectural Heritage, born Restaurant Bacchus. Located in the heart of Santa Ana, Bacchus has been characterized as an innovative space, which combines the arts with the cuisine in a holistic manner. Perfect location, excellent atmosphere, fine dining and a highly personalized service, are the main ingredients of success of this business proposition and gastronomic because since its inauguration in October 2004, the mission team has been making Bacchus each meal an event unique and memorable for their clients.        The menu, which is constantly renewed, has 50 carefully crafted dishes, including pastas, pizzas and desserts, the main dishes are a delight to the eye and palate. True to the philosophy of quality and good service, wine cellar is inhabited by a variety of international references, which manifest themselves in a wide and exclusive wine list.        </div>  <h2>LA TASCA DEL NOVILLO</h2><div align='justify'>        This restaurant will transport you to the magical culinary tradition of Spain.         The warmth, charm and comfortable atmosphere will invite you to taste the extraordinary combination of tradition and creativity.         Come and enjoy the best &quot;Paellas&quot;, fresh seafood and a variety of &quot;Tapas&quot;, without forgetting the best of Spanish wines.        <br />        <br />*The restaurante will cover the transportation charges.</div>    <h2>EL NOVILLO ALEGRE</h2>        <div align='justify'>        The specialists in Argentinian barbecues.        You will enjoy the best cuts of meat cooked to perfection, the way you like it, for example the famous &quot;Bife de Chorizo&quot; and their exclusive selection of the Argentiniancusine, enjoy a bottle of wine to highlight your meal. <br /><br />*The restaurante will cover the transportation charges. </div> <h2>ANTINIO&rsquo;S </h2>        <div align='justify'> Antonio&rsquo;s is an space inspired on the idea innovation and evolution of the concept of the traditional restaurant.To contemplate the sky spectacularly transformed into artwork by Fabio Herrera, to admire the powerful hand sculptures that hold the Dinning area, to enjoy the beats of latest musical collection of worldwide lounges, with &quot;cr&egrave;me de la socialit&egrave;, choosing from unique cocktails to the finest and most exclusive wines all in a glamourous Clubbing space, are some of the ingredients that distinguish Antonio&rsquo;s.<br/><br/> Be seduced by the atmosphere, the modern and contemporary style is not what will impress you the most, Antonio&rsquo;s is a life style: singularity, nobility and class reflect on the innovation of it&rsquo;s italyan cuisine revolution.<br/>In harmony with the new trends in world class restaurants, Chef Giuseppe Galuppo, has selected inicio, intermezzo, massimo e finale, Caviar, Truffles and Lobster to surprise the trendiest of it&rsquo;s clientele.</div></div></div></td></tr></table></div>";
		valor=6;
	}
		else if (nro==7)
	{

		setsw("");
		document.getElementById('texto').innerHTML="";
		document.getElementById('animacion').innerHTML="<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr><td width='758' height='289' style='background:#FFFFFF;'><div id='rate-list'><div style='padding-left:10px;padding-right:90px;'><h2 style='text-align:center;'>Basic Services</h2><div align='justify'><ul type='disc' style='text-align:justify;padding-right:15px;'><li><strong>Hair Services</strong></li>    <ul type='circle'>    <li>Haircuts:</li>		<ul><li>Men, Women and Children</li></ul>    <li>Styling:</li>        <ul><li>Blow dry</li>            <li>Special Occasions / Updos</li>        </ul>    </ul>    <ul type='circle'>    <li>Treatments:</li>		<ul><li>Conditioning</li>			<li>Hydrating</li>			<li>Permanent Wave</li>			<li>Nanokeratin, a Revolutionary Hair Repair Treatment</li>			<li>CHI, Hair Straightening Treatment</li>		</ul>	</ul>    <ul type='circle'>    <li>Coloring:</li>		<ul><li>Single Process</li>			<li>Bleach and Tone</li>			<li>Highlights</li>			<li>Corrective Color</li>		</ul>	</ul>    <ul>    <li>Roots Touch up</li>    </ul></ul><ul type='disc' style='text-align:justify;padding-right:15px;'><li><strong>Manicure &amp; Pedicure</strong></li>    <ul type='circle'>   <li>Manicure:</li>		<ul><li>Polish Change</li>            <li>Complete Manicure</li>            <li>Spa Manicure</li>			<li>Paraffin Treatment </li>		</ul>	</ul>    <ul type='circle'>    <li>Pedicure:</li>        <ul><li>Polish Change</li>            <li>Complete Pedicure</li>            <li>Spa Pedicure</li>			<li>Paraffin Treatment</li>        </ul>	</ul>    <ul type='circle'>    <li>Nail Enhancements:</li>		<ul><li>Organic Resin, Gel, Acrylic</li>			<li>Sculpting</li>		</ul>	</ul></ul><ul type='disc' style='text-align:justify;padding-right:15px;'><li><strong>Other Services and Treatments</strong></li>	<ul><li>Make Up</li>		<li>Eyelash Curling and Tinting</li>		<li>Passive Gym</li>		<li>Therapy	Vacuumtherapy</li>	</ul></ul><h2 style='text-align:center;'>Wraps, Massages And Reflexology</h2><ul type='disc' style='text-align:justify;padding-right:15px;'><li><strong>Exotic Body Wrap</strong></li><ul type='circle'><li>Experience the Aromatherapy benefits of chocolate or grape, while hydrating your skin with this full body treatment.<br />Treatment includes: full body exfoliation, wrap and 25 min massage.</li></ul></ul><ul type='disc' style='text-align:justify;padding-right:15px;'><li><strong>Seaweed Body Wrap</strong></li><ul type='circle'><li>This body treatment starts with a full body exfoliation, followed by an application of warmed &quot;Sea Remedy&quot;' and finally a nice 25 min massage.</li></ul></ul><ul type='disc style='text-align:justify;padding-right:15px;'><li><strong>Deep Tissue Massage</strong></li><ul type='circle'><li>This massage is recommended for people that are experiencing chronic pain or just like a deeper massage. Different points are manipulated to release tension, restoring muscle integrity and overall body balance.</li></ul></ul><ul type='disc' style='text-align:justify;padding-right:15px;'><li><strong>Hot Stone Massage</strong></li><ul type='circle'><li>Enjoy a relaxing journey with this full body massage. Your masseuse will use a unique combination of hot volcanic stones and essential oils to loosen and stretch your muscles</li></ul></ul><ul type='disc' style='text-align:justify;padding-right:15px;'><li><strong>Lymphatic Drainage</strong></li><ul type='circle'><li>A technique using gentle, rhythmic manipulations focusing on the head, face and neck.  Lymphatic drainage helps remove impurities and bring clarity to the mind while easing tension and sinus pressure.</li></ul></ul><ul type='disc' style='text-align:justify;padding-right:15px;'><li><strong>Reflexology</strong></li><ul type='circle'><li>Reflexology can enhance the release of tension and stress while relaxing the body, through application of pressure to specific points on the feet.</li></ul></ul><ul type='disc' style='text-align:justify;padding-right:15px;'><li><strong>Other Massages</strong></li><ul type='circle'><li>Anti-Stress</li><li>Shiatsu</li><li>Weight Loss</li><li>Therapeutic</li></ul></ul><h2 style='text-align:center;'>Facial Treatments</h2><p style='text-align:justify;padding-right:10px;'>Our esthetician evaluates your skin and applies customized formulations using techniques designed to improve the vitality and condition of your skin.<br />Some of the options are:</p><ul type='disc' style='text-align:justify;padding-right:15px;'><li><strong>Anti-Acne</strong></li><ul type='circle'><li>This treatment helps to deeply clean and purify the skin and to reduce inflammation and control excess oil. This treatment also can be adapted to treat other areas affected as the back and shoulders.</li></ul></ul><ul type='disc' style='text-align:justify;padding-right:15px;'><li><strong>Hydra Facial</strong></li> <ul type='circle'><li>A truly hydrating moisture treatment featuring active marine ingredients combined with a unique mask to combat dehydration, improve skin texture &amp; leave skin feeling soft &amp; radiant.</li></ul></ul><ul type='disc' style='text-align:justify;padding-right:15px;'><li><strong>Collagen Eye Treatment</strong></li><ul type='circle'><li>This collagen treatment leaves the contour of the eye soft and smooth and hides thin expression lines.</li></ul></ul><ul type='disc' style='text-align:justify;padding-right:15px;'><li><strong>Waxing and IPL ( Intense Pulsed Light )</strong></li><ul type='circle'><li>Gently  remove unwanted hair with wax or IPL, the latest hair removal technology, which  uses an intense Pulsed light to remove hair quickly and virtually painless.</li></ul></ul>    <table width='50%' align='center' class='tit_informe'>		<tr>			<td>Face</td><td>Chest</td><td>Legs</td>		</tr>		<tr>			<td>Eyebrows</td><td>Arms</td><td>Bikini</td>		</tr>		<tr>			<td>Upper Lip</td><td>Underarm</td><td>Back</td>		</tr>    </table><ul type='disc' style='text-align:justify;padding-right:15px;'><li><strong>Other Facial Treatments</strong></li><ul type='circle'><li>Mini facials</li><li>Deep Pore Facial</li><li>Facial Masks</li></ul></ul><br /></div></div></div></td></tr></table>";
		valor=7;
	}
	return valor;
 }
 
 function ValidaDatos(form,idi)
{
	//var form=document.getElementById(form);
	var color_fondo = "#FFFFFF";
	var color_fondo_error = "#E8E8E8";
	
	var msj1=new Array();
	msj1[1]='Error. THE EMAIL is wrong';
	msj1[2]='Error. EL EMAIL es incorrecto';
	
	var msj2=new Array();
	msj2[1]='Error. It is necessary to fill the field below ...';
	msj2[2]='Error. Es necesario llenar el siguiente campo...';
	
	//INICIALIZANDO CAMPOS A VALIDAR
	for (var i=0; i < form.elements.length;i++) { 
		if(form.elements[i].title=="*"){
			form.elements[i].style.background=color_fondo;
		}
	}
	//FILTRO PARA EL CORREO ELECTRONICO
	var filter=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
  	
	//INICIO DE VALIDACION
		for (var i=0; i < form.elements.length;i++) { 
		  //VALIDAR CAMPOS NECESARIOS EN BLANCO
		  if(form.elements[i].title=="*")
		  {
			if(form.elements[i].name.indexOf("mail")!=-1)
			{
				var cadena=form.elements[i].value;
				var pos=cadena.indexOf(",");
				cadena=cadena+',';
				while (pos!=-1)
				{
					var cad_mail=cadena.substring(0,pos);
					if (!filter.test(cad_mail))
					{
							alert(msj1[idi]);
							form.elements[i].value = "";
							form.elements[i].style.background=color_fondo_error;
							form.elements[i].focus();
							return false;
					}
					cadena=cadena.substring(pos+1,cadena.length);
					pos=cadena.indexOf(",");
				}
			}
		    if(form.elements[i].value==""){
				alert(msj2[idi]);
				form.elements[i].value = "";
				form.elements[i].style.background=color_fondo_error;
				form.elements[i].focus();
				return false;
			}		 		  
		  }
	}
	//document.form.submit();
	return true;
}


function textCounter(field, countfield, maxlimit) 
{
	if (field.value.length > maxlimit)
	{
		// if too long...trim it!
		field.value = field.value.substring(0, maxlimit);
		// otherwise, update 'characters left' counter
	}
	else 
	{
		countfield.value = maxlimit - field.value.length;
	}
}

/******************cookie**********************/
function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(120*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}
