// JavaScript Document

/* Open Image Plugin 
*	Sebastian Otto © Copyright wemakeweb 2009
* Usage:
* <img src='path to normal picture' rel='path to bigger picture' />
 width:450px; height:300px;
*/
(function($) {   
   $.fn.imageshow = function() {
      return this.each(function() {
			if($(this).attr('rel') != 'undefined'){
         		var $this = $(this);
					$this.hover(function(e) {
            				var id = $this.attr('id');
							var secondImage = $this.attr('rel');
							var createImgDiv = $('<div id="imageshow" "style="position:absolute; z-index:10; top:' + (e.pageY) + 'px; left:' + (e.pageX) + 'px; margin-left:200px; border:6px solid rgba(255,255,255,0.8); box-shadow:2px 2px 5px gray; -moz-box-shadow:2px 2px 5px gray;"><img src="' + secondImage + ' /></div>');
							$('body').append(createImgDiv); }
         ,function() {
            $('#imageshow').remove(); }	
		);
}})}})(jQuery); 






// Quick Book in Fancybox

	
							
 function send(url){	  
					    
	  $('#box').html('<a class="iframe" id="fancy" href="' + url + '">This goes to iframe</a> ');

	  // Sending data for stats
	
	  
	  try{
		  
		pageTracker._trackPageview('dirs21.de');  
	  }
	  catch(err){}
	  
	  $.ajax({
   		type: "GET",
   		url: 'http://www.filderhotel.de/php/stats.php?site=' +  window.location.pathname+'&test=title',
  		});
	  
	  
	  $('a#fancy').fancybox({
							'frameWidth' : 700,							
							'frameHeight': 700,
							'overlayOpacity' : 0.8,
							
							});
	  $("#fancy").trigger('click');
 }