var ww=0; 
var wh=0;
if(!window.navigator.appName.indexOf("Netscape",0)) alert("This site only works with InternetExplorer, not with Netscape");
function back(){
	location.replace("../textpan.html");
}
function next(n){
	location.replace(n+".html");
}
function prev(n){
	location.replace(n+".html");
}
function over(id,ni){
	id.src=id.src.substring(0,id.src.indexOf("w_",10)+2)+ni+".gif";
}

function bigger(pict) {
	x = pict.width;
	y = pict.height; 
	x *= 1.4;
	y *= 1.4;
	pict.width=x;
	pict.height=y;
}                           
function smaller(pict) {
	x = pict.width;
	y = pict.height; 
	x /= 1.4;
	y /= 1.4;
	pict.width=x;
	pict.height=y;
}
function setheight(id) {
	w950=BwindowWidth();
	h660=BwindowHeight();
	if (w950>0) ww=w950;
	if (h660>0) wh=h660;
	x=id.width;
	y=id.height;
	xw=eval(w950)-50;
	yh=eval(h660)-70;
	if(x==0){id.height=yh;return;}
	if(x <= xw && y <= yh) return;
	ny=(y*(xw/x)); nx=xw;
	if(ny > yh) {nx = (x* yh/y); ny=yh}
	id.width=nx;id.height=ny;
}
function BwindowWidth()
{
 if (window.innerWidth) return window.innerWidth;
 else if (document.body && document.body.offsetWidth) 
 	return document.body.offsetWidth;
 else return 0;
}

function BwindowHeight()
{
 if (window.innerHeight) return window.innerHeight;
 else if (document.body && document.body.offsetHeight) 
 	return document.body.offsetHeight;
 else return 0;
}
function recal()
{
 if (Width != BwindowWidth() || Height != BwindowHeight())
 window.history.go(0);
}

//initialization for NetScape 
if(!window.Width && window.innerWidth)
  {
   window.onresize = recal;
   Width = BwindowWidth();
   Height = BwindowHeight();
  }
 if(!window.Width && document.body && document.body.offsetWidth)
  {
   window.onresize = recal;
   Width = BwindowWidth();
   Height = BwindowHeight();
 }
function setthsize(id) {
	wwd=BwindowWidth()/1.3;
//	alert(wwd);
	x=id.width;y=id.height;
	if(x == 0) return;
	if(x > wwd) {
		ny=y*(wwd/x); nx=wwd;
		id.width=nx;id.height=ny;
	}
}
function swapit(id, im) {
	xx.src='../images/'+im;
	xx.alt=im;
	ttop.innerHTML=pico.innerHTML;
}
function swapitbig(id, im) {
	xx.src='../big/'+im;
	xx.alt=im;
	ttop.innerHTML=pico.innerHTML;
}
function swapback(id) {
	ttop.innerHTML=tab.innerHTML;
	xx.src='';
}
function highlite2(id,mh,im) {
	id.style.backgroundColor='lightsteelblue';
	//id.style.border='thin outset';
	mh.style.background=' url('+im+')';
}
function highlite(id) {
	id.style.backgroundColor='lightsteelblue';
	id.style.border='thin outset';
}
function unlite(id) {
	id.style.backgroundColor='';
	id.style.border='none';
	mh.style.background = ' url(Mexico/thumbnails/TN_Image010.JPG)';
}
function loadpic(im) {
	loadd=new Image();
	loadd.src="../images/"+im;
	pict.src=loadd.src
	pict.alt=im;
}
function showx(im) {   
	//alert(parent.window.frames[1].im1.src);
    parent.window.frames[1].im1.src=im; 
    parent.window.frames[1].im1.height=350;
    //setheight(parent.window.frames[1].im1);
} 
                                                                               
function linewidth(id, pn, tp) {   
	wwd=BwindowWidth();  
	if(wwd==0) wwd=ww;
	xlw=((eval(wwd)-50)/tp)*pn;   
	id.width=xlw;
//	alert(xlw);     
}  
  
function charcol(id,col) {
	//alert(id);
	id.style.color=col;

	//alert(id.style.color);
}

function ttest() {
	//alert(mh);
	header.style.position="absolute"
	header.style.top=document.body.scrollTop;
	sbox.style.position="absolute";
	sbox.style.top=document.body.scrollTop+100;
	setTimeout('ttest()',1000);
}

function schaduw(id) {
	
	
	if(! id.style) {} // alert(id);
	else {
		id.style.filter="Shadow (Color=\"#6699CC\", Direction=135)";
		//alert("m="+m+" n="+n+" d="+d);
	}
}
function doTrans(id) {
	id.filters.item(0).Apply()
	id.style.visibility=""
	id.filters.item(0).Play()
}