
function openFancyBox() {
	var args = openFancyBox.arguments;
	var oNode = null;
	if (args[0] == "boxFormContact") {
		if ((oNode = document.getElementById('_iframe')) != null) {
			oNode.src = "kontaktformular.html";
		}
	} else {
		$.fancybox("#"+args[0]);
	}
}
function initFancyBox() {
	var args = initFancyBox.arguments;
	$(document).ready(function() {
		$("a#"+args[0]).fancybox({
			'zoomOpacity'			: true,
			'overlayShow'			: true,
			'zoomSpeedIn'			: args[1],
			'zoomSpeedOut'			: args[1],
			'hideOnContentClick'	: true
//					'easingIn'				: 'easeOutBack',
//					'easingOut'				: 'easeInBack'				
		});
	});
}

$(document).ready(function() {
	$("a.iFrameFancy").fancybox({
		type				: 'iframe',
		frameWidth			: 450,
		frameHeight			: 350,
		hideOnContentClick	: false
		/*,
		autoDimensions		: false,
		autoScale           : false
		*/
	});
});
function openiFilmBox()  {
	var args = openiFilmBox.arguments;
	var iFrameURL = args[0];
	var iFrameWidth = args[1];
	var iFrameHeight = args[2];

	var oNode = null;
//	var link_iframe = "http://maps.google.de/maps?f=q&amp;source=s_q&amp;hl=de&amp;geocode=&amp;q=Gasfabrikstra%C3%9Fe+16,+92224+Amberg&amp;sll=51.151786,10.415039&amp;sspn=24.347258,27.641602&amp;ie=UTF8&amp;hq=&amp;hnear=Gasfabrikstra%C3%9Fe+16,+92224+Amberg,+Bayern&amp;ll=49.446979,11.860943&amp;spn=0.019531,0.036478&amp;z=14&amp;iwloc=A&amp;output=embed";	
	
	var link_iframe = "userfiles/ugom_/Media/video/ifilm1.html";	
		//
	if (iFrameURL == null) {
		iFrameURL = "userfiles/ugom_/Media/video/ifilm1.html";
	}	
	if (iFrameWidth == null) {
		iFrameWidth = 450;
	}
	if (iFrameHeight == null) {
		iFrameHeight = 350;
	}	
	openiFrameFancyBox(iFrameURL,iFrameWidth, iFrameHeight);
}
function openGoogleMapBox()  {
	var args = openGoogleMapBox.arguments;
	var oNode = null;
	var link_iframe = "http://maps.google.de/maps?f=q&amp;source=s_q&amp;hl=de&amp;geocode=&amp;q=Gasfabrikstra%C3%9Fe+16,+92224+Amberg&amp;sll=51.151786,10.415039&amp;sspn=24.347258,27.641602&amp;ie=UTF8&amp;hq=&amp;hnear=Gasfabrikstra%C3%9Fe+16,+92224+Amberg,+Bayern&amp;ll=49.446979,11.860943&amp;spn=0.019531,0.036478&amp;z=14&amp;iwloc=A&amp;output=embed";	
//	var link_iframe = "http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=de&amp;geocode=&amp;q=Liebengrabenweg+72,+92224+Amberg,+Deutschland&amp;sll=47.002282,5.672931&amp;sspn=26.335461,36.386719&amp;ie=UTF8&amp;hq=&amp;hnear=Liebengrabenweg+72,+92224+Amberg,+Bayern,+Deutschland&amp;ll=49.439557,11.861973&amp;spn=0.055811,0.120163&amp;z=13&amp;output=embed";	
	openiFrameFancyBox(link_iframe);
/*	
	$.fancybox( {
		'href'	: link_iframe
	}, {
		frameWidth			: 800,
		frameHeight			: 600,
		type				: 'iframe'	
	});	
*/	
}
function openiFrameFancyBox() {
	var args = openiFrameFancyBox.arguments;
	var iFrameURL = args[0];
	var iFrameWidth = args[1];
	var iFrameHeight = args[2];
		//
	if (iFrameURL != ''){
		if (iFrameWidth == null) {
			iFrameWidth = 800;
		}
		if (iFrameHeight == null) {
			iFrameHeight = 600;
		}
		$.fancybox( {
			'href'	: iFrameURL
		}, {
			frameWidth			: iFrameWidth,
			frameHeight			: iFrameHeight,
			'overlayShow'		: true,
			type				: 'iframe'	
		});	
	}
}

function news2FancyBox() {
	var args =news2FancyBox.arguments;
	openFancyBox(args[0]);
}
