// GEN basis
// GEN basis

function ignoreenter(myfield,e)
		{
			var keycode;
			if (window.event) keycode = window.event.keyCode;
			else if (e) keycode = e.which;
			else return true;
			
			if (keycode == 13)
			   {
				 
				  
				   return false;
			   }
			else
				 return true;
		}
function $rgb(id)
{

	return document.getElementById(id);	
}
function returnNextDay(day, month, year){
	// If the day is 1, increment the 2
	if(day == daysInMonth(month, year)){
		++month;
		day = 0;
	}
	
	if(month == 13 && day == 0){
		year = year +1;
		month = 1;
	
		
	}
	
	/*instead of going from 12 to 13 it goes 12 to 1 when going from dec to jan*/
	return new Array((day+1), month, year);
}
function daysInMonth(month,year) {
var dd = new Date(year, month, 0);
return dd.getDate();
}
function adjustDay()
{
	var aankomst_day = $rgb('aankomst_day').options[$rgb('aankomst_day').selectedIndex].value;
	var aankomst_month =  $rgb('aankomst_month').options[$rgb('aankomst_month').selectedIndex].value;
	var aankomst_year =  $rgb('aankomst_year').options[$rgb('aankomst_year').selectedIndex].value;
	
	
	
	// dag= getDate
	// jaar getFullYear
	// getMonth (0-11)
	
	var vertrek_day = $rgb('vertrek_day');
	var vertrek__month = $rgb('vertrek__month');
	var vertrek__year = $rgb('vertrek__year');
	
	
	var newday = returnNextDay( parseInt(aankomst_day), parseInt(aankomst_month), parseInt(aankomst_year));
	
	
	vertrek_day.selectedIndex = (  newday[0]-1  );
	vertrek__month.selectedIndex = (  newday[1]-1 );
	activateSelect(vertrek__year,   newday[2]  );
	
	
}
function activateSelect(obj, val)
{
	
	for(var i=0; i < obj.options.length; i++)
	{
		if( obj.options[i].value == val)
		{
			obj.selectedIndex = i;
			return;
		}
	}

}
function hide(id)
{
		
	$rgb(id).style.display = 'none';
}
function show(id)
{
		
	$rgb(id).style.display = 'block';
}
function isHidden(id)
{
	if($rgb(id).style.display == 'none')
		return true;
	else
		return false;
}
function switchCurrency(currency)
{
	setCookie("currency", currency, 30, '/', '', '');	
	location.reload();
	
}
function V_switch(id)
{
	if(isHidden(id))
		show(id);
	else
		hide(id);
}
function switchPaymentMethod(id)
{
	for(var i=1; i<=3 ; i++)
	{
		if( $rgb('payment_method_'+i) != null)
		hide('payment_method_'+i);
	}
	if(id != -1)
	show('payment_method_'+id);
}
function bankPay()
{
	setCookie("basket", '', 30, '/', '', '');	
	
	$rgb('bankpayform').submit();
}
function molliePay()
{
	setCookie("basket", '', 30, '/', '', '');	
	
	$rgb('molliepayform').submit();
}
function paypalPay()
{
	setCookie("basket", '', 30, '/', '', '');	
	
	$rgb('paypalpayform').submit();
}
busy1 = false;



// GEN basis
// AJAX basis
	
var parsing_xml = false;
var lang = "";
function loadXMLFromText(xmlData)
{
	if (window.ActiveXObject) {
			//for IE
			xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
			xmlDoc.async="false";
			xmlDoc.loadXML(xmlData);
			return xmlDoc;
		} else if (document.implementation && document.implementation.createDocument) {
			//for Mozila
			parser=new DOMParser();
			xmlDoc=parser.parseFromString(xmlData,"text/xml");
			return xmlDoc;
		}

}
function moveto(url)
{
	window.location = url;	
}
function replacewww(text) { 
	var start = (text.indexOf("www"))-7; 
	var match = text.substr(start,7); 
	if(match != "http://" || match != "ttps://") 
	{ 
	text = text.replace("www", "http://www"); 
	} 
	
	 
	return text; 
}
function replaceURLWithHTMLLinks(text) { 
	var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig; 
	return text.replace(exp,"<a href='$1' >$1</a>"); 
}


