function change_pic(bild,text,id,link,alle){
         for (i=1;i<=alle;i++)
         {
                 document.getElementById(id+'_'+i).style.color = "#a7a0a6";
         }
         document.getElementById('big_pic_'+id).src = bild;
         document.getElementById('big_pic_'+id).alt = text;
         document.getElementById(id+'_'+link).style.color = "#000000";
}

function BilderVorladen()
{
    document.Vorladen = new Array();

    if(document.images)
    {
        for(var i = 0; i < BilderVorladen.arguments.length; i++)
        {
            document.Vorladen[i] = new Image();
            document.Vorladen[i].src = BilderVorladen.arguments[i];
        }
    }
}

function check_high () {
         var height = window.innerHeight || (window.document.documentElement.clientHeight || window.document.body.clientHeight);
         height -= 289;
         margin = height - 250;

         var width = window.innerWidth || (window.document.documentElement.clientWidth || window.document.body.clientWidth);
         width -= 350;

         document.getElementById('menu').style.height = height+"px";
         document.getElementById('language').style.marginTop = margin+"px";
         document.getElementById('main_content').style.width = width+"px";
}
function check_high1 () {
         var height = window.innerHeight || (window.document.documentElement.clientHeight || window.document.body.clientHeight);
         height -= 289;
         margin = height - 250;

         var width = window.innerWidth || (window.document.documentElement.clientWidth || window.document.body.clientWidth);
         width -= 350;

         document.getElementById('menu').style.height = height+"px";
         document.getElementById('language').style.marginTop = margin+"px";
         document.getElementById('main_content1').style.width = width+"px";
}

function check_detail(){
         //alert("Drinnen");
         var hoehe = document.getElementById('project_detail').offsetHeight;
         //hoehe = hoehe + 1;
         //alert(hoehe);
         var objekte = getElementsByClassName("pic_con_more");
         for (i = 1; i <= objekte.length; i++) {
                 document.getElementById('pic_con_more_'+i).style.height = hoehe+"px";
         }
         var up = objekte.length;
         document.getElementById('pic_con_more_'+up).style.height = hoehe+"px";
}

function getElementsByClassName(class_name)
{
  var all_obj,ret_obj=new Array(),j=0,teststr;
  if(document.all)all_obj=document.all;
  else if(document.getElementsByTagName && !document.all)all_obj=document.getElementsByTagName("*");
  for(i=0;i<all_obj.length;i++)
  {
    if(all_obj[i].className.indexOf(class_name)!=-1)
    {
      teststr=","+all_obj[i].className.split(" ").join(",")+",";
      if(teststr.indexOf(","+class_name+",")!=-1)
      {
        ret_obj[j]=all_obj[i];
        j++;
      }
    }
  }
  return ret_obj;
}