﻿function rightOff() { return false }
document.oncontextmenu = rightOff;

function closewindow() { self.close(0); return true; }

var urlOpen = new Array();
urlOpen[0] = ("status=0,location=0,scrollbars=1,resizable=1,menubar=0,toolbar=0");
urlOpen[1] = ("status=0,location=0,scrollbars=0,resizable=0,menubar=0,toolbar=0");
urlOpen[2] = ("status=1,location=0,scrollbars=1,resizable=0,menubar=0,toolbar=0");

var urlLoc = new Array();
urlLoc[0] = ('screenX='+(screen.width - 990)/2+',screenY='+(screen.height - 600)/2+',left='+(screen.width - 990)/2+',top='+(screen.height - 600)/2);
urlLoc[1] = ('screenX='+(screen.width - 850)/2+',screenY='+(screen.height - 470)/2+',left='+(screen.width - 850)/2+',top='+(screen.height - 470)/2);
urlLoc[2] = ("left=0,top=0,screenX=0,screenY=0");
urlLoc[3] = ('screenX='+(screen.width - 990)/2+',screenY='+(screen.height - 470)/2+',left='+(screen.width - 990)/2+',top='+(screen.height - 470)/2);
urlLoc[4] = ("left=0,top=0,screenX=0,screenY=0");
urlLoc[5] = ('screenX='+(screen.width - 435)/2+',screenY='+(screen.height - 410)/2+',left='+(screen.width - 435)/2+',top='+(screen.height - 410)/2);
urlLoc[6] = ('screenX='+(screen.width - 435)/2+',screenY='+(screen.height - 160)/2+',left='+(screen.width - 435)/2+',top='+(screen.height - 160)/2);
urlLoc[7] = ('screenX='+(screen.width - 780)/2+',screenY='+(screen.height - 460)/2+',left='+(screen.width - 780)/2+',top='+(screen.height - 460)/2);
urlLoc[8] = ('screenX='+(screen.width - 260)/2+',screenY='+(screen.height - 220)/2+',left='+(screen.width - 260)/2+',top='+(screen.height - 220)/2);
urlLoc[9] = ('screenX='+(screen.width - 330)/3.2+',screenY='+(screen.height - 265)/3.2+',left='+(screen.width - 265)/3.8+',top='+(screen.height - 330)/3.8);

function opURL (url,wd,ht,wn,tp,lc)
	{
	if (wd==null){wd=320;}
	if (ht==null){ht=400;}
	if (wn==null){vdt=new Date();wn="ako"+vdt.getMilliseconds()+vdt.getSeconds();}
	if (tp==null){tp=4;}
	if (lc==null){lc=2;}
	strWidth="width="+wd+",height="+ht+",";
	strOpen=strWidth+urlOpen[tp]+","+urlLoc[lc];
	surl=String(url).substring(0,4);
	documentWindow =  window.open(url,wn,strOpen);
	documentWindow.focus();
	}

function myWindowURL(newURL){opURL(newURL,990,600,'GoGoWindowURL',0,0);}
function myWindow(newURL){opURL(newURL,850,470,'GoGoWindow',1,1);}
function myWindowNo(newURL){opURL(newURL,790,490,'GoGoWindowNo',2,2);}
function myWindowGuestbook(newURL){opURL(newURL,990,470,'GoGoWindowGuestbook',1,3);}
function myWindowGuestbookNo(newURL){opURL(newURL,790,470,'GoGoWindowGuestbookNo',1,4);}
function myWindowTermine(newURL){opURL(newURL,990,600,'GoGoTermine',1,3);}
function myWindowMusikmesse(newURL){opURL(newURL,435,410,'GoGoWindowMusikmesse',1,5);}
function myWindowReisebericht(newURL){opURL(newURL,435,380,'GoGoWindowReisebericht',1,5);}
function myWindowFangalerie(newURL){opURL(newURL,435,395,'GoGoWindowFangalerie',1,5);}
function myWindowTheChallenge(newURL){opURL(newURL,435,160,'GoGoWindowTheChallenge',1,6);}
function myWindowWilde13(newURL){opURL(newURL,435,395,'GoGoWindowWilde13',1,5);}
function myWindowDNDT(newURL){opURL(newURL,435,415,'GoGoWindowWilde13',1,5);}
function myDNDTShop(newURL){opURL(newURL,850,456,'GoGoDNDTShop',1,7);}
function myWindowDetailsWare(newURL){opURL(newURL,460,320,'myWindowDetailsWare',1,8);}
function myWindowWareC(newURL){opURL(newURL,330,265,'myWindowWareC',1,9);}
