//<![CDATA[

 // If you don't want to put nonstandard properties in your stylesheet, here's yet
 // another means of activating the script. This assumes that you have at least one
 // stylesheet included already in the document above this script.
 // To activate, delete the CSS rules above and uncomment below (remove /* and */ ).

 /*
 if (document.all && /MSIE (5\.5|6)/.test(navigator.userAgent) &&
  document.styleSheets && document.styleSheets[0] && document.styleSheets[0].addRule)
 {
  document.styleSheets[0].addRule('*', 'behavior: url(iepngfix.htc)');
  // Feel free to add rules for specific elements only, as above.
  // You have to call this once for each selector, like so:
  //document.styleSheets[0].addRule('img', 'behavior: url(iepngfix.htc)');
  //document.styleSheets[0].addRule('div', 'behavior: url(iepngfix.htc)');
 }
 */
 // Here's another script that disables all PNGs in IE when the page is printed.
 /*
 if (window.attachEvent  && /MSIE (5\.5|6)/.test(navigator.userAgent))
 {
  function printPNGFix(disable)
  {
   for (var  i = 0; i < document.all.length; i++)
   {
    var e = document.all[i];
    if (e.filters['DXImageTransform.Microsoft.AlphaImageLoader'] || e._png_print)
    {
     if (disable)
     {
      e._png_print = e.style.filter;
      e.style.filter = '';
     }
     else
     {
      e.style.filter = e._png_print;
      e._png_print = '';
     }
    }
   }
  };
  window.attachEvent('onbeforeprint',  function() { printPNGFix(1) });
  window.attachEvent('onafterprint',  function() { printPNGFix(0) });
 }
 */

 //]]>

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

/*
Tabs Menu (mouseover)- By Dynamic Drive
For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
This credit MUST stay intact for use
*/

var submenu=new Array()

//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.
 
submenu[0]='<span class="navitext"><a href="http://www.ggmn.de/news/">News</a> | <a href="http://www.ggmn.de/archiv">Archiv</a> | <a href="http://www.ggmn.de/index.php?page=kalender"><span style="text-decoration: line-through">Kalender</span></a> | <a href="http://www.ggmn.de/index.php?page=termin"><span style="text-decoration: line-through">Termine</span></a> | <a href="http://www.ggmn.de/index.php?page=partner"><span style="text-decoration: line-through">Partner</span></a> | <a href="http://www.ggmn.de/index.php?page=interesantes"><span style="text-decoration: line-through">Interessantes</span></a> | <a href="http://www.ggmn.de/index.php?page=history"><span style="text-decoration: line-through">History</span></a></span>'

submenu[1]='<span class="navitext"><a href="http://www.ggmn.de/index.php?page=games">Squads/Games</a> | <a href="http://www.ggmn.de/server">Server</a> | <a href="http://www.ggmn.de/index.php?page=matches"><span style="text-decoration: line-through">Matches</span></a> | <a href="http://www.ggmn.de/index.php?page=history"><span style="text-decoration: line-through">History</span></a> | <a href="http://www.ggmn.de/index.php?page=aboutus"><span style="text-decoration: line-through">About&nbsp;Us</span></a> | <a href="http://www.ggmn.de/index.php?page=joinus"><span style="text-decoration: line-through">Join&nbsp;Us</span></a> | <a href="http://www.ggmn.de/index.php?page=awards"><span style="text-decoration: line-through">Awards</span></a> | <a href="http://www.ggmn.de/linkus">Link&nbsp;Us</a></span>'

