
baseURL = "http://www.tcsoftware.com";

// baseURL = "http://wormhole/";

/*
 * check if top window is the correct windows with framesets
 * (thus not this window), sets wrpContentURL
 */


indexURL = baseURL + "/test?"; 

if (top.location.href.substring(0, indexURL.length) != indexURL) {
	tmp = "";
	ref = location.href;
	
	if (ref == "http://www.tcsoftware.com/preview1.htm") { tmp = "lang=nl&id=10";tmp.replace("/\//", ",");top.location.replace(baseURL + "/test.php?"+tmp+ "&r=1");}
	if (ref == "http://www.tcsoftware.com/preview.htm") { tmp = "lang=eng&id=10";tmp.replace("/\//", ",");top.location.replace(baseURL + "/test.php?"+tmp+ "&r=1");}
	if (ref == "http://www.tcsoftware.com/down/index8.htm") { tmp = "lang=nl&id=5";tmp.replace("/\//", ",");top.location.replace(baseURL + "/test.php?"+tmp+ "&r=1");}
	if (ref == "http://www.tcsoftware.com/down/mainframee.htm") { tmp = "lang=eng&id=5";tmp.replace("/\//", ",");top.location.replace(baseURL + "/test.php?"+tmp+ "&r=1");}
}

/*
 * set title to be the title of index.html + the content title
 */

// needs to be called after title is set
top.document.title = top.title + " - " + document.title;

/*
 * load style sheets
 */
//document.write("<LINK REL=STYLESHEET HREF='css/homepage.css' TYPE='text/css'><LINK REL=STYLESHEET HREF='css/linktable.css' TYPE='text/css'>");

