<!-- 

if (top.frames.length > 0) top.location.href=self.location;

/////////////////////////////////////////////////////////////////////////////////////////
// sonstige Funktionen

function newEntry() {
    input = document.GBInsert.realname.value + "\r\n" + document.GBInsert.email.value + "\r\n" + document.GBInsert.comments.value;
    ex = new Array( /p+\s*e+\s*n+\s*e+\s*r+/i,
                    /v+\s*e+\s*r+\s*s+\s*a+\s*g+\s*e+\s*r+/i,
                    /f+\s*r+\s*e+\s*s+\s*e+\b/i,
                    /f+\s*.+\s*c+\s*k+/i,
                    /i+\s*d+\s*i+\s*o+\s*t+/i,
                    /\ba+\s*r+\s*s+\s*c+\s*h+/i,
                    /(.)\1\1\1/);
    for (i=0; i<ex.length; i++)
        if (input.search(ex[i])>=0) {
            alert("Bitte geben Sie einen vernünftigen Text ein!");
            return false;
        }
    
    return true;
}

var totalImg = 0;
var images = new Array();
function imageObj(name, width, height) {
	this.name = name;
	this.width = width;
	this.height = height;
	this.norm = new Image (width, height);
	this.norm.src = name + ".gif";
	this.over = new Image (width, height);
	this.over.src = name + "_ov.gif";
}
function preloadImg(name, width, height) {
  images[totalImg] = new imageObj(name, width, height);
  totalImg++;
}
function getImg(nr) {
  return images[nr];
}

/////////////////////////////////////////////////////////////////////////////////////////
// Inhaltsverzeichnis ausgeben
function w(text)
{
	document.writeln(text);
}

function newImage(arg) {
	ret = new Image();
	ret.src = arg;
	return ret;
}

