$(document).ready(function(){
		/* COLORBOX */


	$('#language a[href][title]').each(function() {
		$(this).qtip({
			content: { text: false },
			position: {
				corner: { tooltip: 'topMiddle', target: 'topLeft' },
				adjust: { x: 0, y: 0 }
			},
			hide: { fixed: true, delay: 1000, effect: 'slide' },
			show: { effect: { type: 'slide' } },
			style: 'language'
		});
	});	
	
	/*TOGGLE*/
	$(".toggle_container").hide(); 

	$("h2.trigger").toggle(function(){
		$(this).addClass("active");
		}, function () {
		$(this).removeClass("active");
	});

	$("h2.trigger").click(function(){
		$(this).next(".toggle_container").slideToggle("slow");
	});
	

	$("a[rel='gallery']").colorbox();
	$("a.video").colorbox({iframe:true, innerWidth:480, innerHeight:385});
	
	/*$("a.navtrigger").each(function (i) {
		$(this).tooltip({ 
	    	position: ['top', 'right'],
			offset: [0, - ($(this).width()+19)],
		    opacity: 0.9
		});    	
	});*/
	
	$("a.navtrigger").each(function (i) {
	$(this).tooltip({ 
    	position: ['top', 'right'],
		offset: [0, - ($(this).width()+19)],
	    opacity: 0.9
		});    	
	});	
	
	//$("a.navtrigger").tooltip({ effect: 'slide'});
	
	$("ul.tabs").tabs("div.panes > div", { fxAutoHeight: true });
	//$("ul.tabs").tabs({ fxAutoHeight: true });

});


function openFormWin() {
    var win = window.open("about:blank", "pop", "width=950, height=900, scrollbars=yes");
};
