/*
* Autor: Bernardo Morales M.
* Fecha: 01/Abril/2004
* Site.: www.artesaniasantiguaguatemala.com
*        Copyright (c) 2004-2006. All right reserved.
*/ 

work = 'PC'
if (work == 'I') { lugar = "http://www.artesaniasantiguaguatemala.com/" }
else { lugar = '' }

function fotoold(local,fotox,orientacion,formato,tipo2) 
{ 
	var ext, fla

	fla = tipo2
	
	if (fla == 0) {
		if (formato == 0 ) { ext = "jpg" }
		else if (formato == 1 ){ ext = "gif" }
		else { ext = "" }
	}
	else {
		ext = "swf"
	}
	
	html = '<html> <head> <meta http-equiv="Content-Language" content="es"> ' 
        html = html + '<meta name="GENERATOR" content="Microsoft FrontPage 5.0"> '
        html = html + '<meta name="ProgId" content="FrontPage.Editor.Document"> '
        html = html + '<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> '
        html = html + '<title>Mercado de Artesanías Antigua Guatemala</title></head> '
 	html = html + '<body background="imagenes/fondo.jpg" oncontextmenu="return false" ondragstart="return false" onselectstart="return false" topmargin="0" leftmargin="0"> '

	html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0"> '	
	html = html + '<img border="0" src="ArtesaniasAntiguaGuatemala5.jpg" width="500" height="60"></p> '
        html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0"></p> '
	html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0"> '
	
	/* Establece la Orientacion */
	if (orientacion == 'H') {
	
		/* Establece la Tipo de Archivo */
		if (fla == 0) {
			html = html + '<img border="0" src="' + lugar + 'locales/Local' + local + '/' + fotox + '.' + ext + '" width="500" height="375"></p> '
		}
		else {
			html = html + '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="500" height="375" align="middle">'
			html = html + '<param name="allowScriptAccess" value="sameDomain" />'
			html = html + '<param name="movie" value="'+ lugar + 'locales/Local' + local + '/' + fotox + '.' + ext + '" />'
			html = html + '<param name="quality" value="high" />'
			html = html + '<param name="menu" value="false" />'
			html = html + '<param name="bgcolor" value="#ffffff" />'
			html = html + '<embed src="' + lugar + 'locales/Local' + local + '/' + fotox + '.' + ext + '" quality="high" bgcolor="#ffffff" width="500" height="375" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'
			html = html + '</object>'
		}
	}
	else {
		html = html + '<img border="0" src="' + lugar + 'locales/Local' + local + '/' + fotox + '.' + ext + '" width="300" height="400"></p> '	
	}
        
        html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0"></p> '
	html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0"><font face="MS Sans Serif" size="1">www.ArtesaniasAntiguaGuatemala.Com</font></p> '
        html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0"><font face="MS Sans Serif" size="1"> Guatemala '
        html = html + 'Centroamérica. </font><font face="MS Sans Serif" size="3">©</font><font face="MS Sans Serif" size="1"> '
        html = html + '<span lang="es-gt">2005</span> Todos los Derechos Reservados.</font></p> '
        html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0"><font face="MS Sans Serif" size="1">Designed '
        html = html + '  By <a target="_blank" href="http://www.fotometalica.com/software">Fotometalica.Com</a></font></p> '
        html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0">&nbsp;</p> '
        html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0">'
        html = html + '<a href="javascript:close()"> '
        html = html + '<img border="0" src="btnCerrar.gif" width="85" height="16"></a></p> '

	html = html + '</body> </html>'

	if (orientacion == 'H') {
		ventanaInt = window.open('', 'producto' ,"top=1,left=1,height=520,width=510,status=no,toolbar=no,menubar=no,location=no,resizable=no,channelmode=no");
	}
	else {
		ventanaInt = window.open('', 'producto' ,"top=1,left=1,height=540,width=510,status=no,toolbar=no,menubar=no,location=no,resizable=no,channelmode=no");
	}

	ventanaInt.document.write (html)
}

