var URL = "http:\/\/www.virtual-dynamics.net\/";
var PREFIX = "";


if(window.location.hostname == "www.virtual-dynamics.net") {
	PREFIX = "../";
}
else if(window.location.hostname == "127.0.0.1") {
	URL = "http:\/\/127.0.0.1\/";
	PREFIX = "../";
}


Normal1 = new Image();
Normal1.src = PREFIX + "../Graphics/home_blue.gif";
Highlight1 = new Image();
Highlight1.src = PREFIX + "../Graphics/home_gray.gif";

//Normal2 = new Image();
//Normal2.src = PREFIX + "../Graphics/faq_blue.gif";
//Highlight2 = new Image();
//Highlight2.src = PREFIX + "../Graphics/faq_gray.gif";

Normal2 = new Image();
Normal2.src = PREFIX + "../Graphics/tutorial_blue.gif";
Highlight2 = new Image();
Highlight2.src = PREFIX + "../Graphics/tutorial_gray.gif";

Normal3 = new Image();
Normal3.src = PREFIX + "../Graphics/download_blue.gif";
Highlight3 = new Image();
Highlight3.src = PREFIX + "../Graphics/download_gray.gif";

Normal4 = new Image();
Normal4.src = PREFIX + "../Graphics/community_blue.gif";
Highlight4 = new Image();
Highlight4.src = PREFIX + "../Graphics/community_gray.gif";

Normal5 = new Image();
Normal5.src = PREFIX + "../Graphics/shop_blue.gif";
Highlight5 = new Image();
Highlight5.src = PREFIX + "../Graphics/shop_gray.gif";

Normal6 = new Image();
Normal6.src = PREFIX + "../Graphics/support_blue.gif";
Highlight6 = new Image();
Highlight6.src = PREFIX + "../Graphics/support_gray.gif";

Normal7 = new Image();
Normal7.src = PREFIX + "../Graphics/links_blue.gif";
Highlight7 = new Image();
Highlight7.src = PREFIX + "../Graphics/links_gray.gif";

function Bildwechsel(Bildnr,Bildobjekt) {
 window.document.images[Bildnr].src = Bildobjekt.src;
}


function WriteYear() {
		 document.writeln("<h6>Copyright &copy;"); 
		 var now = new Date();
		 var year_act = now.getFullYear();
		 var year = 2004;
		 document.write(year);
		 if(year < year_act) {
		 	document.write("-");
			document.write(year_act);
		 }
		 document.writeln(" by <a href=" + URL + "HTML\/impressum.html>Virtual-Dynamics Software<\/a>. All rights reserved.<\/h6>");
}


function WriteTutorialLinks() {
      document.writeln("<table border=\"1\" cellpadding=\"10\" cellspacing=\"0\" bgcolor=\"#7dc0f0\" bordercolor=\"#FFA810\">");
      document.writeln("<tr>");
      document.writeln("<td>");
      document.writeln("<h5 style=\"color:#000000\">Tutorial Entry<\/h5>");
      document.writeln("<p><a href=\"tutorial.html#SELPD\">Space Explorer launch pad<\/a><br><\/p>");
      document.writeln("<h5 style=\"color:#000000\">Configuration Interface<\/h5>");
      document.writeln("<p><a href=\"tutorial_regkey.html#AFVD\">Activate full version<\/a><br>");
      document.writeln("<p><a href=\"tutorial_cfgmgr.html#CMD\">Configuration manager<\/a><br><\/p>");
      document.writeln("<p><a href=\"tutorial_specorbit.html#SO\">Specify orbit<\/a><br><\/p>");
      document.writeln("<p><a href=\"tutorial_cfgobject.html\">Configure object<\/a><br><\/p>");
      document.writeln("<p><a href=\"tutorial_cfgobject.html#CS\">Coordinate Systems<\/a><br><\/p>");
      document.writeln("<p><a href=\"tutorial_cfgobject.html#COO\">Configuring orbiting objects<\/a><br><\/p>");
      document.writeln("<h5 style=\"color:#000000\">Flight Interface<\/h5>");
      document.writeln("<p><a href=\"tutorial_explore.html#EXP\">Explore solar system<\/a><br><\/p>");
      document.writeln("<p><a href=\"tutorial_replay.html#REP\">Replay recording<\/a><br><\/p>");
      document.writeln("<\/td>");
      document.writeln("<\/tr>");
      document.writeln("<\/table>");
 }


