// JavaScript Document

function showDivComite (id) {

	

	for (i=1; i<=3; i++){

		var divID = "divcomite" + i;

		document.getElementById(divID).style.display="none";

	}

	document.getElementById(id).style.display="block";

		

}





function changeClassFicha(id){

	

var fichaID = document.getElementById(id);

fichaID.className="fichaOver";



}


function ControlVersion()

{

	var version;

	var axo;

	var e;

	// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry

	try {

		// version will be set for 7.X or greater players

		axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");

		version = axo.GetVariable("$version");

	} catch (e) {

	}

	if (!version)

	{

		try {

			// version will be set for 6.X players only

			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");

			

			// installed player is some revision of 6.0

			// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,

			// so we have to be careful. 

			

			// default to the first public version

			version = "WIN 6,0,21,0";

			// throws if AllowScripAccess does not exist (introduced in 6.0r47)		

			axo.AllowScriptAccess = "always";

			// safe to call for 6.0r47 or greater

			version = axo.GetVariable("$version");

		} catch (e) {

		}

	}

	if (!version)

	{

		try {

			// version will be set for 4.X or 5.X player

			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");

			version = axo.GetVariable("$version");

		} catch (e) {

		}

	}

	if (!version)

	{

		try {

			// version will be set for 3.X player

			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");

			version = "WIN 3,0,18,0";

		} catch (e) {

		}

	}

	if (!version)

	{

		try {

			// version will be set for 2.X player

			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");

			version = "WIN 2,0,0,11";

		} catch (e) {

			version = -1;

		}

	}

	

	return version;

}

// JavaScript helper required to detect Flash Player PlugIn version information

function GetSwfVer(){

	// NS/Opera version >= 3 check for Flash plugin in plugin array

	var flashVer = -1;

	

	if (navigator.plugins != null && navigator.plugins.length > 0) {

		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {

			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";

			var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;

			var descArray = flashDescription.split(" ");

			var tempArrayMajor = descArray[2].split(".");			

			var versionMajor = tempArrayMajor[0];

			var versionMinor = tempArrayMajor[1];

			var versionRevision = descArray[3];

			if (versionRevision == "") {

				versionRevision = descArray[4];

			}

			if (versionRevision[0] == "d") {

				versionRevision = versionRevision.substring(1);

			} else if (versionRevision[0] == "r") {

				versionRevision = versionRevision.substring(1);

				if (versionRevision.indexOf("d") > 0) {

					versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));

				}

			}

			var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;

		}

	}

	// MSN/WebTV 2.6 supports Flash 4

	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;

	// WebTV 2.5 supports Flash 3

	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;

	// older WebTV supports Flash 2

	else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;

	else if ( isIE && isWin && !isOpera ) {

		flashVer = ControlVersion();

	}	

	return flashVer;

}

// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available

function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)

{

	versionStr = GetSwfVer();

	if (versionStr == -1 ) {

		return false;

	} else if (versionStr != 0) {

		if(isIE && isWin && !isOpera) {

			// Given "WIN 2,0,0,11"

			tempArray         = versionStr.split(" "); 	// ["WIN", "2,0,0,11"]

			tempString        = tempArray[1];			// "2,0,0,11"

			versionArray      = tempString.split(",");	// ['2', '0', '0', '11']

		} else {

			versionArray      = versionStr.split(".");

		}

		var versionMajor      = versionArray[0];

		var versionMinor      = versionArray[1];

		var versionRevision   = versionArray[2];

        	// is the major.revision >= requested major.revision AND the minor version >= requested minor

		if (versionMajor > parseFloat(reqMajorVer)) {

			return true;

		} else if (versionMajor == parseFloat(reqMajorVer)) {

			if (versionMinor > parseFloat(reqMinorVer))

				return true;

			else if (versionMinor == parseFloat(reqMinorVer)) {

				if (versionRevision >= parseFloat(reqRevision))

					return true;

			}

		}

		return false;

	}

}

