<!--

function MD_OpenArticleSend(id) {
	MD_OpenWin('/enviar-articulo?id=' + id, 'SendArticleWindow', 'width=475,height=550,scrollbars=yes');
}

// --------------------------------------------------------------------------

function MD_ArticleZoomVideos_Show(path, w, h ,l) {

	//var playerPath = '/app/swf/md_playerFLV.swf?c1=C91A28&c2=FFFFFF&c3=000000&v1=mdpl1&v2=' + escape(path);
	var playerPath = '/app/swf/md_playerFLV.swf?f1=' + escape(path) + '&f2=' + w + '&f3=' + h + '&f4=' + l;
	MD_WFlash(playerPath, 'ArticleZoomVideoSwf', 320, 264, false);
	
	//

	var destW = 360;
	var destH = 305;
	var ms = 600;

	var stepMS = 30;
	var stepC = Math.ceil(ms/stepMS);
	var stepW = Math.ceil(destW/stepC);
	var stepH = Math.ceil(destH/stepC);
	
	var currW = 0;
	var currH = 0;
	
	var i;
	MD_ArticleVideoZoom_SetWH(0,0);
	MD_ArticleVideoZoom_SetDsp('block');	

	for(i=0;i<=stepC;i++) {
		currW += stepW;
		currH += stepH;
		if(currW > destW) { currW = destW; }
		if(currH > destH) { currH = destH; }
		setTimeout('MD_ArticleVideoZoom_SetWH('+currW+','+currH+');', stepMS*i);
	}
		
}

function MD_ArticleZoomVideos_Hide() {

	document.getElementById('ArticleZoomVideoSwf').innerHTML = '';

	//

	var destW = 360;
	var destH = 305;
	var ms = 600;

	var stepMS = 30;
	var stepC = Math.ceil(ms/stepMS);
	var stepW = Math.ceil(destW/stepC);
	var stepH = Math.ceil(destH/stepC);

	var currW = destW;
	var currH = destH;
	
	var i;
	for(i=0;i<=stepC;i++) {
		currW -= stepW;
		currH -= stepH;
		if(currW < 0) { currW = 0; }
		if(currH < 0) { currH = 0; }
		setTimeout('MD_ArticleVideoZoom_SetWH('+currW+','+currH+');', stepMS*i);
	}
		
	setTimeout('MD_ArticleVideoZoom_SetDsp(\'none\');', stepMS*i);
		
}

function MD_ArticleVideoZoom_SetWH(w, h) {
	document.getElementById('ArticleVideoZoomContainer').style.width = w + 'px';
	document.getElementById('ArticleVideoZoomContainer').style.height = h + 'px';
}

function MD_ArticleVideoZoom_SetDsp(m) {
	document.getElementById('ArticleVideoZoomContainer').style.display = m;
}

// --------------------------------------------------------------------------

function MD_ArticleZoomAudio_Show(path) {

	var playerPath = '/app/swf/playerSonidos.swf?c=' + escape(path);
	MD_WFlash(playerPath, 'ArticleZoomAudioSwf', 320, 52, false);
	
	//

	var destW = 365;
	var destH = 85;
	var ms = 600;

	var stepMS = 30;
	var stepC = Math.ceil(ms/stepMS);
	var stepW = Math.ceil(destW/stepC);
	var stepH = Math.ceil(destH/stepC);
	
	var currW = 0;
	var currH = 0;
	
	var i;
	MD_ArticleAudioZoom_SetWH(0,0);
	MD_ArticleAudioZoom_SetDsp('block');	

	for(i=0;i<=stepC;i++) {
		currW += stepW;
		currH += stepH;
		if(currW > destW) { currW = destW; }
		if(currH > destH) { currH = destH; }
		setTimeout('MD_ArticleAudioZoom_SetWH('+currW+','+currH+');', stepMS*i);
	}
			
}

function MD_ArticleZoomAudio_Hide() {

	document.getElementById('ArticleZoomAudioSwf').innerHTML = '';

	//

	var destW = 365;
	var destH = 85;
	var ms = 600;

	var stepMS = 30;
	var stepC = Math.ceil(ms/stepMS);
	var stepW = Math.ceil(destW/stepC);
	var stepH = Math.ceil(destH/stepC);

	var currW = destW;
	var currH = destH;
	
	var i;
	for(i=0;i<=stepC;i++) {
		currW -= stepW;
		currH -= stepH;
		if(currW < 0) { currW = 0; }
		if(currH < 0) { currH = 0; }
		setTimeout('MD_ArticleAudioZoom_SetWH('+currW+','+currH+');', stepMS*i);
	}
		
	setTimeout('MD_ArticleAudioZoom_SetDsp(\'none\');', stepMS*i);
		
}

function MD_ArticleAudioZoom_SetWH(w, h) {
	document.getElementById('ArticleAudioZoomContainer').style.width = w + 'px';
	document.getElementById('ArticleAudioZoomContainer').style.height = h + 'px';
}

function MD_ArticleAudioZoom_SetDsp(m) {
	document.getElementById('ArticleAudioZoomContainer').style.display = m;
}

// --------------------------------------------------------------------------

function MD_SetArticleText(w) {
	
	if(w == 'normal') {
		MD_ToggleActiveStyleSheet('default');
		MD_SCookie('DtArticleFont', w, '/', MD_DyToSec(31));
	}
	
	if(w == 'large') {
		MD_ToggleActiveStyleSheet('LargeArticleFont');
		MD_SCookie('DtArticleFont', w, '/', MD_DyToSec(31));
	}
	
	if(w == 'cookie') {
		if(MD_GCookie('DtArticleFont')) {
			MD_SetArticleText(MD_GCookie('DtArticleFont'));
		}
	}
	
}

MD_SetArticleText('cookie');

// --------------------------------------------------------------------------

function commentTextBlur(src, maxc) {

	var t2;
	t2 = document.getElementById('txtText');

	if(src.value.length > maxc) {
		src.value = src.value.substring(0, maxc);
		alert('El texto del comentario no debe exceder los ' + maxc + ' caracteres.');		
	}

}

function commentTextCount(maxc) {
	var charsleft = maxc - document.getElementById('txtText').value.length;
	if(charsleft >= 0) {
		document.getElementById('CharsLeftSpan').innerHTML = charsleft;	
	} else {
		document.getElementById('CharsLeftSpan').innerHTML = '0';	
	}
}

-->