NS4=(navigator.appName=="Netscape"&&parseInt(navigator.appVersion)==4)?true:false;

function pl(source)
{
	tmpImg=new Image();
	tmpImg.src=source;
}

function ch(imgname,source,div)
{
	if (NS4&&div) {document.layers[div].document.images[imgname].src=source;}
	else {document.images[imgname].src=source;}
}

function ch2(source,div)
{
	var img = "map";
	var div1 = "fake";
	if (NS4&&div) {document.layers[div1].document.images[img].src="img/map/area"+source+".gif";}
	else {document.images[img].src="img/map/area"+source+".gif";}
}

function ch3(div)
{
	if (NS4&&div) {document.layers["fake"].document.images["map"].src="img/map/transbig.gif";}
	else {document.images["map"].src="img/map/transbig.gif";}
}

function ch4(div)
{
	if (NS4&&div) {document.layers["fake"].document.images["map"].src="img/map/translondon.gif";}
	else {document.images["map"].src="img/map/transbig.gif";}
}
function open_window() {	
	window.open("wedd.htm","popup","toolbar=0,location=0,resizable=0,menubar=0,scrollbars=0,directories=0,top=100,left=100,height=550,width=600");
    if (!window.opener) window.opener = self;
}
function open_window1() {	
	window.open("wedd1.htm","popup","toolbar=0,location=0,resizable=0,menubar=0,scrollbars=0,directories=0,top=100,left=100,height=550,width=600");
    if (!window.opener) window.opener = self;
}
function open_window2() {	
	window.open("zwem.htm","popup","toolbar=0,location=0,resizable=0,menubar=0,scrollbars=0,directories=0,top=100,left=100,height=550,width=600");
    if (!window.opener) window.opener = self;
}

function open_window3a() {	
	window.open("new.htm","popup","toolbar=0,location=0,resizable=0,menubar=0,scrollbars=0,directories=0,top=250,left=300,height=260,width=200");
    if (!window.opener) window.opener = self;
}


function SetFrame(s) {
	s = "area"+s+".htm";
	opener.location.href = s;
}