function AC_AddExtension(src, ext)

{

  if (src.indexOf('?') != -1)

    return src.replace(/\?/, ext+'?'); 

  else

    return src + ext;

}

function AC_Generateobj(objAttrs, params, embedAttrs) 

{ 

  var str = '';

  if (isIE && isWin && !isOpera)

  {

    str += '<object ';

    for (var i in objAttrs)

    {

      str += i + '="' + objAttrs[i] + '" ';

    }

    str += '>';

    for (var i in params)

    {

      str += '<param name="' + i + '" value="' + params[i] + '" /> ';

    }

    str += '</object>';

  }

  else

  {

    str += '<embed ';

    for (var i in embedAttrs)

    {

      str += i + '="' + embedAttrs[i] + '" ';

    }

    str += '> </embed>';

  }

  document.write(str);

}

function AC_FL_RunContent(){

  var ret = 

    AC_GetArgs

    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"

     , "application/x-shockwave-flash"

    );

  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);

}

function AC_SW_RunContent(){

  var ret = 

    AC_GetArgs

    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"

     , null

    );

  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);

}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){

  var ret = new Object();

  ret.embedAttrs = new Object();

  ret.params = new Object();

  ret.objAttrs = new Object();

  for (var i=0; i < args.length; i=i+2){

    var currArg = args[i].toLowerCase();    

    switch (currArg){	

      case "classid":

        break;

      case "pluginspage":

        ret.embedAttrs[args[i]] = args[i+1];

        break;

      case "src":

      case "movie":	

        args[i+1] = AC_AddExtension(args[i+1], ext);

        ret.embedAttrs["src"] = args[i+1];

        ret.params[srcParamName] = args[i+1];

        break;

      case "onafterupdate":

      case "onbeforeupdate":

      case "onblur":

      case "oncellchange":

      case "onclick":

      case "ondblclick":

      case "ondrag":

      case "ondragend":

      case "ondragenter":

      case "ondragleave":

      case "ondragover":

      case "ondrop":

      case "onfinish":

      case "onfocus":

      case "onhelp":

      case "onmousedown":

      case "onmouseup":

      case "onmouseover":

      case "onmousemove":

      case "onmouseout":

      case "onkeypress":

      case "onkeydown":

      case "onkeyup":

      case "onload":

      case "onlosecapture":

      case "onpropertychange":

      case "onreadystatechange":

      case "onrowsdelete":

      case "onrowenter":

      case "onrowexit":

      case "onrowsinserted":

      case "onstart":

      case "onscroll":

      case "onbeforeeditfocus":

      case "onactivate":

      case "onbeforedeactivate":

      case "ondeactivate":

      case "type":

      case "codebase":

      case "id":

        ret.objAttrs[args[i]] = args[i+1];

        break;

      case "width":

      case "height":

      case "align":

      case "vspace": 

      case "hspace":

      case "class":

      case "title":

      case "accesskey":

      case "name":

      case "tabindex":

        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];

        break;

      default:

        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];

    }

  }

  ret.objAttrs["classid"] = classid;

  if (mimeType) ret.embedAttrs["type"] = mimeType;

  return ret;

}



function cambioIdioma (idioma) {

var rutaAbsoluta = self.location.href;

var posicionUltimaBarra = rutaAbsoluta.lastIndexOf("/");

var rutaRelativa = rutaAbsoluta.substring( posicionUltimaBarra + "/".length , rutaAbsoluta.length );     


var rutaTotal = "../"+idioma+"/"+rutaRelativa;


window.location.href= rutaTotal;
	
}

function ConfirmarReset() {
if(window.confirm('¿Realmente desea resetear la Base de Datos? TODOS LOS CABALLOS ACTUALES SERÁN ELIMINADOS'))
{
	
document.location.href="resetbbdd.php";
}
}