function borderStart(detail, path)
{
    var bEn = (window.location.href.indexOf("/en/")<0);
    var bDe = (window.location.href.indexOf("/de/")<0);
    var newLoc = "";
    if (bDe)
        newLoc = window.location.href.replace(/\/en\//, "/de/");
    else
        newLoc = window.location.href.replace(/\/de\//, "/en/");
    
    // Image-Maps
	w("<map name=\"lang_switch\">");
	if (bEn)
	    w("<area href=\"" + newLoc + "\" shape=\"rect\" coords=\"20, 0, 60, 24\">");
	if (bDe)
    	w("<area href=\"" + newLoc + "\" shape=\"rect\" coords=\"61, 0, 101, 24\">");
	w("</map>");
	w("<map name=\"content1\">");
	w("<area shape=\"rect\" coords=\"1, 1, 135, 23\" href=\"" + path + "standort/leistungen/index.php\" alt=\"\">");
	w("<area shape=\"rect\" coords=\"1, 23, 135, 45\" href=\"" + path + "fahrpool/index.php\" alt=\"\">");
	w("<area shape=\"rect\" coords=\"1, 45, 135, 90\" href=\"" + path + "standort/swd/index.php\" alt=\"\">");
	w("<area shape=\"rect\" coords=\"1, 90, 135, 112\" href=\"" + path + "standort/vorstellung/index.php\" alt=\"\">");
	w("<area shape=\"rect\" coords=\"1, 112, 135, 134\" href=\"" + path + "standort/lageplan.php\" alt=\"\">");
	w("<area shape=\"rect\" coords=\"1, 134, 135, 156\" href=\"" + path + "standort/kontakt.php\" alt=\"\">");
	w("</map>");
	w("<map name=\"content2\">");
	w("<area shape=\"rect\" coords=\"1, 1, 135, 23\" href=\"" + path + "motorsport/fk/index.php\" alt=\"\">");
	w("<area shape=\"rect\" coords=\"1, 23, 135, 45\" href=\"" + path + "motorsport/scc2005/index.php\" alt=\"\">");
	w("<area shape=\"rect\" coords=\"1, 45, 135, 67\" href=\"" + path + "motorsport/scsa2005/index.php\" alt=\"\">");
	w("<area shape=\"rect\" coords=\"1, 67, 135, 90\" href=\"" + path + "motorsport/archiv/index.php\" alt=\"\">");
	w("</map>");
	w("<map name=\"content3\">");
	w("<area shape=\"rect\" coords=\"1, 4, 135, 28\" href=\"" + path + "promotion/freizeit/index.php\" alt=\"\">");
	w("<area shape=\"rect\" coords=\"1, 28, 135, 52\" href=\"" + path + "promotion/promotion/index.php\" alt=\"\">");
	w("<area shape=\"rect\" coords=\"1, 52, 135, 76\" href=\"" + path + "promotion/events/index.php\" alt=\"\">");
	w("</map>");
	w("<map name=\"content4\">");
	w("<area shape=\"rect\" coords=\"1, 1, 135, 23\" href=\"" + path + "news/index.php\" alt=\"\">");
	w("<area shape=\"rect\" coords=\"1, 23, 135, 45\" href=\"" + path + "motorsport/presse/index.php\" alt=\"\">");
	w("</map>");
	w("<map name=\"content5\">");
	w("<area shape=\"rect\" coords=\"1, 4, 135, 28\" href=\"" + path + "nachwuchs/index.php\" alt=\"\">");
	w("<area shape=\"rect\" coords=\"1, 28, 135, 52\" href=\"" + path + "nachwuchs/nachwuchs.php\" alt=\"\">");
	w("<area shape=\"rect\" coords=\"1, 52, 135, 70\" href=\"" + path + "nachwuchs/schumi2002/index.php\" alt=\"\">");
	w("<area shape=\"rect\" coords=\"1, 70, 135, 91\" href=\"" + path + "nachwuchs/schumi2003/index.php\" alt=\"\">");
	w("</map>");

    // Bilder laden
    content1_over = newImage(path + "design/content1_anim.gif");
    content1_on = newImage(path + "design/content1_on.gif");
    content2_over = newImage(path + "design/content2_anim.gif");
    content2_on = newImage(path + "design/content2_on.gif");
    content3_over = newImage(path + "design/content3_anim.gif");
    content3_on = newImage(path + "design/content3_on.gif");
    content4_over = newImage(path + "design/content4_anim.gif");
    content4_on = newImage(path + "design/content4_on.gif");
    content5_over = newImage(path + "design/content5_over.gif");
    content6_over = newImage(path + "design/content6_anim.gif");
    content6_on = newImage(path + "design/content6_on.gif");

	// Rahmen
	w("<div align=\"center\">");
	w("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"1000\">");
	w("<colgroup><col width=\"100%\"></colgroup>");
	w("<tr><td>");
	w("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"67\" background=\"" + path + "design/top.gif\">");
	w("<tr>");
	w("<td width=\"15\" height=\"67\" valign=\"middle\"><p><img src=\"" + path + "design/top_left.gif\" width=\"15\" height=\"67\" border=\"0\"></p></td>");
	w("<td width=\"29\" height=\"67\" valign=\"middle\"><p><img src=\"" + path + "design/screw.gif\" width=\"29\" height=\"25\" border=\"0\" vspace=\"11\"></p></td>");
	w("<td width=\"191\" height=\"67\"><p><img src=\"" + path + "design/title.gif\" width=\"191\" height=\"22\" border=\"0\"></p></td>");
	w("<td width=\"20\" height=\"67\"><img src=\"" + path + "design/spacer.gif\" width=\"20\" height=\"10\" border=\"0\"></td>");
	w("<td width=\"20\" height=\"67\" background=\"" + path + "design/top_line.gif\">&nbsp;</td>");
	w("<td width=\"10\" height=\"67\"><img src=\"" + path + "design/spacer.gif\" width=\"10\" height=\"10\" border=\"0\"></td>");
	w("<td height=\"67\" align=\"center\" valign=\"center\"><img border=\"0\" src=\"" + path + "design/spons1.gif\" width=\"81\" height=\"30\"></td>");
	w("<td height=\"67\" align=\"center\" valign=\"center\"><img border=\"0\" src=\"" + path + "design/spons2.gif\" width=\"73\" height=\"32\"></td>");
	w("<td height=\"67\" align=\"center\" valign=\"center\"><img border=\"0\" src=\"" + path + "design/spons3.gif\" width=\"100\" height=\"33\"></td>");
	w("<td height=\"67\" align=\"center\" valign=\"center\"><img border=\"0\" src=\"" + path + "design/spons4.gif\" width=\"33\" height=\"40\"></td>");
	w("<td height=\"67\" align=\"center\" valign=\"center\"><img border=\"0\" src=\"" + path + "design/spons5.gif\" width=\"64\" height=\"40\"></td>");
	w("<td height=\"67\" align=\"center\" valign=\"center\"><img border=\"0\" src=\"" + path + "design/spons6.gif\" width=\"89\" height=\"35\"></td>");
	w("<td width=\"160\" height=\"67\" valign=\"middle\" align=\"right\"><p><img src=\"" + path + "design/linescrew.gif\" width=\"160\" height=\"25\" border=\"0\" vspace=\"11\" hspace=\"5\" usemap=\"#lang_switch\"></p></td>");
	w("<td width=\"15\" height=\"67\" valign=\"middle\" align=\"right\"><p><img src=\"" + path + "design/top_right.gif\" width=\"15\" height=\"67\" border=\"0\"></p></td>");
	w("</tr></table>");
	w("</td></tr>");
	w("<tr>");
	w("<td width=\"100%\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" bgcolor=\"white\">");
	w("<colgroup><col width=\"150\"><col width=\"20\"><col width=\"100%\"><col width=\"20\"></colgroup>");
	w("<tr>");
	w("<td width=\"150\" bgcolor=\"#104A9C\" valign=\"top\" align=\"center\" rowspan=\"3\">");
	
	// Inhaltsverzeichnis
	w("<img src=\"" + path + "design/spacer.gif\" width=\"1\" height=\"10\" border=\"0\"><br>");
	
    w("<a href=\"" + path + "index2.php\">");
	document.write("<img src=\"" + path + "design/bu_news.gif\" width=\"121\" height=\"22\" border=\"0\" name=\"content1\">");
	document.write("</a>");
	w("<p><img src=\"" + path + "design/content_line.gif\" width=\"112\" height=\"6\" border=\"0\" name=\"content2\"></p><p>");

	if (detail!=2) {
		w("<a href=\"" + path + "motorsport/scc2005/index.php\">");
		document.write("<img src=\"" + path + "design/content2.gif\" width=\"150\" height=\"45\" border=\"0\" name=\"content5\" onmouseover=\"this.src=content2_over.src\"  onmousedown=\"this.src=content2_on.src\" onmouseup=\"this.src='" + path + "design/content2.gif'\"onmouseout=\"this.src='" + path + "design/content2.gif'\">");
		w("</a>");
	}
	else {
		w("<img src=\"" + path + "design/content2.gif\" width=\"150\" height=\"45\" border=\"0\" name=\"content5\"><br>");
		w("<img src=\"" + path + "design/content2_detail.gif\" width=\"135\" height=\"91\" border=\"0\" usemap=\"#content2\"><br><br>");
	}

	if (detail!=1) {
		w("<a href=\"" + path + "standort/leistungen/index.php\">");
		document.write("<img src=\"" + path + "design/content1.gif\" width=\"150\" height=\"45\" border=\"0\" name=\"content3\" onmouseover=\"this.src=content1_over.src\" onmousedown=\"this.src=content1_on.src\" onmouseup=\"this.src='" + path + "design/content1.gif'\" onmouseout=\"this.src='" + path + "design/content1.gif'\">");
		w("</a>");
	}
	else {
		w("<img src=\"" + path + "design/content1.gif\" width=\"150\" height=\"45\" border=\"0\" name=\"content3\"><br>");
	    w("<img src=\"" + path + "design/content1_detail.gif\" width=\"135\" height=\"156\" border=\"0\" usemap=\"#content1\"><br><br>");
	}

	if (detail!=3) {
		w("<a href=\"" + path + "promotion/freizeit/index.php\">");
		document.write("<img src=\"" + path + "design/content3.gif\" width=\"150\" height=\"45\" border=\"0\" name=\"content4\" onmouseover=\"this.src=content3_over.src\" onmousedown=\"this.src=content3_on.src\" onmouseup=\"this.src='" + path + "design/content3.gif'\" onmouseout=\"this.src='" + path + "design/content3.gif'\">");
		w("</a>");
	}
	else {
		w("<img src=\"" + path + "design/content3.gif\" width=\"150\" height=\"45\" border=\"0\" name=\"content4\"><br>");
		w("<img src=\"" + path + "design/content3_detail.gif\" width=\"135\" height=\"67\" border=\"0\" usemap=\"#content3\"><br><br>");
	}

	if (detail!=4) {
		w("<a href=\"" + path + "news/index.php\">");
  	document.write("<img src=\"" + path + "design/content4.gif\" width=\"150\" height=\"45\" border=\"0\" name=\"content4\" onmouseover=\"this.src=content4_over.src\" onmousedown=\"this.src=content4_on.src\" onmouseup=\"this.src='" + path + "design/content4.gif'\" onmouseout=\"this.src='" + path + "design/content4.gif'\">");
		w("</a>");
	}
	else {
  	w("<img src=\"" + path + "design/content4.gif\" width=\"150\" height=\"45\" border=\"0\" name=\"content4\">");
		w("<img src=\"" + path + "design/content4_detail.gif\" width=\"135\" height=\"43\" border=\"0\" usemap=\"#content4\"><br><br>");
	}

	w("<a href=\"" + path + "merchandising/index.php\">");
	document.write("<img src=\"" + path + "design/content6.gif\" width=\"150\" height=\"45\" border=\"0\" name=\"content4\" onmouseover=\"this.src=content6_over.src\" onmousedown=\"this.src=content6_on.src\" onmouseup=\"this.src='" + path + "design/content6.gif'\" onmouseout=\"this.src='" + path + "design/content6.gif'\">");
	w("</a>");

	//w("<img src=\"" + path + "design/content_line.gif\" width=\"112\" height=\"6\" border=\"0\" name=\"content4_line\"><br><br>");

	if (detail!=5) {
  	w("<a href=\"" + path + "nachwuchs/index.php\">");
    document.write("<img src=\"" + path + "design/content5.gif\" width=\"120\" height=\"67\" border=\"0\" name=\"content5\" onmouseover=\"this.src=content5_over.src\" onmouseout=\"this.src='" + path + "design/content5.gif'\">");
  	w("</a>");
  } else {
    w("<img src=\"" + path + "design/content5.gif\" width=\"120\" height=\"67\" border=\"0\" name=\"content5\">");
    w("<img src=\"" + path + "design/content5_detail.gif\" width=\"135\" height=\"91\" border=\"0\" usemap=\"#content5\">");
  }

	w("<p><img src=\"" + path + "design/content_line.gif\" width=\"112\" height=\"6\" border=\"0\" name=\"content6\"></p>");
	//w("<p><a href=\"" + path + "../gaestebuch/index.php\"><img src=\"" + path + "design/bu_gaeste.gif\" width=\"121\" height=\"22\" border=\"0\" name=\"content9\"></a></p>");
	w("<p><a href=\"" + path + "standort/lageplan.php\"><img src=\"" + path + "design/bu_impressum.gif\" width=\"121\" height=\"22\" border=\"0\" name=\"content7\"></a></p>");
	w("<p><a href=\"" + path + "wortindex.php\"><img src=\"" + path + "design/bu_wortindex.gif\" width=\"121\" height=\"22\" border=\"0\" name=\"content7\"></a></p>");
	w("<p><img src=\"" + path + "design/content_line.gif\" width=\"112\" height=\"6\" border=\"0\" name=\"content8\"></p>");
	//w("<p><a href=\"http://www.webcounter.goweb.de\" target=\"_blank\"><img src=\"http://webcounter.goweb.de/83635.GIF\" alt=\"GOWEBCounter\" border=\"0\" vspace=\"0\"></a>");
	w("<br><font size=\"1\" color=\"#C0C0C0\">03.11.2004</font></p>");
	//w("<p><img src=\"" + path + "design/spacer.gif\" width=\"150\" height=\"10\" border=\"0\" name=\"content\">");
	
	// Ende Inhalt
	
	w("</td>");
	w("<td width=\"20\" height=\"26\"><p align=\"right\"><img src=\"" + path + "design/corner1.gif\" width=\"22\" height=\"26\" border=\"0\"></td>");
	w("<td width=\"100%\" height=\"26\" background=\"" + path + "design/top2.gif\"><p>&nbsp;</td>");
	w("<td width=\"20\" height=\"26\" background=\"" + path + "design/top2.gif\"><p><img src=\"" + path + "design/corner2.gif\" width=\"22\" height=\"26\" border=\"0\"></td>");
	w("</tr><tr>");
	w("<td width=\"20\" background=\"" + path + "design/left.gif\"><p>&nbsp;</td>");
	if (detail==1)
		w("<td width=\"100%\" height=\"720\" background=\"" + path + "design/hint1.gif\" valign=\"top\">");
	else if (detail==2)
		w("<td width=\"100%\" height=\"650\" background=\"" + path + "design/hint2.gif\" valign=\"top\">");
	else if (detail==3)
		w("<td width=\"100%\" height=\"650\" background=\"" + path + "design/hint3.gif\" valign=\"top\">");
	else if (detail==4)
		w("<td width=\"100%\" height=\"600\" background=\"" + path + "design/hint4.gif\" valign=\"top\">");
	else if (detail==5)
		w("<td width=\"100%\" height=\"670\" background=\"" + path + "design/hint5.gif\" valign=\"top\">");
	else if (detail==6)
		w("<td width=\"100%\" height=\"600\" background=\"" + path + "design/hint6.gif\" valign=\"top\">");
	else
		w("<td width=\"100%\" height=\"670\" valign=\"top\">");
}

function borderEnd(detail, path)
{
//w("<p>" + navigator.userAgent + "</p>");
	w("</td>");
	w("<td width=\"20\" background=\"" + path + "design/right.gif\"><p><img src=\"" + path + "design/spacer.gif\" width=\"20\" height=\"10\" border=\"0\"></td>");
	w("</tr><tr>");
	w("<td width=\"20\" height=\"26\" align=\"center\" valign=\"top\" background=\"" + path + "design/left.gif\"><p><img src=\"" + path + "design/corner4.gif\" width=\"22\" height=\"26\" border=\"0\"></td>");
	w("<td width=\"100%\" height=\"26\" background=\"" + path + "design/bottom.gif\"><p>&nbsp;</td>");
	w("<td width=\"20\" height=\"26\"><p><img src=\"" + path + "design/corner3.gif\" width=\"22\" height=\"26\" border=\"0\"></td>");
	w("</tr></table></td>");
	w("</tr></table>");
	w("</div>");	
}

//-->