function processXmlTwitter(response)
{
	parsing_xml =false; 
	xmlDoc=loadXMLFromText( response );
	var str = xmlDoc.getElementsByTagName("text")[0].childNodes[0].nodeValue; 
	 
	str = replacewww(str); 
	str = replaceURLWithHTMLLinks(str); 
	$rgb('twittertxt').innerHTML=  "<p>"+str+"</p>";
	show('twitter');
	
	
}
														
function processData(responseText, responseStatus)
	 { 
		
		//document.getElementById('loadingbar').style.display ='none';
		if (responseStatus==200) // succes
		{
			if(responseText == 'error')
							alert('Error updating data!'+responseText);
			else
			{
				if(parsing_xml)
					processXmlTwitter(responseText);
				else
				{
					
					eval(responseText);
				}
				
			}
		 }
		else if(responseStatus == 0)
		{
		
		}
		else 
		{ 
		   alert(responseStatus + ' -- Error Processing Request');
		}
	  }
function ajaxObject(url) {
		  var that=this;      
		   this.updating = false;
			  this.abort = function() {
					that.AJAX.onreadystatechange = function () {}
				  that.updating=false;
				  that.AJAX.abort();
				  that.AJAX=null;
				
			  }
		  this.update = function(form,postMethod) { 
			if(that.updating) that.abort();
			 that.AJAX = null;                      
			 var passData = getFormValues(form,"validate");
			 
			 
					
			if (window.XMLHttpRequest) {              
			  that.AJAX=new XMLHttpRequest();              
			} else {                                  
			  that.AJAX=new ActiveXObject("Microsoft.XMLHTTP");
			}                                             
			if (that.AJAX==null) {                             
			  return false;                               
			} else {
			
				
				  that.AJAX.onreadystatechange = function() {  
					if (that.AJAX.readyState==4) {             
					  that.updating=false;                
					  that.callback(that.AJAX.responseText,that.AJAX.status);        
					  that.AJAX=null;                                         
					} 
					}
																
			  that.updating = new Date();                              
			  if (/post/i.test(postMethod)) {
				var uri=urlCall+'?'+that.updating.getTime();
				that.AJAX.open("POST", uri, true);
				that.AJAX.setRequestHeader("Content-type", "application/x-www-form-urlencoded; charset=UTF-8");
				//that.AJAX.setRequestHeader("Content-Length", passData.length);
				that.AJAX.send(passData);
			  } else {
				var uri=urlCall+'?'+passData+'&timestamp='+(that.updating.getTime()); 
				that.AJAX.open("GET", uri, true);                             
				that.AJAX.send(null);                                         
			  }              
			  return true;                                             
			}                                                                           
		  }
		  var urlCall = url;        
		  this.callback = processData;
		  }
		  
		
	
function getFormValues(fobj,valFunc, url) 			
	{ 
	
	   var str = ""; 
	
	   var valueArr = null; 
	
	   var val = ""; 
	
	   var cmd = ""; 
	
	   for(var i = 0;i < fobj.elements.length;i++) 
	
	   { 
	
		   switch(fobj.elements[i].type) 
	
		   { 
			case "checkbox":
					var myval = fobj.elements[i].checked;
					if(myval) 
						myval = 1;
					else
						myval = 0;								   
				   str += fobj.elements[i].name + 
	
					"=" + myval + "&"; 
	
					   break; 
			  case "textarea":
				 str += fobj.elements[i].name + 
	
						 "=" + escape(fobj.elements[i].value) + "&"; 
						 break; 
		   
				case "password":
					str += fobj.elements[i].name + 
	
						 "=" + escape(fobj.elements[i].value) + "&"; 
						  break; 
				case "hidden":
					str += fobj.elements[i].name + 

					 "=" + (fobj.elements[i].value) + "&"; 
					  break; 
			   case "text": 
	
							
					str += fobj.elements[i].name + 
	
					 "=" + escape(fobj.elements[i].value) + "&"; 
	
					 break; 
	
			   case "select-one": 
	
					str += fobj.elements[i].name + 
	
					"=" + fobj.elements[i].options[fobj.elements[i].selectedIndex].value + "&"; 
	
					break; 
	
		   } 
	
	   } 
							
				
					 
					 
	   str = str.substr(0,(str.length - 1)); 
	
	   return str; 
	
	}


	