function ConfirmarEliminarDatos(id,nombre,tipo) {
	if (tipo=='caballo') {
		rutaTotal = "borrarCaballo.php?id="+id;
		if(window.confirm('¿Realmente desea eliminar el caballo '+nombre+'?')){
			window.location.href= rutaTotal;
		}
	}
	if (tipo=='noticia') {
		rutaTotal = "borrarNoticia.php?id="+id;
		if(window.confirm('¿Realmente desea eliminar la noticia \''+nombre+'\'?')){
			window.location.href= rutaTotal;
		}
	}
	if (tipo=='foto') {
		rutaTotal = "borrarFoto.php?foto="+nombre+"&id="+id;
		if(window.confirm('¿Realmente desea eliminar la foto?')){
			window.location.href= rutaTotal;
		}
	}
}


function ConfirmarEliminarFoto(id,campo,foto) {
		rutaTotal = "borrarFoto.php?campo="+campo+"&id="+id+"&foto="+foto;
		if(window.confirm('¿Realmente desea eliminar la foto?')){
			window.location.href= rutaTotal;
		}

}


//PIES

function pieESP(){
document.write("      <div style=\"position:absolute; left: 649px; top: 29px;\">");
document.write("        <object id=\"FlashID3\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"270\" height=\"30\">");
document.write("          <param name=\"movie\" value=\"informacion.swf\" \/>");
document.write("          <param name=\"quality\" value=\"high\" \/>");
document.write("          <param name=\"wmode\" value=\"transparent\" \/>");
document.write("          <param name=\"swfversion\" value=\"6.0.65.0\" \/>");
document.write("          <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->");
document.write("          <param name=\"expressinstall\" value=\"..\/scripts\/expressInstall.swf\" \/>");
document.write("          <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->");
document.write("          <!--[if !IE]>-->");
document.write("          <object type=\"application\/x-shockwave-flash\" data=\"informacion.swf\" width=\"270\" height=\"30\">");
document.write("            <!--<![endif]-->");
document.write("            <param name=\"quality\" value=\"high\" \/>");
document.write("            <param name=\"wmode\" value=\"transparent\" \/>");
document.write("            <param name=\"swfversion\" value=\"6.0.65.0\" \/>");
document.write("            <param name=\"expressinstall\" value=\"..\/scripts\/expressInstall.swf\" \/>");
document.write("            <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->");
document.write("            <div>");
document.write("              <h4>Content on this page requires a newer version of Adobe Flash Player.<\/h4>");
document.write("              <p><a href=\"http:\/\/www.adobe.com\/go\/getflashplayer\"><img src=\"http:\/\/www.adobe.com\/images\/shared\/download_buttons\/get_flash_player.gif\" alt=\"Get Adobe Flash player\" width=\"112\" height=\"33\" \/><\/a><\/p>");
document.write("            <\/div>");
document.write("            <!--[if !IE]>-->");
document.write("          <\/object>");
document.write("          <!--<![endif]-->");
document.write("        <\/object>");
document.write("      <\/div>");
document.write("      <img src=\"imagenes\/pie.png\" alt=\"\" width=\"933\"   height=\"196\" usemap=\"#Map\" style=\"border:none\"\/>");
document.write("      <map name=\"Map\" id=\"Map\">");
document.write("        <area shape=\"rect\" coords=\"76,98,147,180\" href=\"http:\/\/www.chivite.es\" target=\"_blank\" alt=\"\" \/>");
document.write("        <area shape=\"poly\" coords=\"245,93,238,110,203,116,200,183,314,185,314,115,286,113,288,96\" href=\"http:\/\/www.rolex.com\" target=\"_blank\" alt=\"\" \/>");
document.write("        <area shape=\"rect\" coords=\"423,117,532,154\" href=\"http:\/\/www.banesto.es\" target=\"_blank\" alt=\"\" \/>");
document.write("        <area shape=\"rect\" coords=\"597,142,803,184\" href=\"http:\/\/www.uax.es\/hospitalveterinario\" target=\"_blank\" alt=\"\" \/>");
document.write("        <area shape=\"rect\" coords=\"628,104,759,135\" href=\"http:\/\/www.christies.com\/\" target=\"_blank\" alt=\"\" \/>");
document.write("        <area shape=\"rect\" coords=\"823,149,884,179\" href=\"http:\/\/www.omsports.com\/\" target=\"_blank\" alt=\"\" \/>");
document.write("        <area shape=\"rect\" coords=\"805,98,908,146\" href=\"http:\/\/www.destrier.com\/\" target=\"_blank\" \/>");
document.write("<area shape=\"rect\" coords=\"23,33,85,53\" href=\"contacto.php\" alt=\"\" \/>");
document.write("        <area shape=\"rect\" coords=\"105,33,185,52\" href=\"llegar.html\" alt=\"\" \/>");
document.write("      <\/map>");
}