submenu[2]='<span class="navitext"><a href="http://www.ggmn.de/forum">Forum</a> | <a href="http://www.ggmn.de/index.php?page=guestbook"><span style="text-decoration: line-through">G&auml;stebuch</span></a> | <a href="http://www.ggmn.de/kontakt">Kontakt</a> | <a href="http://www.ggmn.de/index.php?page=offtopic"><span style="text-decoration: line-through">Off Topic</span></a> | <a href="http://www.ggmn.de/index.php?page=bilder"><span style="text-decoration: line-through">Bilder</span></a> | <a href="http://www.ggmn.de/index.php?page=tutorials"><span style="text-decoration: line-through">Tutorials</span></a> | <a href="http://www.ggmn.de/index.php?page=interessantes"><span style="text-decoration: line-through">Interessantes</span></a> | <a href="http://www.ggmn.de/index.php?page=informatives"><span style="text-decoration: line-through">Informatives</span></a> | <a href="http://www.ggmn.de/index.php?page=links"><span style="text-decoration: line-through">Links</span></a></span>'

submenu[3]='<span class="navitext"><a href="http://www.ggmn.de/index.php?page=showroom"><span style="text-decoration: line-through">Showroom</span></a> | <a href="http://www.ggmn.de/index.php?page=referenzen">Referenzen</a> | <a href="http://www.ggmn.de/index.php?page=scripting"><span style="text-decoration: line-through">Scripting</span></a> | <a href="http://www.ggmn.de/index.php?page=webdesign"><span style="text-decoration: line-through">Web Design</span></a> | <a href="http://www.ggmn.de/index.php?page=shop"><span style="text-decoration: line-through">Shop</span></a> | <a href="http://www.ggmn.de/index.php?page=service"><span style="text-decoration: line-through">Kontakt &amp; Service</span></a> | <a href="http://www.ggmn.de/index.php?page=fragen"><span style="text-decoration: line-through">H&auml;ufige&nbsp;Fragen</span></a></span>'

//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=500

/////No need to edit beyond here

var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""

function showit(which){
clear_delayhide()
thecontent=(which==-1)? "" : submenu[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
}
}

function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("showit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",delay_hide)
}