//  ADMIN basis
function addListener(element, type, expression)
{
if(window.addEventListener)	
{
 // Standard
 element.addEventListener(type, expression, false);
 return true;
 }
  else if(window.attachEvent)
   { // IE	
	element.attachEvent('on' + type, expression);	
	return true;	
}
 else return false;
}

addListener(document, "keyup", function (e) { if (!e) { e = event; } if (e.keyCode == 27) { document.location.href = "http://www.gent-hotels.eu/beheer/index.php"; } } );
//  ADMIN basis

// productfiles magic
var myRequestPF = new ajaxObject( 'http://www.gent-hotels.eu/'+'ajax/fetchfiles.php');
function fetchFiles(id)
{
	$rgb('ajax_product_id').value = id;
	myRequestPF.update( $rgb('ajax_fetchproduct_form'), 'POST');

}

var myRequestR = new ajaxObject( 'http://www.gent-hotels.eu/'+'ajax/getfreeroom.php');
function getRoom()
{
	myRequestR.update( $rgb('rgbform'), 'POST');

}


function getCookie(c_name) {
    if (document.cookie.length > 0) {
        c_start = document.cookie.indexOf(c_name + "=");
        if (c_start != -1) {
            c_start = c_start + c_name.length + 1;
            c_end = document.cookie.indexOf(";", c_start);
            if (c_end == -1) c_end = document.cookie.length;
            return unescape(document.cookie.substring(c_start, c_end));
        }
    }
    return "";
}
function setCookie(c_name,value,exdays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
document.cookie=c_name + "=" + c_value;
}

function subscribe()
{
	$rgb('nmform').submit();
}


function stars_home( amount)
{
	if( $rgb('stars_amount_home').value == 1 && amount == 1)
	{
		amount = 0;
	}
	$rgb('stars_amount_home').value = amount;
	
	for(var i = 1;i <= amount; i++)
	{
		$rgb('starlet'+i).className = 'starlet';
	}
	for(var i = amount+1; i <=4; i++)
	{
		$rgb('starlet'+i).className = 'star_empty';
	}
	
	
	
	
	
	
}
function stars( amount)
{
	if( $rgb('stars_amount_content').value == 1 && amount == 1)
	{
		amount = 0;
	}
	$rgb('stars_amount_content').value = amount;
	
	for(var i = 1;i <= amount; i++)
	{
		$rgb('starlet_content'+i).className = 'starlet';
	}
	for(var i = amount+1; i <=4; i++)
	{
		$rgb('starlet_content'+i).className = 'star_empty';
	}
	
	
	
	
	
	
}


///////////////////////////////


// homeslider
var slides = 0;
var current_homeslider = 0;
var total_homeslider = 0;
var item_homeslider= 0;
var busy = false;
function homeslider_go(dir)
{
	if(busy) return;
	
	busy = true;
	var new_current_homeslider =  (current_homeslider + (dir*(-910)));
	var newx = new_current_homeslider;
	var old = current_homeslider;
	
	total_homeslider = slides; // $rgb('homeslider_controller').childNodes.length;
	min = total_homeslider*(-910);
	
	max = 910;

	var old_item = item_homeslider;
	
	
	if(newx >= max){ 
		
		
		
		item_homeslider = total_homeslider-1;
		
		
		newx = item_homeslider*(-910);
		new_current_homeslider = newx;
		
		
	}else if(newx <= min){
	
		item_homeslider = 0;
		
	    newx = item_homeslider*910;
		new_current_homeslider = newx;
		
		
	}else
	{
		item_homeslider = item_homeslider + dir;
	}
	
	
	
	
	
	
	

	
	
	// animate foto
	t1A = new Tween(document.getElementById('homeslider_controller').style,'left',Tween.regularEaseOut,old,newx,1.2,'px');
	t1A.onMotionFinished = function(){ busy = false;   };
	t1A.start();
	
	current_homeslider=  new_current_homeslider;
	
	updateDots('midstroke_home_dots', item_homeslider, "homeslider_controller");

}
function updateDots( id, active, parent)
{
	var str = "";

	var total =slides; //
	
	for(var i = 0; i < total ; i++)
	{
		if(i == active)
		{
			str  = str + "<span class='full'></span>";
		}else{
			str  = str + "<span class='empty'></span>";
		}
	}	
	
	$rgb(id).innerHTML = str;
	
	
}