function pieFR(){
document.write("<div id=\"pie\">");
document.write("    <div style=\"position:absolute; left: 649px; top: 29px;\">");
document.write("      <object id=\"FlashID3\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"270\" height=\"30\">");
document.write("        <param name=\"movie\" value=\"informacion.swf\" \/>");
document.write("        <param name=\"quality\" value=\"high\" \/>");
document.write("        <param name=\"wmode\" value=\"transparent\" \/>");
document.write("        <param name=\"swfversion\" value=\"6.0.65.0\" \/>");
document.write("        <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->");
document.write("        <param name=\"expressinstall\" value=\"..\/scripts\/expressInstall.swf\" \/>");
document.write("        <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->");
document.write("        <!--[if !IE]>-->");
document.write("        <object type=\"application\/x-shockwave-flash\" data=\"informacion.swf\" width=\"270\" height=\"30\">");
document.write("          <!--<![endif]-->");
document.write("          <param name=\"quality\" value=\"high\" \/>");
document.write("          <param name=\"wmode\" value=\"transparent\" \/>");
document.write("          <param name=\"swfversion\" value=\"6.0.65.0\" \/>");
document.write("          <param name=\"expressinstall\" value=\"..\/scripts\/expressInstall.swf\" \/>");
document.write("          <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->");
document.write("          <div>");
document.write("            <h4>Content on this page requires a newer version of Adobe Flash Player.<\/h4>");
document.write("            <p><a href=\"http:\/\/www.adobe.com\/go\/getflashplayer\"><img src=\"http:\/\/www.adobe.com\/images\/shared\/download_buttons\/get_flash_player.gif\" alt=\"Get Adobe Flash player\" width=\"112\" height=\"33\" \/><\/a><\/p>");
document.write("          <\/div>");
document.write("          <!--[if !IE]>-->");
document.write("        <\/object>");
document.write("        <!--<![endif]-->");
document.write("      <\/object>");
document.write("    <\/div>");
document.write("      <img src=\"imagenes\/pie.png\" alt=\"\" width=\"933\"   height=\"196\" usemap=\"#Map\" style=\"border:none\"\/>");
document.write("      <map name=\"Map\" id=\"Map\">");
document.write("        <area shape=\"rect\" coords=\"76,98,147,180\" href=\"http:\/\/www.chivite.es\" target=\"_blank\" alt=\"\" \/>");
document.write("        <area shape=\"poly\" coords=\"245,93,238,110,203,116,200,183,314,185,314,115,286,113,288,96\" href=\"http:\/\/www.rolex.com\" target=\"_blank\" alt=\"\" \/>");
document.write("        <area shape=\"rect\" coords=\"423,117,532,154\" href=\"http:\/\/www.banesto.es\" target=\"_blank\" alt=\"\" \/>");
document.write("        <area shape=\"rect\" coords=\"809,99,893,138\" href=\"http:\/\/www.destrier.com\" target=\"_blank\" alt=\"\" \/>");
document.write("<area shape=\"rect\" coords=\"584,140,790,182\" href=\"http:\/\/www.uax.es\/hospitalveterinario\" target=\"_blank\" alt=\"\" \/>");
document.write("        <area shape=\"rect\" coords=\"626,107,757,138\" href=\"http:\/\/www.christies.com\/\" target=\"_blank\" alt=\"\" \/>");
document.write("        <area shape=\"rect\" coords=\"825,149,886,179\" href=\"http:\/\/www.omsports.com\/\" target=\"_blank\" alt=\"\" \/>");
document.write("        <area shape=\"rect\" coords=\"23,33,85,53\" href=\"contacto.php\" alt=\"\" \/>");
document.write("        <area shape=\"rect\" coords=\"105,33,229,51\" href=\"llegar.html\" alt=\"\" \/>");
document.write("      <\/map>");
document.write("    <\/div>");
}

