// grafic - building
function openWindow1(strAdress) {
  MyWindow = window.open(strAdress,"PopUpWindow","dependent=yes,hotkeys=no,height=330,width=1140,left=0,top=0,location=no,menubar=no,scrollbars=no,resizable=yes,status=no,toolbar=no");
  MyWindow.focus();
}

// footnote
function openWindow2(strAdress) {
  MyWindow = window.open(strAdress,"PopUpWindow","dependent=yes,hotkeys=no,height=180,width=800,left=50,top=50,location=no,menubar=no,scrollbars=no,resizable=yes,status=no,toolbar=no");
  MyWindow.focus();
}

// external link
function openWindow3(strAdress) {
  MyWindow = window.open(strAdress,"PopUpWindow","dependent=no,hotkeys=no,height=400,width=800,left=50,top=50,location=yes,menubar=yes,scrollbars=yes,resizable=yes,status=yes,toolbar=yes");
  MyWindow.focus();
}

// download link
function openWindow4(strAdress) {
  MyWindow = window.open(strAdress,"PopUpWindow","dependent=yes,hotkeys=no,height=295,width=500,left=50,top=50,location=no,menubar=no,scrollbars=no,resizable=yes,status=no,toolbar=no");
  MyWindow.focus();
}
function openWindow4a(strAdress) {
  MyWindow = window.open(strAdress,"PopUpWindow","dependent=yes,hotkeys=no,height=335,width=500,left=50,top=50,location=no,menubar=no,scrollbars=no,resizable=yes,status=no,toolbar=no");
  MyWindow.focus();
}
function openWindow4b(strAdress) {
  MyWindow = window.open(strAdress,"PopUpWindow","dependent=yes,hotkeys=no,height=375,width=500,left=50,top=50,location=no,menubar=no,scrollbars=no,resizable=yes,status=no,toolbar=no");
  MyWindow.focus();
}
function openWindow4c(strAdress) {
  MyWindow = window.open(strAdress,"PopUpWindow","dependent=yes,hotkeys=no,height=600,width=700,left=150,top=150,location=no,menubar=no,scrollbars=no,resizable=yes,status=no,toolbar=no");
  MyWindow.focus();
}
function openWindow4x(strAdress,strHeight) {
  var strProperties = "dependent=yes,hotkeys=no,height=" + strHeight + ",width=700,left=150,top=150,location=no,menubar=no,scrollbars=no,resizable=yes,status=no,toolbar=no";
  MyWindow = window.open(strAdress,"PopUpWindow",strProperties);
  MyWindow.focus();
}
function openWindow5(strAdress) {
  MyWindow = window.open(strAdress,"PopUpWindow","dependent=yes,hotkeys=no,height=375,width=800,left=50,top=50,location=no,menubar=no,scrollbars=yes,resizable=yes,status=no,toolbar=no");
  MyWindow.focus();
}

// open multiple pages
function openPages(mfheader,navigation) {
  parent.mfheader.location.href = mfheader;
  parent.navigation.location.href = navigation;
  alert('navigation writes over mfheader');
}

// follow link
function followLink(folder) {
	var navigationh = folder + "/navigationh.html";
	var navigationv = folder + "/navigationv.html";
	var index = folder + "/index.html";
	parent.navigationh.location.href = navigationh;
	parent.navigationv.location.href = navigationv;
	parent.mainframe.location.href = index;
}


// follow link 2 top frame
function followLinkTop(folder) {
	var navigationh = folder + "/navigationh.html";
	var navigationv = folder + "/navigationv.html";
	var index = folder + "/index.html";
	top.navigationh.location.href = navigationh;
	top.navigationv.location.href = navigationv;
	top.mainframe.location.href = index;
}


// follow link 2 top frame
function followLinkTop2(folder,anchor) {
	var navigationh = folder + "/navigationh.html";
	var navigationv = folder + "/navigationv.html";
	var index = folder + "/index.html";
	top.navigationh.location.href = navigationh;
	top.navigationv.location.href = navigationv;
	top.mainframe.location.href = index;
	top.mainframe.content.location.href = "content.html#" + anchor;
}


// go home
function goHome(folder) {
	var mainframe = folder + "/mainframe.html";
	var navigationh = folder + "/navigationh.html";
	var navigationv = folder + "/navigationv.html";
	parent.mainframe.location.href = mainframe;
	parent.navigationh.location.href = navigationh;
	parent.navigationv.location.href = navigationv;
}

// go home 2 top frame
function goHomeTop(folder) {
	var mainframe = folder + "/mainframe.html";
	var navigationh = folder + "/navigationh.html";
	var navigationv = folder + "/navigationv.html";
	top.mainframe.location.href = mainframe;
	top.navigationh.location.href = navigationh;
	top.navigationv.location.href = navigationv;
}