var root = "http://www.softxpert.ch/";

/*****************************************************************************************
 * Opens a popup, which is defined by an id, handled by the function below.
 *****************************************************************************************/
function popup (windowId) {
	
	var withScrolling 		= "dependent=no,hotkeys=no,scrollbars=yes,resizable=no,status=yes";
	var withoutScrolling 	= "dependent=no,hotkeys=no,scrollbars=no,resizable=no,status=yes";
	var withScrollingVar 	= "dependent=yes,hotkeys=no,scrollbars=yes,resizable=yes,status=yes,toolbar=yes,menubar=yes";
	
	if (windowId=="impressum")
		openPopup(root + "impressum.html", "Impressum", 450, 420, withScrolling);
	else if (windowId=="disclaimer")
		openPopup(root + "disclaimer.html", "Disclaimer", 450, 420, withScrolling);
	else if (windowId=="linklist") {
		openPopup(root + "linklist/linklist.html", "Linklist", 0, 0, withScrollingVar);
	}
}

/*****************************************************************************************
 * Loads frames, according to a caller ID
 *****************************************************************************************/
function refreshFrames (callerId) {
	
	if (callerId=="home")
		loadFramesTwo("I", "blank.html", "menu", "welcome_text.html", "content");
	if (callerId=="solution")
		loadFramesTwo("I", "blank.html", "menu", "./solution/welcome_text.html", "content");
	else if (callerId=="hosting")
		loadFramesTwo("I", "./hosting/menu.html", "menu", "./hosting/welcome_text.html", "content");
	else if (callerId=="consulting")
		loadFramesTwo("I", "blank.html", "menu", "./consulting/welcome_text.html", "content");
	else if (callerId=="software")
		loadFramesTwo("I", "./software/menu.html", "menu", "./software/welcome_text.html", "content");
	else if (callerId=="knowhow")
		loadFramesTwo("I", "./knowhow/menu.html", "menu", "./knowhow/welcome_text.html", "content");
}