function startShow()
{
	setTimeout( 'goShow()', 10000 );
}
function goShow()
{
	homeslider_go(1);
	
	setTimeout( 'goShow()', 10000 );
}

function tab(id)
{
	for(var i = 1; i <= 10;i++)
	{
		if( document.getElementById('tab'+i) == null) break;
		if( document.getElementById('tabcontent'+i) == null) break;
		
		$rgb('tab'+i).className = '';
		$rgb('tabcontent'+i).style.display = 'none';
	}
	
	$rgb('tab'+id).className = "active";
	$rgb('tabcontent'+id).style.display = 'block';
	
	
	
}

function tab2(count, id, latlon, name, link, pic)
{
	for(var i = 1; i <= 2;i++)
	{
		$rgb(count+'_tab'+i).className = '';
		$rgb('tabcontent_'+count+'_'+i).style.display = 'none';
	}
	
	$rgb(count+'_tab'+id).className = "active";
	$rgb('tabcontent_'+count+'_'+id).style.display = 'block';
	
	if(id == 2)
	loadMap("map_"+count, latlon, name, link, pic);
}

var map;
var geocoder;

function loadMap(map_id, latlon, name, link, pic)
{
	var a = latlon.split(',');
	lat = a[0];
	lon = a[1];
	
	if (GBrowserIsCompatible()) {
        geocoder = new GClientGeocoder();
        map = new GMap2(document.getElementById(  map_id  ));
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
        map.setCenter(new GLatLng(a[0], a[1]), 14);
      }

	   createMarker( new GLatLng( lat, lon), name, '<br class="clear"/><img alt="" height="100" src="http://www.gent-hotels.eu/hotel-images/'+pic+'"/><br class="clear"/>');

}
var last = -1;
function filter(b)
{
	map.clearOverlays();
	if(b == last)
	{
		last = -1;
			populate(true, true, true, true, true)
			return;
	}else
	{
		last = b;
	}	
	
	
	if(b == 0)
	{
		populate(true, true, false, false, false)
	}if(b == 1)
	{
		populate( false,true, false, false, false)
	}if(b == 2)
	{
		populate(false, false,true,  false, false)
	}if(b == 3)
	{
		populate(false, false, false,true,  false)
	}if(b == 4)
	{
		populate( false, false, false, false,true)
	}
}


function createMarker(point, name, descr) {
  var marker = new GMarker(point);
  var html = '<b>' + name + '</b> <br/>' + descr;
  GEvent.addListener(marker, 'click', function() {
  //  marker.openInfoWindowHtml(html);
  });

  map.addOverlay(marker);
 // marker.openInfoWindowHtml(html);
}
var first_content = "";
var lf = false;
function createMarker5(point, name, id) {
  var marker = new GMarker(point, markerOptions_hotel_resto);
 
  GEvent.addListener(marker, 'click', function() {
  
    if( !lf)
	{
		lf = true;
		first_content =  $rgb('mapcontent').innerHTML;
		
	}
    $rgb('mapcontent').innerHTML = '<a href="javascript:goBack()" class="backbtn">Terug</a><h2>'+name+'</h2>'+$rgb('hotelinfo_'+id).innerHTML
  });

  map.addOverlay(marker);
  
  
}
function goBack()
{
	show('mapcontent');
  $rgb('mapcontent').innerHTML = 	first_content;

}

function createMarker6(point, name, id) {
  var marker = new GMarker(point, markerOptions_resto);
 
 GEvent.addListener(marker, 'click', function() {
  
   if( !lf)
	{
		lf = true;
		first_content =  $rgb('mapcontent').innerHTML;
		
	}
    $rgb('mapcontent').innerHTML = '<a href="javascript:goBack()" class="backbtn">Terug</a><h2>'+name+'</h2>'+$rgb('hotelinfo_'+id).innerHTML
  });

  map.addOverlay(marker);
  
  
}