function foto(local,fotox,orientacion,formato,tipo2) 
{ 
	var ext, fla

	fla = tipo2
	
	if (fla == 0) {
		if (formato == 0 ) { ext = "jpg" }
		else if (formato == 1 ){ ext = "gif" }
		else { ext = "" }
	}
	else {
		ext = "swf"
	}
	
html = '<html>'
html = html + '<head>'
html = html + '<meta http-equiv="Content-Language" content="es">'
html = html + '<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">'
html = html + '<meta http-equiv="Keywords" content="Antigua Guatemala, antigua guatemala, Antigua, antigua, Artesanías, Telas Tipicas, Cuero, Vidrio, Madera, Barro, Joyeria, Tiendas Tipicas">'
html = html + '<meta name="GENERATOR" content="Microsoft FrontPage 6.0">'
html = html + '<meta name="ProgId" content="FrontPage.Editor.Document">'
html = html + '<meta name="description" content="Antigua Guatemala, Mercado de Artesanías Antigua Guatemala, Guatemala">'
html = html + '<meta name="keywords" content="Antigua Guatemala, antigua guatemala, Antigua, antigua, Artesanías, Telas Tipicas, Cuero, Vidrio, Madera, Barro, Joyeria, Tiendas Tipicas, Guatemala">'
html = html + '<title>Mercado de Artesanías Antigua Guatemala - www.artesaniasantiguaguatemala.com</title>'
html = html + '</head>'
html = html + '<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" oncontextmenu="return false" ondragstart="return false" onselectstart="return false">'
html = html + '<div align="center">'
html = html + '	<table border="0" cellpadding="0" style="border-collapse: collapse" width="383">'
html = html + '		<tr>'
html = html + '			<td>'
html = html + '			<p align="center">'
html = html + '			<img border="0" src="FotoTop.PNG" width="383" height="88"></td>'
html = html + '		</tr>'
html = html + '		<tr>'
html = html + '			<td background="FotoBody2.PNG">'
html = html + '			<p align="center" style="margin-top: 0; margin-bottom: 0">'
html = html + '			<font face="MS Sans Serif" size="1">'
html = html + '			<a href="javascript:close();">'

	/* Establece la Orientacion */
	if (orientacion == 'H') {
	
		/* Establece la Tipo de Archivo */
		if (fla == 0) {
			html = html + '<img border="0" src="' + lugar + 'locales/Local' + local + '/' + fotox + '.' + ext + '" width="360" height="272" alt="Click para Cerrar"> '
		}
		else {
			html = html + '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="360" height="272" align="middle">'
			html = html + '<param name="allowScriptAccess" value="sameDomain" />'
			html = html + '<param name="movie" value="'+ lugar + 'locales/Local' + local + '/' + fotox + '.' + ext + '" />'
			html = html + '<param name="quality" value="high" />'
			html = html + '<param name="menu" value="false" />'
			html = html + '<param name="bgcolor" value="#ffffff" />'
			html = html + '<embed src="' + lugar + 'locales/Local' + local + '/' + fotox + '.' + ext + '" quality="high" bgcolor="#ffffff" width="360" height="272" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'
			html = html + '</object>'
		}
	}
	else {
		html = html + '<img border="0" src="' + lugar + 'locales/Local' + local + '/' + fotox + '.' + ext + '" width="272" height="360" alt="Click para Cerrar"> '	
	}

html = html + '			</a></font><div align="center">'
html = html + '				<table border="0" cellpadding="5" style="border-collapse: collapse" width="360">'
html = html + '					<tr>'
html = html + '						<td>'
html = html + '						<p style="margin-top: 0; margin-bottom: 0" align="right">'
html = html + '						<font face="MS Sans Serif" size="1">'
html = html + '						www.artesaniasantiguaguatemala.com</font></p>'
html = html + '						<p style="margin-top: 0; margin-bottom: 0" align="right">'
html = html + '						<font face="MS Sans Serif" size="1">Todos los derechos '
html = html + '						reservados © 2004 - 2006 </font></td>'
html = html + '					</tr>'
html = html + '				</table>'
html = html + '			</div>'
html = html + '			</td>'
html = html + '		</tr>'
html = html + '		<tr>'
html = html + '			<td><img border="0" src="FotoBottom.PNG" width="383" height="20"></td>'
html = html + '		</tr>'
html = html + '	</table>'
html = html + '</div>'
html = html + '</body>'
html = html + '</html>'

	if (orientacion == 'H') {
		ventanaInt = window.open('', 'producto' ,"top=1,left=1,height=420,width=390,status=no,toolbar=no,menubar=no,location=no,resizable=no,channelmode=no");
	}
	else {
		ventanaInt = window.open('', 'producto' ,"top=1,left=1,height=510,width=390,status=no,toolbar=no,menubar=no,location=no,resizable=no,channelmode=no");
	}

	ventanaInt.document.write (html)
}