function pieING(){
document.write("<div id=\"pie\">");
document.write("    <div style=\"position:absolute; left: 649px; top: 29px;\">");
document.write("      <object id=\"FlashID3\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"270\" height=\"30\">");
document.write("        <param name=\"movie\" value=\"informacion.swf\" \/>");
document.write("        <param name=\"quality\" value=\"high\" \/>");
document.write("        <param name=\"wmode\" value=\"transparent\" \/>");
document.write("        <param name=\"swfversion\" value=\"6.0.65.0\" \/>");
document.write("        <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->");
document.write("        <param name=\"expressinstall\" value=\"..\/scripts\/expressInstall.swf\" \/>");
document.write("        <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->");
document.write("        <!--[if !IE]>-->");
document.write("        <object type=\"application\/x-shockwave-flash\" data=\"informacion.swf\" width=\"270\" height=\"30\">");
document.write("          <!--<![endif]-->");
document.write("          <param name=\"quality\" value=\"high\" \/>");
document.write("          <param name=\"wmode\" value=\"transparent\" \/>");
document.write("          <param name=\"swfversion\" value=\"6.0.65.0\" \/>");
document.write("          <param name=\"expressinstall\" value=\"..\/scripts\/expressInstall.swf\" \/>");
document.write("          <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->");
document.write("          <div>");
document.write("            <h4>Content on this page requires a newer version of Adobe Flash Player.<\/h4>");
document.write("            <p><a href=\"http:\/\/www.adobe.com\/go\/getflashplayer\"><img src=\"http:\/\/www.adobe.com\/images\/shared\/download_buttons\/get_flash_player.gif\" alt=\"Get Adobe Flash player\" width=\"112\" height=\"33\" \/><\/a><\/p>");
document.write("          <\/div>");
document.write("          <!--[if !IE]>-->");
document.write("        <\/object>");
document.write("        <!--<![endif]-->");
document.write("      <\/object>");
document.write("    <\/div>");
document.write("      <img src=\"imagenes\/pie.png\" alt=\"\" width=\"933\"   height=\"196\" usemap=\"#Map\" style=\"border:none\"\/>");
document.write("      <map name=\"Map\" id=\"Map\">");
document.write("        <area shape=\"rect\" coords=\"76,98,147,180\" href=\"http:\/\/www.chivite.es\" target=\"_blank\" alt=\"\" \/>");
document.write("        <area shape=\"poly\" coords=\"245,93,238,110,203,116,200,183,314,185,314,115,286,113,288,96\" href=\"http:\/\/www.rolex.com\" target=\"_blank\" alt=\"\" \/>");
document.write("        <area shape=\"rect\" coords=\"423,117,532,154\" href=\"http:\/\/www.banesto.es\" target=\"_blank\" alt=\"\" \/>");
document.write("        <area shape=\"rect\" coords=\"594,139,800,181\" href=\"http:\/\/www.uax.es\/hospitalveterinario\" target=\"_blank\" alt=\"\" \/>");
document.write("        <area shape=\"rect\" coords=\"622,105,753,136\" href=\"http:\/\/www.christies.com\/\" target=\"_blank\" alt=\"\" \/>");
document.write("        <area shape=\"rect\" coords=\"826,147,887,177\" href=\"http:\/\/www.omsports.com\/\" target=\"_blank\" alt=\"\" \/>");
document.write("        <area shape=\"rect\" coords=\"808,96,899,143\" href=\"http:\/\/www.destrier.com\" target=\"_blank\" alt=\"\" \/>");
document.write("<area shape=\"rect\" coords=\"23,33,85,53\" href=\"contacto.php\" alt=\"\" \/>");
document.write("        <area shape=\"rect\" coords=\"105,33,185,52\" href=\"llegar.html\" alt=\"\" \/>");
document.write("      <\/map>");
document.write("    <\/div>");
}