function createMarker2(point, name, id) {
  var marker = new GMarker(point, markerOptions_hotel);
 
 GEvent.addListener(marker, 'click', function() {
  
   if( !lf)
	{
		lf = true;
		first_content =  $rgb('mapcontent').innerHTML;
		
	}
    $rgb('mapcontent').innerHTML = '<a href="javascript:goBack()" class="backbtn">Terug</a><h2>'+name+'</h2>'+$rgb('hotelinfo_'+id).innerHTML
  });

  map.addOverlay(marker);
  
  
}
var markerOptions;
var blueIcon;
var markerOptions_hotel;
var markerOptions_hotel_resto;
var markerOptions_resto;


var markerOptions_2;
var hotelIcon;
function createMarker3(point, name, id) {


  var marker = new GMarker(point, markerOptions);
 
 GEvent.addListener(marker, 'click', function() {
  
  if( !lf)
	{
		lf = true;
		first_content =  $rgb('mapcontent').innerHTML;
		
	}
    $rgb('mapcontent').innerHTML = '<a href="javascript:goBack()" class="backbtn">Terug</a><h2>'+name+'</h2>'+$rgb('placeinfo_'+id).innerHTML
  });

  map.addOverlay(marker);
  
  
}

function createMarker6(point, name, id) {


  var marker = new GMarker(point, markerOptions_resto);
 GEvent.addListener(marker, 'click', function() {
  
  if( !lf)
	{
		lf = true;
		first_content =  $rgb('mapcontent').innerHTML;
		
	}
    $rgb('mapcontent').innerHTML = '<a href="javascript:goBack()" class="backbtn">Terug</a><h2>'+name+'</h2>'+$rgb('placeinfo_'+id).innerHTML
  });

  map.addOverlay(marker);
  
  
}


function createMarker4(point, name, id) {


  var marker = new GMarker(point, markerOptions_2);
 
 GEvent.addListener(marker, 'click', function() {
  
  if( !lf)
	{
		lf = true;
		first_content =  $rgb('mapcontent').innerHTML;
		
	}
    $rgb('mapcontent').innerHTML = '<a href="javascript:goBack()" class="backbtn">Terug</a><h2>'+name+'</h2>'+$rgb('placeinfo_'+id).innerHTML
  });

  map.addOverlay(marker);
  
  
}
function goPic(count, filename)
{
	
	$rgb('bigpic_'+count).src='http://www.gent-hotels.eu/hotel-images/'+filename;
	
}

function seekHotel()
{
	$rgb('hotelseekerform').submit();
}


