﻿// JScript File
function openWindow(theURL,winName,features) 
			{ 
			var _W=window.open(theURL,winName,features);
				_W.focus();
				_W.moveTo(50,50); 0
			}
function popupImg(address)  {
	if (window.navigator.appName.indexOf("Explorer") >=0) {
		Core = window.open(address, "", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=650,height=600,top=100,left=200")
	} else {
		Core = window.open(address, "", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=650,height=600,x=100,y=200")
		Core.moveTo(0,0);
	}
	Core.focus();
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImagesArray(array) {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<array.length; i+=2) {
			document[array[i]].src = array[i+1];
		}
	}
}

function changeImages() {
	changeImagesArray(changeImages.arguments);
}

function toggleImages() {
	for (var i=0; i<toggleImages.arguments.length; i+=2) {
		if (selected == toggleImages.arguments[i])      changeImagesArray(toggleImages.arguments[i+1]);
	}
}

var selected = '';

function popup(address)  {
	if (window.navigator.appName.indexOf("Explorer") >=0) {
		Core = window.open(address, "popWin", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=600,height=600,top=0,left=0")
	} else {
		Core = window.open(address, "popWin", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=600,height=600,x=0,y=0")
		Core.moveTo(0,0);
	}
	Core.focus();
}

