<!--
function open_window(pag,w,h,vscroll) {
    var window_height = h
    var window_width = w
    var window_left = (screen.availWidth / 2) - (window_width / 2)
    var window_top = (screen.availHeight / 2) - (window_height /2)
    var window_dimensions = "width=" + window_width + ",height=" + window_height + ",left=" + window_left + ",top=" + window_top+" "+",scrollbars="+vscroll
	window.open(pag,"ikwin",window_dimensions)
	}

// Función para abrir las imágenes en el portfolio
// w,h: ancho y alto de la ventana
// imagen: nombre de la imagen (con la extensión .jpg o .gif)
// numimg: número de imágenes
// n: número de imagen a mostrar 
function open_sample(imagen,numimg,n) {
	var window_left = (screen.availWidth / 2) - (240)
    var window_top = (screen.availHeight / 2) - (150)
	var window_dimensions = "width=400,height=350,left=" + window_left + ",top=" + window_top+" "+",scrollbars=no,resize=no"

	prev = n-1;
	sig = (1*n)+1;
	if (sig>numimg) { sig = 1; }
	if (prev<1) { prev = numimg; }
	
	var imgprev = imagen + prev + '.gif'
	var imgsig = imagen + sig + '.gif'
	html = '<?xml version="1.0" encoding="iso-8859-1"?>';
	html += '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
	html += '<html xmlns="http://www.w3.org/1999/xhtml">';
	html += '<head><title>ikertolosa.com - portfolio</title>';
	html += '<link href="portfolio.css" rel="stylesheet" type="text/css" />';
	html += '<script language="JavaScript" src="../js/funcs.js" type="text/javascript"></script>';
	html += '</head><body>';
	html += '<table width="100%" border="0" cellspacing="0" cellpadding="4">';
	html += '<tr bgcolor="#666666">';
	html += '<td width="20%"><a href="#" onClick="javascript:window.close()" class="enlace">cerrar [x]</a></td>';
	html += '<td width="60%" align="center">['+n+'/'+numimg+']</td>';
	html += '<td width="20%" align="right">'
	html += '<a href="#" onClick="open_sample(\''+imagen+'\','+numimg+','+prev+')" class="enlace">[&lt;]</a>&nbsp&nbsp'
	html += '<a href="#" onClick="open_sample(\''+imagen+'\','+numimg+','+sig+')" class="enlace">[&gt;]</a>'
	html += '</td></tr>';
	html += '<tr align="center">';
	html += '<td colspan="3"><p align="center"><br>';
	html += '<img src="img/'+imagen+n+'.gif" border="1" name="foto" onLoad="window.resizeTo(document.foto.width+100,document.foto.height+90)"></p>';
	html += '</td>';
	html += '</tr></table>';
	html += '</body></html>';

	win = window.open("","winik",window_dimensions)
	win.document.open();
    win.document.write(html);
    win.document.close();
}

// Función para poner los mini-iconos en el portfolio
// imagen: nombre de la imagen (con la extensión .jpg o .gif)
// numimg: número de imágenes
function lista_iconos(imagen,numimg) {
	var i=0;
	html = ''
	for(i=1; i<(1*numimg+1); i++){
	html += '<a href="#" onClick="open_sample(\''+imagen+'\',\''+numimg+'\',\''+i+'\')">';
	html += '<img src="img/'+imagen+i+'_peq.gif" width="60" height="60" border="0" /></a>'
	html += '&nbsp;&nbsp;&nbsp;';
	}
	
	document.write(html);
}

//-->