klasse= {
 loadit: function(myUrl) {
 // var myParms='zahl='+document.getElementById('zahl').value;
  var myParms='';
  tb.request.add( klasse.loadit_cb, 'GET', myUrl, myParms, true);
  },

 loadit_cb: function( pXml, pText ) {
 var text_split = pText.split('#_IDEXPLODE_#');
 document.getElementById(text_split[0]).innerHTML = text_split[1];  
 document.getElementById(text_split[0]).style.display = "";
 
$(document).ready(function() {
			$("a.fancybox_link").fancybox({
				'titleShow'		: false
			});
      
});  
 
  }
 }        
        function ajax_load(url)
        {
          klasse.loadit(url);
        }

function show_hide_bg_projects ()
{
    if (document.getElementById('left').style.display == "none")
    {
        document.getElementById('left').style.display = "";
        document.getElementById('main').style.display = "";
        document.getElementById('link_show_background').innerHTML = "Show background image";
    }
    else
    {
        document.getElementById('left').style.display = "none";
        document.getElementById('main').style.display = "none";
        document.getElementById('link_show_background').innerHTML = "Show content";
    }
}

function show_hide_bg_text ()
{
    if (document.getElementById('text_container').style.display == "none")
    {
        document.getElementById('text_container').style.display = "";
        document.getElementById('link_show_background').innerHTML = "Show background image";
    }
    else
    {
        document.getElementById('text_container').style.display = "none";
        document.getElementById('link_show_background').innerHTML = "Show content";
    }
}

function openWindow (Adresse) {
  Fenster1 = window.open(Adresse, "Zweitfenster", "width=350,height=500,left=100,top=200,scrollbars=yes");
  Fenster1.focus();
}

function change_fontsize(id, n)
{
  if (n==1)
  {
    size=12;
  }
  if (n==2)
  {
    size=16;
  }
  if (n==3)
  {
    size=20;    
  }    
  document.getElementById(id).style.fontSize = size+'px';
}

function show_hide (id)
{
    if (document.getElementById(id).style.display == 'none')
    {
        document.getElementById(id).style.display = "";
    }
    else
    {
        document.getElementById(id).style.display = "none";
    }
}

function textfeld(id, text)
{
  if (document.getElementById(id).value==text)document.getElementById(id).value="";
}

