
function signup_for_newsletter() {
	if (!checkEmail(document.getElementById("newsletter_email").value, true)) {
		alert("Please enter a valid email address\nto sign up for our newsletter!");
	} else{
		url = '/newsletter_signup.php?hoehe=475&breite=720&email='+document.getElementById("newsletter_email").value;
		jQuery(document).ready(function() {
			$.fancybox(
				'',
				{
					'width'			: 620,
					'height'		: 375,
					'padding'		: 0,
					'scrolling'		: 'no',
					'transitionIn'	: 'elastic',
					'speedIn'		: 200,
					'transitionOut'	: 'elastic',
					'speedOut'		: 200,
					'type'			: 'iframe',
					'href'			: url
				}
			);
		});

		document.getElementById("newsletter_email").value = '...enter your email';
	}
}


function pano(url) {
	if( typeof( window.innerHeight ) == 'number' ) {
		//Non-IE
		breite = window.innerWidth;
		hoehe = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		breite = document.documentElement.clientWidth;
		hoehe = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		breite = document.body.clientWidth;
		hoehe = document.body.clientHeight;
	}
	breite = breite - 150;
	hoehe = hoehe - 100;
	jQuery(document).ready(function() {
		$.fancybox(
			'',
			{
				'width'			: breite,
				'height'		: hoehe,
				'padding'		: 10,
				'scrolling'		: 'no',
				'transitionIn'	: 'elastic',
				'speedIn'		: 200,
				'transitionOut'	: 'elastic',
				'speedOut'		: 200,
				'type'			: 'iframe',
				'href'			: url
			}
		);
	});
}


function pano_test() {
	jQuery(document).ready(function() {
		$.fancybox(
			'',
			{
				'width'			: 500,
				'height'		: 300,
				'padding'		: 0,
				'scrolling'		: 'no',
				'transitionIn'	: 'elastic',
				'speedIn'		: 200,
				'transitionOut'	: 'elastic',
				'speedOut'		: 200,
				'type'			: 'iframe',
				'href'			: 'http://www.panomnio.com/clients/underseahunter_fleet/#/se_saloon'
			}
		);
	});
}


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


function tr_on(id) {
	if (document.getElementById(id+"_obli")) {document.getElementById(id+"_obli").className='ecke_8_obli_on';}
	if (document.getElementById(id+"_obre")) {document.getElementById(id+"_obre").className='ecke_8_obre_on';}
	if (document.getElementById(id)) document.getElementById(id).className='on';
	if (document.getElementById(id+"_unli")) {document.getElementById(id+"_unli").className='ecke_8_unli_on';}
	if (document.getElementById(id+"_unre")) {document.getElementById(id+"_unre").className='ecke_8_unre_on';}
}

function tr_off(id) {
	if (document.getElementById(id+"_obli")) {document.getElementById(id+"_obli").className='ecke_8_obli';}
	if (document.getElementById(id+"_obre")) {document.getElementById(id+"_obre").className='ecke_8_obre';}
	if (document.getElementById(id)) document.getElementById(id).className='off';
	if (document.getElementById(id+"_unli")) {document.getElementById(id+"_unli").className='ecke_8_unli';}
	if (document.getElementById(id+"_unre")) {document.getElementById(id+"_unre").className='ecke_8_unre';}
}

