<!--
  function myAlert(my_text) {
   alert("" + my_text + "");
   return false;
   }
   
 function showAccessDetails(id) {
  //Layer öffnen
  if(document.getElementById('access_details_' + id).style.visibility == "visible") {
   document.getElementById('access_details_' + id).style.visibility = "hidden";
   document.getElementById('access_details_' + id).style.display = "none";
   } else {
   document.getElementById('access_details_' + id).style.visibility = "visible";
   document.getElementById('access_details_' + id).style.display = "block";
   }
  }

 function showPostForm() {
  //Layer öffnen
  document.getElementById('postForm').style.visibility = "visible";
  document.getElementById('postForm').style.display = "block";
  document.getElementById('postFormButton').style.visibility = "hidden";
  document.getElementById('postFormButton').style.display = "none";
  window.scrollBy(0,100000); 
  }

 function DivShow(e, new_src) {
  if(!e) e = window.event;
 	var myBrowser = {
   IE:     !!(window.attachEvent && !window.opera),
   Opera:  !!window.opera,
   WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1,
   Gecko:  navigator.userAgent.indexOf('Gecko') > -1 && navigator.userAgent.indexOf('KHTML') == -1,
   MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/)
   };
   
  if(myBrowser.IE) {
   document.all.picture_overlay_div.style.left = (e.clientX + document.body.scrollLeft + 20);
  	document.all.picture_overlay_div.style.top = (e.clientY + document.body.scrollTop + 20);
 	 document.all.picture_overlay_div.style.visibility = "visible";
 	 document.all.picture_overlay_image.src = new_src;
 	 } else {
 	  
 	 document.getElementById("picture_overlay_div").style.visibility = "visible";
  	document.getElementById("picture_overlay_image").src = new_src;
 	 document.getElementById("picture_overlay_div").style.left = e.pageX + 20;
   document.getElementById("picture_overlay_div").style.top = e.pageY + 20;
	  }
	 }

 function DivHide() {
  var myBrowser = {
   IE:     !!(window.attachEvent && !window.opera),
   Opera:  !!window.opera,
   WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1,
   Gecko:  navigator.userAgent.indexOf('Gecko') > -1 && navigator.userAgent.indexOf('KHTML') == -1,
   MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/)
   };
  
  if(myBrowser.IE) {
 	 document.all.picture_overlay_div.style.visibility = "hidden";
 	 } else {
 	 document.getElementById("picture_overlay_div").style.visibility = "hidden";
 	 }
 	}
 	
 function displayLayer(id) {
  //Layer öffnen
  if(document.getElementById('support_' + id).style.visibility == "visible") {
   document.getElementById('support_' + id).style.visibility = "hidden";
   document.getElementById('support_' + id).style.display = "none";
   } else {
   document.getElementById('support_' + id).style.visibility = "visible";
   document.getElementById('support_' + id).style.display = "block";
   }
  }
 
 function FensterOeffnen (Adresse) {
  Fenster1 = window.open(Adresse, "main", "left=0,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,top=0,width=1024 height=700");
  Fenster1.focus();
  }
  
 function shopmunity_bag_add(product_id) {
  
  if(document.getElementById("shopmunity_pieces_in_bag")) {
   if(document.getElementById("shopmunity_pieces_in_bag").value == 0) {
    document.getElementById("shopmunity_bag_picture").src = 'gfx/bag.png';
    }
   document.getElementById("shopmunity_pieces_in_bag").value = parseInt(document.getElementById("shopmunity_pieces_in_bag").value) + 1;
   } else {
   if(document.getElementById("union_pieces_in_bag_" + product_id).value == 0) {
    document.getElementById("bag_picture_" + product_id).src = 'gfx/bag.png';
    }
   document.getElementById("union_pieces_in_bag_" + product_id).value = parseInt(document.getElementById("union_pieces_in_bag_" + product_id).value) + 1;
   }
  
  var ajax = new Ajax.Request('index.php', 
                              {method: 'get',
                               parameters: {action: 'shopmunity_products',
                                            function_2: 'shopmunity_bag_add',
                                            product_id_new: '' + product_id + ''}});
  }
  
 function displayBanner(id) {
  //Layer öffnen
  document.getElementById(id).style.visibility = "visible";
  document.getElementById(id).style.display = "block";
  }


//-->
