/*$(document).ready(function() {
	var height = $(window).height();
	
		if(height>800){	
			$('.bg_bl').css('min-height',height+'px');			
			$('.bg_br').css('height',height+'px');			
		}	
});*/
jQuery(document).ready(function() {
	jQuery('#mycarousel').jcarousel({
		rtl:true,
		scroll:1,
		visible:9,
		wrap: 'circular'
	});	
	
	$(function() {
		$('#slideshow').cycle({ fx: 'fade', timeout: 5000, pause: 1, cleartype: 1, speed: 5000 });
	});
	
	
		
	var window_height = $(window).height();
	var wrapper = $('.full_wrapper').height();
	
	var height = (wrapper > window_height) ? wrapper : window_height;
	$('.bg_tl,.bg_tr,.bg_bl,.bg_br').css('height',height+'px');

	//alert(height+'px');
});	


jQuery(document).ready(function() {$('.flip').click(function() {
	var f =  $(this);
	  f.flip({
		direction:'lr',	// 'tb', 'bt', 'lr', 'rl'
		color:'#dddddd',
		onEnd: function(){
				if(f.hasClass('flipped')){
			
					
					f.find('.img').show();
					f.find('.text').hide();
					f.removeClass('flipped');
					f.css('background','#ffffff');
					//alert('df');
				}else{
					f.find('.text').show();
					f.find('.img').hide();
					
									
					f.addClass('flipped');
				}
			}
		
		});
	});
});