//MENUS

function menuEsp(){
document.write("<div id=\"menu\">");
document.write("      <object id=\"FlashID\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"1000\" height=\"500\">");
document.write("        <param name=\"movie\" value=\"menu.swf\" \/>");
document.write("        <param name=\"quality\" value=\"high\" \/>");
document.write("        <param name=\"wmode\" value=\"transparent\" \/>");
document.write("        <param name=\"swfversion\" value=\"6.0.65.0\" \/>");
document.write("        <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->");
document.write("        <param name=\"expressinstall\" value=\"..\/scripts\/expressInstall.swf\" \/>");
document.write("        <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->");
document.write("        <!--[if !IE]>-->");
document.write("        <object type=\"application\/x-shockwave-flash\" data=\"menu.swf\" width=\"1000\" height=\"500\">");
document.write("          <!--<![endif]-->");
document.write("          <param name=\"quality\" value=\"high\" \/>");
document.write("          <param name=\"wmode\" value=\"transparent\" \/>");
document.write("          <param name=\"swfversion\" value=\"6.0.65.0\" \/>");
document.write("          <param name=\"expressinstall\" value=\"..\/scripts\/expressInstall.swf\" \/>");
document.write("          <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->");
document.write("          <div>");
document.write("            <div style=\"position:absolute; z-index:20;\">");
document.write("              <h1 style=\"color:#FFF;\">No dispone de Flash o no está instalado correctamente. Se ha cargado una versión alternativa pero puede haber errores en la visualización.<\/h1>");
document.write("              <p><a href=\"http:\/\/www.adobe.com\/go\/getflashplayer\"><img src=\"http:\/\/www.adobe.com\/images\/shared\/download_buttons\/get_flash_player.gif\" alt=\"Get Adobe Flash player\" width=\"112\" height=\"33\" \/><\/a><\/p>");
document.write("            <\/div>");
document.write("            <div id=\"Table_01\">");
document.write("	<div id=\"menuNoflash-01_\">");
document.write("		<img id=\"menuNoflash_01\" src=\"imagenes\/menuAlt\/menuNoflash_01.jpg\" width=\"943\" height=\"28\" alt=\"\" \/>");
document.write("	<\/div>");
document.write("	<div id=\"menuNoflash-02_\"> <a href=\"javascript:cambioIdioma('esp')\"><img src=\"imagenes\/menuAlt\/menuNoflash_02.jpg\" alt=\"\" name=\"menuNoflash_02\" width=\"33\" height=\"22\" id=\"menuNoflash_02\" style=\"border:none\"\/><\/a>");
document.write("<\/div>");
document.write("	<div id=\"menuNoflash-03_\"> <a href=\"javascript:cambioIdioma('ing')\"><img src=\"imagenes\/menuAlt\/menuNoflash_03.jpg\" alt=\"\" name=\"menuNoflash_03\" width=\"28\" height=\"22\" id=\"menuNoflash_03\" style=\"border:none\"\/><\/a>");
document.write("<\/div>");
document.write("	<div id=\"menuNoflash-04_\"> <a href=\"javascript:cambioIdioma('fr')\"><img src=\"imagenes\/menuAlt\/menuNoflash_04.jpg\" alt=\"\" name=\"menuNoflash_04\" width=\"31\" height=\"22\" id=\"menuNoflash_04\"  style=\"border:none\"\/><\/a>");
document.write("<\/div>");
document.write("	<div id=\"menuNoflash-05_\">");
document.write("		<img id=\"menuNoflash_05\" src=\"imagenes\/menuAlt\/menuNoflash_05.jpg\" width=\"851\" height=\"76\" alt=\"\" \/>");
document.write("	<\/div>");
document.write("	<div id=\"menuNoflash-06_\">");
document.write("		<img id=\"menuNoflash_06\" src=\"imagenes\/menuAlt\/menuNoflash_06.jpg\" width=\"92\" height=\"54\" alt=\"\" \/>");
document.write("	<\/div>");
document.write("	<div id=\"menuNoflash-07_\" class=\"menuNoflash\" onmouseover=\"document.getElementById('subMenu1').style.display='block'\"><a href=\"#\"><img id=\"menuNoflash_07\" src=\"imagenes\/menuAlt\/menuNoflash_07.jpg\" width=\"187\" height=\"201\" alt=\"\" \/><\/a>");
document.write("	  <div  id=\"subMenu1\" class=\"submenuNoflash\" onmouseout=\"document.getElementById('subMenu1').style.display='none'\">");
document.write("      <div class=\"subMenuBg\">");
document.write("        <ul>");
document.write("          <li><a href=\"subasta.html\">Porqué una subasta<\/a><\/li>");
document.write("          <li><a href=\"comiteHonor.html\">Comité de Honor<\/a><\/li>");
document.write("          <li><a href=\"comiteSeleccion.html\">Comité de Selección<\/a><\/li>");
document.write("          <li><a href=\"uax.html\">Comité Veterinario UAX<\/a><\/li>");
document.write("          <li><a href=\"subastador.html\">Subastador<\/a><\/li>");
document.write("          <li><a href=\"fotosentorno.html\">Fotos del Entorno<\/a><\/li>");
document.write("        <\/ul>");
document.write("        <\/div>");
document.write("      <\/div>");
document.write("");
document.write("  <\/div>");
document.write("	<div id=\"menuNoflash-08_\" class=\"menuNoflash\" onmouseover=\"document.getElementById('subMenu2').style.display='block'\"> <a href=\"#\"><img src=\"imagenes\/menuAlt\/menuNoflash_08.jpg\" alt=\"\" name=\"menuNoflash_08\" width=\"188\" height=\"201\" id=\"menuNoflash_08\" \/><\/a>");
document.write("        	  <div  id=\"subMenu2\" class=\"submenuNoflash\" onmouseout=\"document.getElementById('subMenu2').style.display='none'\">");
document.write("      <div class=\"subMenuBg\">");
document.write("        <ul>");
document.write("          <li><a href=\"condicionesProducto.html\">Producto<\/a><\/li>");
document.write("          <li><a href=\"condicionesGenerales.html\">Condiciones Generales<\/a><\/li>");
document.write("          <li><a href=\"condicionesComprador.html\">Condiciones Comprador<\/a><\/li>");
document.write("          <li><a href=\"condicionesVendedor.html\">Condiciones Vendedor<\/a><\/li>");
document.write("          <li><a href=\"condicionesVeterinarios.html\">Requisitos Veterinarios<\/a><\/li>");
document.write("          <li><a href=\"condicionesSeguros.html\">Seguro<\/a><\/li>");
document.write("          <li><a href=\"contrato.html\">Contrato de Selección<\/a><\/li>");
document.write("        <\/ul>");
document.write("        <\/div>");
document.write("      <\/div>");
document.write("  <\/div>");
document.write("	<div id=\"menuNoflash-09_\" class=\"menuNoflash\" onmouseover=\"document.getElementById('subMenu3').style.display='block'\"> <a href=\"#\"><img src=\"imagenes\/menuAlt\/menuNoflash_09.jpg\" alt=\"\" name=\"menuNoflash_09\" width=\"188\" height=\"201\" id=\"menuNoflash_09\" \/><\/a>");
document.write("        	  <div  id=\"subMenu3\" class=\"submenuNoflash\" onmouseout=\"document.getElementById('subMenu3').style.display='none'\">");
document.write("      <div class=\"subMenuBg\">");
document.write("        <ul>");
document.write("        <li><a href=\"intermediarios.html\">Intermediarios<\/a><\/li>");
document.write("          <li><a href=\"contacto.html\">Contacto<\/a><\/li>");
document.write("          <li><a href=\"llegar.html\">Cómo llegar<\/a><\/li>");
document.write("          <li><a href=\"alojamiento.html\">Alojamiento<\/a><\/li>");
document.write("          <li><a href=\"FAQ.html\">Preguntas Frecuentes<\/a><\/li>");
document.write("          <li><a href=\"resultados.php\">Resultados<\/a><\/li>");
document.write("        <\/ul>");
document.write("        <\/div>");
document.write("      <\/div>");
document.write("  <\/div>");
document.write("	<div id=\"menuNoflash-10_\" class=\"menuNoflash\" > <a href=\"catalogo.php\"><img src=\"imagenes\/menuAlt\/menuNoflash_10.jpg\" alt=\"\" name=\"menuNoflash_10\" width=\"186\" height=\"201\" id=\"menuNoflash_10\" \/><\/a>");
document.write("        	  ");
document.write("  <\/div>");
document.write("<div id=\"menuNoflash-11_\" class=\"menuNoflash\" > <a href=\"http:\/\/www.jeep.es\" target=\"_blank\"><img src=\"imagenes\/menuAlt\/menuNoflash_11.jpg\" alt=\"\" name=\"menuNoflash_11\" width=\"194\" height=\"201\" id=\"menuNoflash_11\" \/><\/a>");
document.write(" ");
document.write("<\/div>");
document.write("	<div id=\"menuNoflash-12_\">");
document.write("		<img src=\"imagenes\/menuAlt\/menuNoflash_12.jpg\" alt=\"\" name=\"menuNoflash_12\" width=\"943\" height=\"195\" id=\"menuNoflash_12\" \/>");
document.write("	<\/div>");
document.write("      ");
document.write("<\/div>");
document.write("          <\/div>");
document.write("          <!-- fin alternativa flash -->");
document.write("          <!--[if !IE]>-->");
document.write("        <\/object>");
document.write("        <!--<![endif]-->");
document.write("      <\/object>");
document.write("    <\/div>");
}


//funcion para mostrar campo de noticias especifico

function showFieldHorseNew(seleccion){
	if (seleccion=='mostrar') {
		document.getElementById('caballoNoticia').style.display="inline";
	} else {
		document.getElementById('caballoNoticia').style.display="none";
	}
}

function checkForm_InsertNews() {
	var error ="";
	var titleError ="Por favor, revise los siguientes errores:\n";
	var enlace = document.getElementById("enlace").value;
	var titulo = document.getElementById("titulo").value;
	var descripcion = document.getElementById("descripcion").value;
	var header ="www.";
	var headerTest = enlace.indexOf(header);
	if ((enlace == "")||(headerTest != 0)) {
		error += "\n-Debe Introducir un enlace válido.\n ('EJEMPLO: http://www.miwebdenoticias.com/noticias/noticia.html').";
	}
	if (titulo == '') {
		error += "\n-Debe introducir un título para la noticia."
		}
		if (descripcion == ''){
			error += "\n-Debe introducir una descripción."
		}
	if (error!="") {
		alert (titleError+error);
	} else {
		document.getElementById("formNews").submit();
	}
	
}


