// urbanstudio Oliver Feiler

function showvideo(clipid) {
  window.open('clip.php?clip=' + clipid + '','clip','width=320,height=400');
}

function US_chgImgRestore() {
  var i,x,a=document.US_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function US_preloadImages() {
  var d=document; if(d.images){ if(!d.US_p) d.US_p=new Array();
    var i,j=d.US_p.length,a=US_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.US_p[j]=new Image; d.US_p[j++].src=a[i];}}
}

function US_findObj(n, d) {
  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=US_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

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

function US_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.US_pgW=innerWidth; document.US_pgH=innerHeight; onresize=US_reloadPage; }}
  else if (innerWidth!=document.US_pgW || innerHeight!=document.US_pgH) location.reload();
}

function US_addBookmark() {
  window.external.AddFavorite(document.location.href, 'Grüne Jugend Hessen.');
}

function US_printsite(URL) {
  window.open(URL,'us_pop','width=650,height=500,scrollbars=yes');
}

function US_popImage(image, w, h) {
  window.open('popup.php?IMG='+image,'us_popImage','width=' + w + ',height=' + h + ',scrollbars=no');
}

				function US_showLayer(x) {
					document.getElementById(x).style.display="inline";
				}
				function US_hideLayer(x) {
					document.getElementById(x).style.display="none";
				}

function US_disableRightClickIE(e)
{
  var message = "";

  if(!document.US_disableRightClickIE) // initialize
  {
    if(document.layers)
    {
      document.captureEvents(Event.MOUSEDOWN);
      document.onmousedown = US_disableRightClickIE;
    }
    else document.oncontextmenu = US_disableRightClickIE;
    return document.US_disableRightClickIE = true;
  }
  if(document.layers || (document.getElementById && !document.all))
  {
    if (e.which==2||e.which==3)
    {
      void(0);
	  //alert(message);
      return false;
    }
  }
  else
  {
    void(0);
	//alert(message);
    return false;
  }
}
US_disableRightClickIE();
US_reloadPage(true);
US_preloadImages('../layout/f/urbanstudio,1.gif','../layout/h/src,but,1.gif','../layout/r/mitglied,1.gif','../layout/r/gruenehessen,1.gif','../layout/r/bundesgruene,1.gif','../layout/r/gruenejugend,1.gif');

standardtatus = "Grüne Jugend Hessen.";
window.defaultStatus = standardtatus;