function loadMapFinal()
{

var Bicon = new GIcon(G_DEFAULT_ICON);
Bicon.image = "http://www.gent-hotels.eu/images/dot.png";
   Bicon.shadow = null;        
// Set up our GMarkerOptions object
markerOptions = { icon:Bicon };

var Bicon_hotel = new GIcon(G_DEFAULT_ICON);
Bicon_hotel.image = "http://www.gent-hotels.eu/images/hotel.png";
           Bicon_hotel.shadow = null;            
    
// Set up our GMarkerOptions object
markerOptions_hotel = { icon:Bicon_hotel };

var Bicon_resto = new GIcon(G_DEFAULT_ICON);
Bicon_resto.image = "http://www.gent-hotels.eu/images/resto.png";
           Bicon_resto.shadow = null;            
    
// Set up our GMarkerOptions object
markerOptions_resto = { icon:Bicon_resto };


var Bicon_hotel_resto = new GIcon(G_DEFAULT_ICON);
Bicon_hotel_resto.image = "http://www.gent-hotels.eu/images/hotel_met_resto.png";
           Bicon_hotel_resto.shadow = null;            
    
// Set up our GMarkerOptions object
markerOptions_hotel_resto = { icon:Bicon_hotel_resto };





var Bicon_hotel2 = new GIcon(G_DEFAULT_ICON);
Bicon_hotel2.image = "http://www.gent-hotels.eu/images/dot2.png";
           Bicon_hotel2.shadow = null;            
    
// Set up our GMarkerOptions object
markerOptions_2 = { icon:Bicon_hotel2 };




	
	if (GBrowserIsCompatible()) {
        geocoder = new GClientGeocoder();
        map = new GMap2(document.getElementById(  'themap'  ));
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
        map.setCenter(new GLatLng(51.054533, 3.73045), 13);
      }
	
	populate(true, true, true, true, true);
	
	
	

}
function loadMapFinalHotels()
{

var Bicon = new GIcon(G_DEFAULT_ICON);
Bicon.image = "http://www.gent-hotels.eu/images/dot.png";
   Bicon.shadow = null;        
// Set up our GMarkerOptions object
markerOptions = { icon:Bicon };

var Bicon_hotel = new GIcon(G_DEFAULT_ICON);
Bicon_hotel.image = "http://www.gent-hotels.eu/images/hotel.png";
           Bicon_hotel.shadow = null;            
    
// Set up our GMarkerOptions object
markerOptions_hotel = { icon:Bicon_hotel };

var Bicon_resto = new GIcon(G_DEFAULT_ICON);
Bicon_resto.image = "http://www.gent-hotels.eu/images/resto.png";
           Bicon_resto.shadow = null;            
    
// Set up our GMarkerOptions object
markerOptions_resto = { icon:Bicon_resto };


var Bicon_hotel_resto = new GIcon(G_DEFAULT_ICON);
Bicon_hotel_resto.image = "http://www.gent-hotels.eu/images/hotel_met_resto.png";
           Bicon_hotel_resto.shadow = null;            
    
// Set up our GMarkerOptions object
markerOptions_hotel_resto = { icon:Bicon_hotel_resto };





var Bicon_hotel2 = new GIcon(G_DEFAULT_ICON);
Bicon_hotel2.image = "http://www.gent-hotels.eu/images/dot2.png";
           Bicon_hotel2.shadow = null;            
    
// Set up our GMarkerOptions object
markerOptions_2 = { icon:Bicon_hotel2 };




	
	if (GBrowserIsCompatible()) {
        geocoder = new GClientGeocoder();
        map = new GMap2(document.getElementById(  'themap'  ));
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
        map.setCenter(new GLatLng(51.054533, 3.73045), 13);
      }
	
	populate(true, true, false, false, false);
	
	
	

}



function morehotels()
{
	hide('morehotellink');
	show('extrahider');
}

function reserve()
{

	var aankomst_day = $rgb('aankomst_day').value;
	var aankomst_month = $rgb('aankomst_month').value;
	var aankomst_year = $rgb('aankomst_year').value;
	var vertrek_day = $rgb('vertrek_day').value;
	var vertrek__month = $rgb('vertrek__month').value;
	var vertrek__year = $rgb('vertrek__year').value;
	
	if($rgb('stars_amount') != null)
	{
		var stars_amount = $rgb('stars_amount').value;
	}else
	{
		var stars_amount = $rgb('stars_amount_home').value;
	}
	
	
	

	var prijsklasse = $rgb('prijsklasse').options[$rgb('prijsklasse').selectedIndex].value;
	
	var min = 0;
	var max = 9999;
	
	if(prijsklasse == 1)
	{
		min =0;
		max =50;
	}else if(prijsklasse == 2)
	{
		min =50;
		max =100;
	}else if(prijsklasse == 3)
	{
		min =100;
		max =150;
	}else if(prijsklasse == 4)
	{
		min =150;
		max =200;
	}else if(prijsklasse == 5)
	{
		min =200;
		max =250;
	}else if(prijsklasse == 6)
	{
		min =250;
		max =300;
	}else if(prijsklasse == 7)
	{
		min =300;
		max =9999;
	}
	
	
							
	
	
	
	
	window.open( "https://secure.cubilis.eu/portal/belgie/gent/search.aspx?start="+aankomst_year+"-"+aankomst_month+"-"+aankomst_day+"&end="+vertrek__year+"-"+vertrek__month+"-"+vertrek_day+"&stars="+stars_amount+"&minprice="+min+"&maxprice="+max+"&lang="+lang);



}


jQuery(document).ready(function() {
	
	$(".youtubelink").fancybox({
		'width'				: '45%',
		'height'			: '56%',
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});
	
	$("#tab6").fancybox({
		'width'				: 940,
		'height'			: 490,
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});
	
	


});