function fotol(local)
{

html = '<html>'
html = html + '<head>'
html = html + '<meta http-equiv="Content-Language" content="es">'
html = html + '<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">'
html = html + '<meta http-equiv="Keywords" content="Antigua Guatemala, antigua guatemala, Antigua, antigua, Artesanías, Telas Tipicas, Cuero, Vidrio, Madera, Barro, Joyeria, Tiendas Tipicas">'
html = html + '<meta name="GENERATOR" content="Microsoft FrontPage 6.0">'
html = html + '<meta name="ProgId" content="FrontPage.Editor.Document">'
html = html + '<meta name="description" content="Antigua Guatemala, Mercado de Artesanías Antigua Guatemala, Guatemala">'
html = html + '<meta name="keywords" content="Antigua Guatemala, antigua guatemala, Antigua, antigua, Artesanías, Telas Tipicas, Cuero, Vidrio, Madera, Barro, Joyeria, Tiendas Tipicas, Guatemala">'
html = html + '<title>Mercado de Artesanías Antigua Guatemala - www.artesaniasantiguaguatemala.com</title>'
html = html + '</head>'
html = html + '<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" oncontextmenu="return false" ondragstart="return false" onselectstart="return false">'
html = html + '<div align="center">'
html = html + '	<table border="0" cellpadding="0" style="border-collapse: collapse" width="383">'
html = html + '		<tr>'
html = html + '			<td>'
html = html + '			<p align="center">'
html = html + '			<img border="0" src="FotoTop.PNG" width="383" height="88"></td>'
html = html + '		</tr>'
html = html + '		<tr>'
html = html + '			<td background="FotoBody2.PNG">'
html = html + '			<p align="center" style="margin-top: 0; margin-bottom: 0">'
html = html + '			<font face="MS Sans Serif" size="1">'
html = html + '			<a href="javascript:close();">'
html = html + '         <img border="0" src="' + lugar + 'locales/Local' + local + '/local.jpg" width="360" height="272" alt="Click para Cerrar"> '	
html = html + '			</a></font><div align="center">'
html = html + '				<table border="0" cellpadding="5" style="border-collapse: collapse" width="360">'
html = html + '					<tr>'
html = html + '						<td>'
html = html + '						<p style="margin-top: 0; margin-bottom: 0" align="right">'
html = html + '						<font face="MS Sans Serif" size="1">'
html = html + '						www.artesaniasantiguaguatemala.com</font></p>'
html = html + '						<p style="margin-top: 0; margin-bottom: 0" align="right">'
html = html + '						<font face="MS Sans Serif" size="1">Todos los derechos '
html = html + '						reservados © 2004 - 2006 </font></td>'
html = html + '					</tr>'
html = html + '				</table>'
html = html + '			</div>'
html = html + '			</td>'
html = html + '		</tr>'
html = html + '		<tr>'
html = html + '			<td><img border="0" src="FotoBottom.PNG" width="383" height="20"></td>'
html = html + '		</tr>'
html = html + '	</table>'
html = html + '</div>'
html = html + '</body>'
html = html + '</html>'

	ventanaInt = window.open('', 'producto' ,"top=1,left=1,height=420,width=390,status=no,toolbar=no,menubar=no,location=no,resizable=no,channelmode=no");

	ventanaInt.document.write (html)
}

