
function showRedrock() {
	document.getElementById('contentRedrock').style.display='';
}
function unloadRedrock() {
	document.getElementById('contentRedrock').style.display='none';
}
function showFirestore() {
	document.getElementById('contentFirestore').style.display='';
}
function unloadFirestore() {
	document.getElementById('contentFirestore').style.display='none';
}
function showMarshall() {
	document.getElementById('contentMarshall').style.display='';
}
function unloadMarshall() {
	document.getElementById('contentMarshall').style.display='none';
}
function showPostproduction() {
	document.getElementById('contentPostproduction').style.display='';
}
function unloadPostproduction() {
	document.getElementById('contentPostproduction').style.display='none';
}
function showPanasonic() {
	document.getElementById('contentPanasonic').style.display='';
}
function unloadPanasonic() {
	document.getElementById('contentPanasonic').style.display='none';
}
function showRolls() {
	document.getElementById('contentRolls').style.display='';
}
function unloadRolls() {
	document.getElementById('contentRolls').style.display='none';
}
function showSennheiser() {
	document.getElementById('contentSennheiser').style.display='';
}
function unloadSennheiser() {
	document.getElementById('contentSennheiser').style.display='none';
}
function showMarshall_2() {
	document.getElementById('contentMarshall_2').style.display='';
}
function unloadMarshall_2() {
	document.getElementById('contentMarshall_2').style.display='none';
}
function showMarshall_3() {
	document.getElementById('contentMarshall_3').style.display='';
}
function unloadMarshall_3() {
	document.getElementById('contentMarshall_3').style.display='none';
}
function showFrame() {
	document.getElementById('contactFrame').style.display='';
}

new Ajax.Updater('ajaxcontent', 'content/index.html', { method: 'get' });
loadHome = function () {
	new Ajax.Updater('ajaxcontent', 'content/index.html', {
				   method: 'get',
				   onCreate: function() {
    			var notice = $('loadoverlay');
      				notice.update('<img src="images/ajax-loader.gif" style="padding-left: 290px; padding-top: 160px;" />').setStyle({ display: '', background: '#FFF' });
				},
				onSuccess: function() {
    			var notice = $('loadoverlay');
      				notice.update('<img src="images/ajax-loader.gif" style="padding-left: 290px; padding-top: 160px;" />').setStyle({ display: 'none' });
				}});
}
loadAbout = function () {
	new Ajax.Updater('ajaxcontent', 'content/about.html', { 
				   method: 'get', onComplete: function() { initLightbox(); },
				   onCreate: function() {
    			var notice = $('loadoverlay');
      				notice.update('<img src="images/ajax-loader.gif" style="padding-left: 290px; padding-top: 160px;" />').setStyle({ display: '', background: '#FFF' });
				},
				onSuccess: function() {
    			var notice = $('loadoverlay');
      				notice.update('<img src="images/ajax-loader.gif" style="padding-left: 290px; padding-top: 160px;" />').setStyle({ display: 'none' });
				}});
}
loadContact = function () {
	new Ajax.Updater('contact', 'content/kontaktform.php', { method: 'get' });
}
loadTechnik = function () {
 new Ajax.Updater('ajaxcontent', 'content/technik.html', { 
				   method: 'get', onComplete: function() { initLightbox(); },
				   onCreate: function() {
    			var notice = $('loadoverlay');
      				notice.update('<img src="images/ajax-loader.gif" style="padding-left: 290px; padding-top: 160px;" />').setStyle({ display: '', background: '#FFF' });
				},
				onSuccess: function() {
    			var notice = $('loadoverlay');
      				notice.update('<img src="images/ajax-loader.gif" style="padding-left: 290px; padding-top: 160px;" />').setStyle({ display: 'none' });
				}
});


}


loadReferenzen = function () {
	new Ajax.Updater('ajaxcontent', 'content/referenzen.html', {
				   method: 'get', onComplete: function() { initLightbox(); },
				   onCreate: function() {
    			var notice = $('loadoverlay');
      				notice.update('<img src="images/ajax-loader.gif" style="padding-left: 290px; padding-top: 160px;" />').setStyle({ display: '', background: '#FFF' });
				},
				onSuccess: function() {
    			var notice = $('loadoverlay');
      				notice.update('<img src="images/ajax-loader.gif" style="padding-left: 290px; padding-top: 160px;" />').setStyle({ display: 'none' });
				}});
}
loadDemoreels = function () {
	new Ajax.Updater('ajaxcontent', 'content/demoreels.html', { 
					 method: 'get', onComplete: function() { initLightbox(); },
				   onCreate: function() {
					  
    			var notice = $('loadoverlay');
      				notice.update('<img src="images/ajax-loader.gif" style="padding-left: 290px; padding-top: 160px;" />').setStyle({ display: '', background: '#FFF' });
				},
				onSuccess: function() {
    			var notice = $('loadoverlay');
					notice.update('<img src="images/ajax-loader.gif" style="padding-left: 290px; padding-top: 160px;" />').
						setStyle({ display: 'none' });
				}});
}
formularSenden = function () {
	new Ajax.Updater('contact', 'content/kontaktform.php?submit=1&name='+document.kontakt.name.value+'&email='+document.kontakt.email.value+'&betreff='+document.kontakt.betreff.value+'&nachricht='+document.kontakt.nachricht.value, { method: 'get' });
}
	
loadKontakt = function () {
	new Ajax.Updater('ajaxcontent', 'content/kontakt.php', {
				   method: 'get', onComplete: function() { initLightbox(); },
				   onCreate: function() {
    			var notice = $('loadoverlay');
      				notice.update('<img src="images/ajax-loader.gif" style="padding-left: 290px; padding-top: 160px;" />').setStyle({ display: '', background: '#FFF' });
				},
				onSuccess: function() {
    			var notice = $('loadoverlay');
      				notice.update('<img src="images/ajax-loader.gif" style="padding-left: 290px; padding-top: 160px;" />').setStyle({ display: 'none' });
				}});
}
var win=null;

onerror = stopError;
function stopError(){
	return true;
}


function B1245247308(){
	myleft=20;
	mytop=20;
	settings="width=540,height=300,top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no,dependent=no";
	win=window.open("player/demolang.html","Demoreel",settings);
	win.focus();

}
function popup2(){
	myleft=20;
	mytop=20;
	settings="width=540,height=300,top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no,dependent=no";
	win=window.open("player/demokurz.html","Demoreel",settings);
	win.focus();

}
function bombenjob(){
	myleft=20;
	mytop=20;
	settings="width=540,height=300,top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no,dependent=no";
	win=window.open("player/bombenjob.html","Demoreel",settings);
	win.focus();

}
function loaderimage(divID) {
	var dimensions = $(divID).getDimensions();
	var loaderimg = '<div align="center" id="loaderimg" style="height:'+ dimensions.height +'px; width:'+ dimensions.width +'px; background: white; filter:alpha(opacity=66);-moz-opacity:.66;opacity:.66;"> <img src="images/ajax-loader.gif"></div>';
	Element.insert(divID, {top: loaderimg});
	Element.absolutize('loaderimg');
}