$(document).ready(function() {


	$("a.bahaisverak").fancybox({
		'frameWidth': 580, 
        'frameHeight': 377,
	    'centerOnScroll': true,
		'overlayShow': true,
        'callbackOnClose': function() { 
			$("#fancy_content").empty(); 
		}
	});


	$(function(){
	   function sveraktime(){
		$("a.bahaisverak").trigger("click");
	   };
	   window.setTimeout( sveraktime, 100 ); // 5 seconds
	});



	$("a.yes2").fancybox({
		'frameWidth': 750, 
        'frameHeight': 700,
	    'centerOnScroll': true,
		'overlayShow': true,
        'callbackOnClose': function() { 
			$("#fancy_content").empty(); 
	
		}
	});



	$("a.ei").fancybox({
		 'frameWidth': 920, 
         'frameHeight': 625,
         'callbackOnClose': function() { 
		$("#fancy_content").empty(); 
	}

 
	});
	
	$("a.ky").fancybox({
	
		 'frameWidth': 840, 
         'frameHeight': 604 
	});
	
	$("a.fashion").fancybox({
		 'frameWidth': 840, 
         'frameHeight': 640,
              'callbackOnClose': function() { 
		$("#fancy_content").empty(); 
	}
 
	});
	
	
	$("a.bahai").fancybox({
		'frameWidth': 670, 
        'frameHeight': 580,
		'overlayShow': false,
        'callbackOnClose': function() { 
			$("#fancy_content").empty(); 
		}

         
	});
	

	$("a.bahai2").fancybox({
		'frameWidth': 900, 
        'frameHeight': 900,
        'callbackOnClose': function() { 
			$("#fancy_content").empty(); 
		}

         
	});

	$("a.bahaiteaser").fancybox({
		'frameWidth': 920, 
        'frameHeight': 580,
        'callbackOnClose': function() { 
			$("#fancy_content").empty(); 
		}

         
	});


	$("a.bahaiteaserofilmu").fancybox({
		'frameWidth': 740, 
        'frameHeight': 510,
	    'centerOnScroll': true,
		'overlayShow': true,
        'callbackOnClose': function() { 
			$("#fancy_content").empty(); 
	
		}
	});




	$("a.mujtube").fancybox({
		'padding'		: 0,
		'autoScale'		: false,
		'transitionIn'	: 'none',
		'transitionOut'	: 'none',
		'frameWidth': 680, 
        'frameHeight': 420,
        'callbackOnClose': function() { 
			$("#fancy_content").empty(); 
		}
	});



	$("a.fashion").click(function () {
      var htmlStr = $(this).html();
      $(this).text(htmlStr);
    });
    
    $("a.ei").click(function () {
      var htmlStr = $(this).html();
      $(this).text(htmlStr);
    });
    
    $("a.bahai").click(function () {
      var htmlStr = $(this).html();
      $(this).text(htmlStr);
    });



});