function fotolold(local) 
{ 
	html = '<html> <head> <meta http-equiv="Content-Language" content="es"> ' 
        html = html + '<meta name="GENERATOR" content="Microsoft FrontPage 5.0"> '
        html = html + '<meta name="ProgId" content="FrontPage.Editor.Document"> '
        html = html + '<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> '
        html = html + '<title>Mercado de Artesanías Antigua Guatemala</title></head> '
 	html = html + '<body background="imagenes/fondo.jpg" oncontextmenu="return false" ondragstart="return false" onselectstart="return false"> '

	html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0"> '
	html = html + '<img border="0" src="ArtesaniasAntiguaGuatemala5.jpg" width="320" height="60"></p> '
        html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0">&nbsp;</p> '
	html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0"> '
        html = html + '<img border="0" src="' + lugar + 'locales/Local' + local + '/local.jpg" width="320" height="240"></p> '
        html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0">&nbsp;</p> '
	html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0"><font face="MS Sans Serif" size="1">www.ArtesaniasAntiguaGuatemala.Com</font></p> '
        html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0"><font face="MS Sans Serif" size="1"> Guatemala '
        html = html + 'Centroamérica. </font><font face="MS Sans Serif" size="3">©</font><font face="MS Sans Serif" size="1"> '
        html = html + '<span lang="es-gt">2005</span> Todos los Derechos Reservados.</font></p> '
        html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0"><font face="MS Sans Serif" size="1">Designed '
        html = html + '  By <a target="_blank" href="http://www.fotometalica.com/software">Fotometalica.Com</a></font></p> '
        html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0">&nbsp;</p> '
        html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0">'
        html = html + '<a href="javascript:close()"> '
        html = html + '<img border="0" src="btnCerrar.gif" width="85" height="16"></a></p> '

	html = html + '</body> </html>'

	ventanaInt2 = window.open('', 'localfoto' ,"top=1,left=1,height=440,width=400,status=no,toolbar=no,menubar=no,location=no,resizable=no,channelmode=no");
	ventanaInt2.document.write (html)
}

function foto2(fotox) 
{ 
	html = '<html> <head> <meta http-equiv="Content-Language" content="es"> ' 
        html = html + '<meta name="GENERATOR" content="Microsoft FrontPage 5.0"> '
        html = html + '<meta name="ProgId" content="FrontPage.Editor.Document"> '
        html = html + '<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> '
        html = html + '<title>Mercado de Artesanías Antigua Guatemala</title></head> '
 	html = html + '<body background="imagenes/fondo.jpg" oncontextmenu="return false" ondragstart="return false" onselectstart="return false"> '

	html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0"> '
	html = html + '<img border="0" src="ArtesaniasAntiguaGuatemala5.jpg" width="320" height="60"></p> '
        html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0">&nbsp;</p> '
	html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0"> '
        html = html + '<img border="0" src="' + lugar + 'imagenes/mercado' + fotox + '.jpg" width="320" height="240"></p> '
        html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0">&nbsp;</p> '
	html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0"><font face="MS Sans Serif" size="1">www.ArtesaniasAntiguaGuatemala.Com</font></p> '
        html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0"><font face="MS Sans Serif" size="1"> Guatemala '
        html = html + 'Centroamérica. </font><font face="MS Sans Serif" size="3">©</font><font face="MS Sans Serif" size="1"> '
        html = html + '<span lang="es-gt">2005</span> Todos los Derechos Reservados.</font></p> '
        html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0"><font face="MS Sans Serif" size="1">Designed '
        html = html + '  By <a target="_blank" href="http://www.fotometalica.com/software">Fotometalica.Com</a></font></p> '
        html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0">&nbsp;</p> '
        html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0">'
        html = html + '<a href="javascript:close()"> '
        html = html + '<img border="0" src="btnCerrar.gif" width="85" height="16"></a></p> '

	html = html + '</body> </html>'

	ventanaInt3 = window.open('', 'fotos' ,"top=1,left=1,height=440,width=400,status=no,toolbar=no,menubar=no,location=no,resizable=no,channelmode=no");
	ventanaInt3.document.write (html)
}

