var doc = document;

function initializeDocument(page) 
{ 
	var fbform = "http://www.vlg-gecko.ch/public/reklamation.aspx?user=feedback123comform";
	
	var b = "";
	var link = "home";
	if (page==0) {
		link = "home";
	}
	else if (page==1) {
		link = "product";
	}
	else if (page==2) {
		link = "kunden";
	}
	else if (page==3) {
		link = "partner";
	}
	else if (page==4) {
		link = "support";
	}
	else if (page==5) {
		link = "downloads";
	}
	else if (page==6) {
		link = "firma";
	}
	else {
		link = "home";
	}
	
	
	b += "<DIV id='globaltop'>";	
	b += "<DIV id='logo'>";
	b += "<DIV class='links'>";
	b += "		<A href='index.htm'>Home</A> | ";
	b += "		<A href='sitemap.htm'>Sitemap</A> | ";
	b += "		<A href='disclaimer.htm'>Disclaimer</A>";
	b += "</DIV></DIV>";
	
	b += "<DIV class='" + link + "' id='globalheader'>";
		
	b += "<UL id='globalnav'>";
	
	b += "<LI id='gn-home'>";
	b += "<A href='index.htm'></A></LI>";
	
	b += "<LI id='gn-product'>";
	b += "<A href='produkte.htm'></A></LI>";
	
	b += "<LI id='gn-kunden'>";
	b += "<A href='knd_projekte.htm'></A></LI>";
	//b += "<A href='knd_main.htm'></A></LI>";
	
	//b += "<LI id='gn-partner'>";
	//b += "<A href='partner.htm'></A></LI>";
	
	b += "<LI id='gn-support'>";
	b += "<A href='support.htm'></A></LI>";
	
	b += "<LI id='gn-downloads'>";
	b += "<A href='download.htm'></A></LI>";
	
	b += "<LI id='gn-firma'>";
	b += "<A href='about.htm'></A></LI>";
	
	b += "</UL>";
		
	b += "<DIV id='globalsearch'>";
	b += "<FORM class='search' id='g-search' action='searchresults.php' method='get'>";
	//b += " <INPUT id='search-oe' type='hidden' value='utf-8' name='oe'>";
	//b += " <INPUT id='search-access' type='hidden' value='p' name='access'>";
	//b += " <INPUT id='search-site' type='hidden' value='us_only' name='site'>";
	//b += " <INPUT id='search-lr' type='hidden' value='lang_en' name='lr'>";
	b += "<LABEL for='sp-searchtext'>";
	b += "<SPAN class='prettyplaceholder'>Suchen</SPAN>";
	b += "<DIV class='search-wrapper blurred empty'>";
	b += "<SPAN class='left'></SPAN>";
	b += "<INPUT autocomplete='off' class='g-prettysearch' id='sp-searchtext' accessKey='s' type='search' name='searchValue'>";
	b += "<SPAN class='right'></SPAN>";
	b += "<DIV class='reset'></DIV>";
	b += "</DIV></LABEL></FORM>";
	b += "</DIV>"; // globalsearch
		
	
	b += "</DIV>"; // globalheader
		
	b += "</DIV>"; // globaltop
	
	
	doc.write(b);
}