function WriteCfgObjectLinks() {
      document.writeln("<table border=\"1\" cellpadding=\"10\" cellspacing=\"0\" bgcolor=\"#7dc0f0\" bordercolor=\"#FFA810\">");
      document.writeln("<tr>");
      document.writeln("<td>");
      document.writeln("<h5 style=\"color:#000000\">Configure object<\/h5>");
      document.writeln("<p><a href=\"tutorial_cfgstar.html#CS\">Star<\/a><br><\/p>");
      document.writeln("<p><a href=\"tutorial_cfgplanet.html#CP\">Planet<\/a><br><\/p>");
      document.writeln("<p><a href=\"tutorial_cfgobserver.html#CO\">Observer<\/a><br><\/p>");
      document.writeln("<h5 style=\"color:#000000\">Some useful shortcuts<\/h5>");
      document.writeln("<p><a href=\"tutorial_cfgmgr.html#CMD\">Configuration manager<\/a><br><\/p>");
      document.writeln("<p><a href=\"tutorial_cfgobject.html#CS\">Coordinate Systems<\/a><br><\/p>");
      document.writeln("<p><a href=\"tutorial_cfgobject.html#COO\">Configuring orbiting objects<\/a><br><\/p>");
      document.writeln("<\/td>");
      document.writeln("<\/tr>");
      document.writeln("<\/table>");
 }



function WriteHomeLinks() {
      document.writeln("<table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">");
      document.writeln("<tr>");
      document.writeln("<td>");
      document.writeln("<h6><img src=\"Graphics\/tn_Entry_Page.jpg\"><\/img><br>");
      document.writeln("<a href=\"Graphics\/Entry_Page.jpg\" target=\"_blank\">Click to enlarge<\/a><\/h6>");
      document.writeln("<h6><img src=\"Graphics\/tn_Entry_Page_1.jpg\"><\/img><br>");
      document.writeln("<a href=\"Graphics\/Entry_Page_1.jpg\" target=\"_blank\">Click to enlarge<\/a><\/h6>");
      document.writeln("<h6><img src=\"Graphics\/tn_Entry_Page_2.jpg\"><\/img><br>");
      document.writeln("<a href=\"Graphics\/Entry_Page_2.jpg\" target=\"_blank\">Click to enlarge<\/a><\/h6>");
      document.writeln("<h6><img src=\"Graphics\/tn_Entry_Page_3.jpg\"><\/img><br>");
      document.writeln("<a href=\"Graphics\/Entry_Page_3.jpg\" target=\"_blank\">Click to enlarge<\/a><\/h6>");
      document.writeln("<\/td>");
      document.writeln("<\/tr>");
      document.writeln("<\/table>");
}



function WriteButtons() {
	document.writeln("<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
	document.writeln("<tr>");
       	document.writeln("<td><a href=" + URL + "index.htm onmouseover=Bildwechsel(1,Highlight1) onmouseout=Bildwechsel(1,Normal1)><img src=..\/Graphics\/home_blue.gif width=90 height=22 border=0 alt=Home \/></a><br \/></td>");
	//document.writeln("<td><a href=" + URL + "HTML\/faq.html onmouseover=Bildwechsel(2,Highlight2) onmouseout=Bildwechsel(2,Normal2)><img src=..\/Graphics\/faq_blue.gif width=90 height=22 border=0 alt=FAQ \/><\/a><br \/><\/td>");	   
       	document.writeln("<td><a href=\"tutorial.html\" onmouseover=\"Bildwechsel(2,Highlight2)\" onmouseout=\"Bildwechsel(2,Highlight2)\"><img src=\"..\/Graphics\/tutorial_gray.gif\" width=\"90\" height=\"22\" border=\"0\" alt=\"Tutorial\" \/><\/a><br \/><\/td>");
	document.writeln("<td><a href=" + URL + "HTML\/download.html onmouseover=Bildwechsel(3,Highlight3) onmouseout=Bildwechsel(3,Normal3)><img src=..\/Graphics\/download_blue.gif width=90 height=22 border=0 alt=Download \/><\/a><br \/><\/td>");	   
        document.writeln("<td><a href=" + URL + "cgi-bin\/cutecast\/cutecast.pl onmouseover=Bildwechsel(4,Highlight4) onmouseout=Bildwechsel(4,Normal4)><img src=..\/Graphics\/community_blue.gif width=90 height=22 border=0 alt=Community \/><\/a><br \/><\/td>");
	document.writeln("<td><a href=" + URL + "HTML\/buy.html onmouseover=Bildwechsel(5,Highlight5) onmouseout=Bildwechsel(5,Normal5)><img src=..\/Graphics\/shop_blue.gif width=90 height=22 border=0 alt=Shop \/><\/a><br \/><\/td>");
	document.writeln("<td><a href=" + URL + "HTML\/contact.html onmouseover=Bildwechsel(6,Highlight6) onmouseout=Bildwechsel(6,Normal6)><img src=..\/Graphics\/support_blue.gif width=90 height=22 border=0 alt=Support \/><\/a><br \/><\/td>");
	document.writeln("<td><a href=" + URL + "HTML\/links.html onmouseover=Bildwechsel(7,Highlight7) onmouseout=Bildwechsel(7,Normal7)><img src=..\/Graphics\/links_blue.gif width=90 height=22 border=0 alt=Links \/><\/a><br \/><\/td>");
	document.writeln("<\/tr>");
	document.writeln("<\/table>");
}