function video(numero) 
{ 
    html = '<html> <head> <meta http-equiv="Content-Language" content="es">'
    html = html + ' <meta name="GENERATOR" content="Microsoft FrontPage 6.0">'
    html = html + '<meta name="ProgId" content="FrontPage.Editor.Document">'
    html = html + '<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">'
    html = html + '<title>Mercado de Artesanías Antigua Guatemala</title>'
    html = html + '</head>'

    html = html + '<body topmargin="0" leftmargin="0" background="OTROS/back%2006%20fondo.jpg" oncontextmenu="return false" ondragstart="return false" onselectstart="return false">'

    html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0">'
    html = html + '<img border="0" src="ArtesaniasAntiguaGuatemala5.jpg" width="320" height="60"></p>'
    html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0">'
    html = html + '<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="WindowsMediaPlayer1" width="318" height="316">'
    html = html + '<param name="URL" value="' + lugar + 'video' + numero + '.mpg">'
    html = html + '	<param name="rate" value="1">'
	html = html + '<param name="balance" value="0">'
	html = html + '<param name="currentPosition" value="0">'
	html = html + '<param name="defaultFrame" value>'
	html = html + '<param name="playCount" value="1">'
	html = html + '<param name="autoStart" value="-1">'
	html = html + '<param name="currentMarker" value="0">'
	html = html + '<param name="invokeURLs" value="-1">'
	html = html + '<param name="baseURL" value>'
	html = html + '<param name="volume" value="100">'
	html = html + '<param name="mute" value="0">'
	html = html + '<param name="uiMode" value="full">'
	html = html + '<param name="stretchToFit" value="-1">'
	html = html + '<param name="windowlessVideo" value="-1">'
	html = html + '<param name="enabled" value="-1">'
	html = html + '<param name="enableContextMenu" value="-1">'
	html = html + '<param name="fullScreen" value="0">'
	html = html + '<param name="SAMIStyle" value>'
	html = html + '<param name="SAMILang" value>'
	html = html + '<param name="SAMIFilename" value>'
	html = html + '<param name="captioningID" value>'
	html = html + '<param name="enableErrorDialogs" value="0">'
	html = html + '</object>'
	html = html + '</p>'
    html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0"><font face="MS Sans Serif" size="1">www.ArtesaniasAntiguaGuatemala.Com</font></p>'
    html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0"><font face="MS Sans Serif" size="1"> Guatemala'
    html = html + ' Centroamérica. </font><font face="MS Sans Serif" size="3">©</font><font face="MS Sans Serif" size="1">'
    html = html + '<span lang="es-gt">2005</span> Todos los Derechos Reservados.</font></p>'
    html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0"><font face="MS Sans Serif" size="1">Designed'
    html = html + ' By <a target="_blank" href="http://www.fotometalica.com/software">Fotometalica.Com</a></font></p>'
    html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0">&nbsp;</p>'
    html = html + '<p align="center" style="margin-top: 0; margin-bottom: 0">'
    html = html + '<a href="javascript:close()">'
    html = html + '<img border="0" src="btnCerrar.gif" width="85" height="16"></a></p>'
      
	html = html + '</body>'

	html = html + '</html>'

	ventanaInt4 = window.open('', 'video' ,"top=1,left=1,height=470,width=400,status=no,toolbar=no,menubar=no,location=no,resizable=no,channelmode=no");
	ventanaInt4.document.write (html)
}

function verlocal() {
	var local
	local = loc.locales.value;
	location.href = "local2.asp?local=" + local
}

function verlocal2(local) {
	location.href = "local2.asp?local=" + local
}

function verlocal3(local) {
	location.href = "local3.asp?local=" + local
}

function vercategoria() {
	var catego
	catego = cat.categorias.value;
	location.href = "locales2.asp?cat=" + catego
}

function verlocales(i,c) {
	if (c == 0) {
		location.href = "locales2.asp?I=" + i }
	else { 
		location.href = "locales2.asp?I=" + i + "&cat=" + c
	}
}

function vervideo(video) {
	location.href = "videos.asp?I=" + video
}

function vervideo2(video) {
	location.href = "video.asp?I=" + video
}

function vercomentario(comen) {
	location.href = "comentarios.asp?I=" + comen
}

function principal() {
	location.href = "default.asp"
}

/*
* Autor: Bernardo Morales M.
* Fecha: 01/Abril/2004
* Site.: www.artesaniasantiguaguatemala.com
*        Copyright (c) 2004-2006 All right reserved.
*/ 