// JavaScript Document

		
		
	jQuery(function(){

				// Accordion
				jQuery(".accordion").accordion({ header: "h3" });
	
				// Tabs
				jQuery('#tabs').tabs();
	





				// Dialog			
				jQuery('#dialog').dialog({
					autoOpen: false,
					width: 600,
					buttons: {
						"Ok": function() { 
							jQuery(this).dialog("close"); 
						}, 
						"Cancel": function() { 
							jQuery(this).dialog("close"); 
						} 
					}
				});
				
				// Dialog Link
				jQuery('#dialog_link').click(function(){
					jQuery('#dialog').dialog('open');
					return false;
				});

				// Datepicker
				jQuery('#datepicker').datepicker({
					inline: true
				});
				
				// Slider
				jQuery('#slider').slider({
					range: true,
					values: [17, 67]
				});
				
				// Progressbar
				jQuery("#progressbar").progressbar({
					value: 20 
				});
				
				//hover states on the static widgets
				jQuery('#dialog_link, ul#icons li').hover(
					function() { jQuery(this).addClass('ui-state-hover'); }, 
					function() { jQuery(this).removeClass('ui-state-hover'); }
				);
				
			});
	
	
	
	$(document).ready(function() {

		$("a[rel=highslide]").fancybox({'titlePosition' 	: 'over', 		'transitionIn'	: 'elastic',

				'transitionOut'	: 'elastic', 'hideOnContentClick':true, 
				'showNavArrows':true,
				overlayShow:false,
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {

					return '<span id="fancybox-title-over">Bild: ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? '  ' + title :'') + '</span>';

				}});

			$(".iframe").fancybox({

				'width'				: '75%',

				'height'			: '75%',

				'autoScale'			: false,
overlayShow:false,
				'transitionIn'	: 'elastic',
'titlePosition'	: 'outside',
'titleShow'		: true,
				'transitionOut'	: 'elastic',

				'type'				: 'iframe'

			});



	
$("a[rel=lightbox]").fancybox({

				'width'				: '80%',

				'height'			: '55%',

				'autoScale'			: false,
				
				
				
				
				
				
overlayShow:false,
				'transitionIn'	: 'elastic',
'titlePosition'	: 'inside',
'titleShow'		: true,
				'transitionOut'	: 'elastic',

				'type'				: 'iframe'

			});




$("a[rel=showpopup]").fancybox({

				'width'				: '80%',

				'height'			: '55%',

				'autoScale'			: false,
				
				
				
				
				
				
overlayShow:false,
				'transitionIn'	: 'elastic',
'titlePosition'	: 'inside',
'titleShow'		: true,
				'transitionOut'	: 'elastic',

				'type'				: 'iframe'

			});

		});
	
	$(function() {
		$("button, input:submit", "#main").button();
		
		// $("a", ".demo").click(function() { return false; });
	});
	
	$(function() {
		$(".forminfo").dialog();
	});
	
	
	window.onload = function() {
			$(".bannerpic").dropShadow({left: 4, color:"#999999",opacity:0.8,top: -2, blur: 2}); 
			
			
			 }