function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
function writepm(a)
{
Fensteroptionen="toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=0";
Grafikfenster=window.open("http://www.ggmn.de/send_pm_" + a + ".html", "", Fensteroptionen + ",width=790,height=490");
Grafikfenster.focus();
}
function textCounter(field, countfield, maxlimit) {
/*
* Die Input-Parameter sind: der Feld-Name;
* das Feld mit der Zahl der verbleibenden Stellen;
* die max. Stellenanzahl.
*/
if (field.value.length > maxlimit) // wenn die eingegebene Länge größer als erlaubt ist
field.value =field.value.substring(0, maxlimit); // es wird keine weitere Eingabe mehr zugelassen
else
countfield.value = maxlimit - field.value.length;} // die verbleibende Anzahl von Zeichen wird angezeigt
function notice(id)
{
Fensteroptionen="toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=0";
Grafikfenster=window.open("http://www.ggmn.de/notice.php?id=" +  id, "", Fensteroptionen + ",width=790,height=800");
Grafikfenster.focus();
}
function posttut()
{
Fensteroptionen="toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=0";
Grafikfenster=window.open("http://www.ggmn.de/posttut.php", "", Fensteroptionen + ",width=575,height=490");
Grafikfenster.focus();
}
function editnews(id)
{
Fensteroptionen="toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=0";
Grafikfenster=window.open("http://www.ggmn.de/editnews.php?id=" + id, "", Fensteroptionen + ",width=790,height=520");
Grafikfenster.focus();
}
function post_gruss()
{
Fensteroptionen="toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=0";
Grafikfenster=window.open("http://www.ggmn.de/post_gruss.php", "", Fensteroptionen + ",width=575,height=260");
Grafikfenster.focus();
}
function bild_view(bild_src, width_ori, height_ori)
{
width_ori += 25;
height_ori += 25;
Fensteroptionen="toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=0";
Grafikfenster=window.open("http://www.ggmn.de/" + bild_src, "", Fensteroptionen + ",width=" + width_ori + ",height=" + height_ori + "");
Grafikfenster.focus();
}
// speichert den text im message feld
function WriteIntoText(i) {
	var current = document.form.text.value;
	var newtext = current + i;
	document.form.text.value = newtext;
	document.form.text.focus();
}
function ImageEinfuegen() {
	inserttext = prompt("Geben Sie hier die URL des Bildes ein:" + "\n[IMG]xxx[/IMG]", "http://");
	if ((inserttext != "http://") && (inserttext != "") && (inserttext != null)) addtext = "[IMG]" + inserttext + "[/IMG]";
	else addtext="";
	
	WriteIntoText(addtext);
}
function ImageUrlEinfuegen() {
	linktext = prompt("Geben Sie hier den Link ein:" + "\n[URL=xxx][IMG][/IMG][/URL]", "http://");
	bildlink = prompt("Geben Sie hier die URL des Bildes ein:" + "\n[IMG]xxx[/IMG]", "http://");
	if ((linktext != "http://") && (linktext != "") && (linktext != null) && (bildlink != "http://") && (bildlink != "") && (bildlink != null)) { addtext = "[URL=" + linktext + "][IMG]" + bildlink + "[/IMG][/URL]"; }
	else addtext="";
	
	WriteIntoText(addtext);
}
function CENTEREinfuegen() {
	inserttext = prompt("Geben Sie hier den Text ein:" + "\n[CENTER]xxx[/CENTER]");
	if ((inserttext != "http://") && (inserttext != "") && (inserttext != null)) addtext = "[CENTER]" + inserttext + "[/CENTER]";
	else addtext="";
	
	WriteIntoText(addtext);
}
function ImgCenterEinfuegen() {
	inserttext = prompt("Geben Sie hier die URL ein:" + "\n[CENTER][IMG]xxx[/IMG][/CENTER]", "http://");
	if ((inserttext != "http://") && (inserttext != "") && (inserttext != null)) addtext = "[CENTER][IMG]" + inserttext + "[/IMG][/CENTER]";
	else addtext="";
	
	WriteIntoText(addtext);
}
function FettEinfuegen() {
	inserttext = prompt("Geben Sie hier den Text ein:" + "\n[B]xxx[/B]");
	if ((inserttext != "http://") && (inserttext != "") && (inserttext != null)) addtext = "[B]" + inserttext + "[/B]";
	else addtext="";
	
	WriteIntoText(addtext);
}
function UEinfuegen() {
	inserttext = prompt("Geben Sie hier den Text ein:" + "\n[U]xxx[/U]");
	if ((inserttext != "http://") && (inserttext != "") && (inserttext != null)) addtext = "[U]" + inserttext + "[/U]";
	else addtext="";
	
	WriteIntoText(addtext);
}
function MailEinfuegen() {
	inserttext = prompt("Geben Sie hier den Text ein:" + "\n[mail]xxx[/mail]");
	if ((inserttext != "http://") && (inserttext != "") && (inserttext != null)) addtext = "[mail]" + inserttext + "[/mail]";
	else addtext="";
	
	WriteIntoText(addtext);
}
function IEinfuegen() {
	inserttext = prompt("Geben Sie hier den Text ein:" + "\n[I]xxx[/I]");
	if ((inserttext != "http://") && (inserttext != "") && (inserttext != null)) addtext = "[I]" + inserttext + "[/I]";
	else addtext="";
	
	WriteIntoText(addtext);
}
function position()
{
	var absatz = document.getElementsByName("profil_einstellungen");
	for ( index in absatz )
	{
		absatz[index].onmouseover = function()
			{
				this.className="profil_einstellungen_1";
			}
		absatz[index].onmouseout = function()
			{
				this.className="profil_einstellungen_0";
			}
		absatz[index].onload = function()
			{
				this.className="profil_einstellungen_0";
			}
	}	
}
function blabla()
{	
	this.className="profil_einstellungen_0";	
}
function AbGehts() {
  document.login.submit();
}
function evaluateSubmit(e) {  
   var key = null;  
 
     if (e.which) {          
         key = e.which; //normale Browser  
    } else {  
         key = e.keyCode; //IE  
     }  
     if (key == 13) { //ENTER  
		return AbGehts();
     } 
 } 