<!--
var flashinstalled = 0;

function mOvr(src, classOver) {
	//if (!src.contains(event.fromElement)) {
		src.style.cursor = 'hand';
		src.className = classOver;
		//src.bgColor = clrOver;
	//}
}
function mOut(src, classIn) {
	//if (!src.contains(event.toElement)) {
		src.style.cursor = 'default';
		src.className = classIn;
		//src.bgColor = clrIn;
	//}
}
function mClk(src) {
	if (event.srcElement.tagName == 'TD' && src.children.tags('A')[0]) {
		src.children.tags('A')[0].click();
	}
}
function GoUrl(s) {
	var d = s.options[s.selectedIndex].value;
	window.top.location.href = d;
	s.selectedIndex = 0;
}
function showPopup(url, width, height) {
	var centerLeft = (screen.width - width) / 2;
	var centerTop =  (screen.height - height) / 2;
	//Utilizamos una expresión regular en el 2º parámetro del método window.open para eliminar los caracteres no alfanuméricos.
	popup = window.open(url, url.split('.')[0].replace(/[^\w@-]/, ''), 'width=' + width + ',height=' + height + ',resizable=0,left=' + centerLeft + ',top=' + centerTop);
	//popup.moveTo(centerLeft, centerTop);
	return popup;
}
function advertiseWithUs() {
	showPopup('internetmarketing/advertisewithus.aspx', 422, 376);
}
function contactUs() {
	showPopup('internetmarketing/contactus.aspx', 422, 334);
}
function linkToUs() {
	showPopup('internetmarketing/linktous.htm', 422, 277);
}
function recommendUs() {
	showPopup('internetmarketing/recommendus.aspx', 422, 277);
}
function showPropertyFullDetails() {
	document.getElementById('fullDetailsTD').style.display = 'block';
	document.getElementById('fullDetailsLinkTD').style.visibility = 'hidden';
}
function showPropertyPopup(url) {
	//var centerLeft = (screen.width - width) / 2;
	//var centerTop =  (screen.height - height) / 2;
	//Utilizamos una expresión regular en el 2º parámetro del método window.open para eliminar los caracteres no alfanuméricos.
	//popup = window.open(url, url.split('.')[0].replace(/[^\w@-]/g, ''), 'width=' + width + ',height=' + height + ',resizable=0,left=' + centerLeft + ',top=' + centerTop);
	popup = window.open(url, url.split('.')[0].replace(/[^\w@]/g, ''), 'resizable=1,scrollbars=yes');    
	//popup.moveTo(centerLeft, centerTop);
	return popup;
}
function noPostBack(action) {
	if(document.layers) { //El navegador es Netscape 4
		document.forms[0].__VIEWSTATE.name = 'NOVIEWSTATE';
		document.forms[0].action = action;
		document.forms[0].submit();
	} else { //El navegador es algún otro que entiende DOM.
		document.forms[0].action = action;
		document.forms[0].__VIEWSTATE.name = 'NOVIEWSTATE';
		document.forms[0].submit();
	}
}
//Sólo admite direcciones de correo electrónico válidas
function isEmail(value) {
	var regExp = /^([a-zA-Z0-9_\-])([a-zA-Z0-9_\-\.]*)@(\[((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}|((([a-zA-Z0-9\-]+)\.)+))([a-zA-Z]{2,}|(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\])$/;
  return regExp.test(value);
}
/* INICIO - COMPROBACION DE FLASH INSTALADO EN CLIENTE */
// Si el cliente tiene plugin de Flash cargamos la cabecera flash; sino, no cargará el flash y se verá la versión HTML maquetada
function checkFlash() {
	var x;
	var flashinstalled = 1;
    
	if (navigator.plugins && navigator.plugins.length)
	{
		if (navigator.plugins["Shockwave Flash"] || navigator.plugins["Shockwave Flash 2.0"])		
			flashinstalled = 2;						
	}
	else if (navigator.mimeTypes && navigator.mimeTypes.length)
	{
		x = navigator.mimeTypes['application/x-shockwave-flash'];
		if (x && x.enabledPlugin)
			flashinstalled = 2;
	}	
	return flashinstalled;
}
function detectMS()
{ 
	var MSDetect = "false";
	if (!(navigator.plugins && navigator.plugins.length) && !(navigator.mimeTypes && navigator.mimeTypes.length))
	{
		MSDetect = "true";
	}	
	return MSDetect;	
}
function showFlash(url)
{
	var flash1 = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='500' height='235'>";
	var flash2 = "<param name='movie' value='" + url + "'>";
	var flash3 = "<param name='quality' value='high'>";
	var flash4 = "<embed src='" + url + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='500' height='235'>";
	var flash5 = "</embed>";
	var flash6 = "</object>";

	document.write(flash1);
	document.write(flash2);
	document.write(flash3);
	document.write(flash4);
	document.write(flash5);
	document.write(flash6);
}
/* FIN - COMPROBACION DE FLASH INSTALADO EN CLIENTE */

-->

