// JavaScript Document
function openImage(file) {
	var w = 680;
	var h = screen.availHeight;
	var myimage = file;
	if (navigator.platform.indexOf('mac') != -1) {
	 	var props = "menubar=yes,width="+w+",height="+h+",top=0,screenY=0,left=0,screenX=0,resizable=yes,scrollbars=yes";
	} else {
		var props = "width="+w+",height="+h+",top=0,screenY=0,left=0,screenX=0,resizable=yes,scrollbars=yes";
	}
	var myWin = window.open(myimage,"Images",props);
	myWin.focus();
}

function openTrans(file) {
	var w = 560;
	var h = screen.availHeight;
	var mytrans = file;
	if (navigator.platform.indexOf('mac') != -1) {
	 	var props = "menubar=yes,width="+w+",height="+h+",top=0,screenY=0,left=0,screenX=0,resizable=yes,scrollbars=yes";
	} else {
		var props = "width="+w+",height="+h+",top=0,screenY=0,left=0,screenX=0,resizable=yes,scrollbars=yes";
	}
	var myTrans = window.open(mytrans,"Images",props);
	myTrans.focus();
}

function popitup2(file) {
	var w = 995;
	var h = screen.availHeight;
	var myimage = file;
	if (navigator.platform.indexOf('mac') != -1) {
	 	var props = "menubar=yes,width="+w+",height="+h+",top=0,screenY=0,left=0,screenX=0,resizable=yes,scrollbars=yes";
	} else {
		var props = "width="+w+",height="+h+",top=0,screenY=0,left=0,screenX=0,resizable=yes,scrollbars=yes";
	}
	var myImage = window.open(myimage,"Images",props);
	if (window.focus) {
		myImage.focus();
	}
	return false;
}

function popitup(file) {
	var w = 680;
	var h = screen.availHeight;
	var myimage = file;
	if (navigator.platform.indexOf('mac') != -1) {
	 	var props = "menubar=yes,width="+w+",height="+h+",top=0,screenY=0,left=0,screenX=0,resizable=yes,scrollbars=yes";
	} else {
		var props = "width="+w+",height="+h+",top=0,screenY=0,left=0,screenX=0,resizable=yes,scrollbars=yes";
	}
	var myWin = window.open(myimage,"Images",props);
	myWin.focus();
	return false;
}