function mOver(o) { return SC(o,'OVER',''); }
function mOut(o) { return RC(o); }

function SC(o,m,s) {
	var i;
	if (o.className) {
		o.isClass = o.className;
		i = o.className.lastIndexOf("-");
		if ((o.className.substr(i)=='-ON') && (m=='OVER'))
			o.className = o.className.substr(0,i+1) + 'OVERON';
		else
			o.className = o.className.substr(0,i+1) + m;
		}
	if (s>"") { o.isStatus=status; o.isStatusB=true; SS(s); }
	return true;
	}

function RC(o) {
	if (o.className) o.className = o.isClass;
	if (o.isStatusB) { SS(o.isStatus); o.isStatusB=false; }
	return true;
	}

function setCookie(name, value, expire) {
	if (expire==null) expire="";
	else { 
		if (expire==0) { expire=new Date(); expire.getTime; expire.setYear(expire.getYear()+1); expire=expire.toGMTString(); }
		expire=";expires="+expire+";";
	}
	document.cookie=name+"="+escape(value)+expire;
}

function getCookie(Name) {
	if (document.cookie.length > 0) {
		var search = Name + "=";
		var offset = document.cookie.indexOf(search);
		if (offset != -1) {
			offset += search.length;
			var end = document.cookie.indexOf(";", offset);
			if (end == -1) end = document.cookie.length;
			return unescape(document.cookie.substring(offset, end));
			}
	}
}

function writeFlash(Name,Movie,Width,Height) {
	var s="";
	s+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+Width+'" height='+Height+'" name="'+Name+'" id="'+Name+'">';
	s+='<param name=movie value="'+Movie+'?volumen='+getCookie('volumen')+'">';
	s+='<param name=quality value=high>';
	s+='<embed src="'+Movie+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+Width+'" height='+Height+'" name="'+Name+'">';
	s+='</embed>';
	s+='</object>';
	return (s);
	}

function OpenDetalle(a) {
	window.open(a.href,"sevillarteimagen","width=650,height=580,scrollbars=yes,resizable=yes");
	return false;
	}
