/* --------------------------------------------------
@project		Judith Vollmond
@file			javascript/functions.js
@date		03.06.2010
@version		0.1
@author		Günther Klebinger
@function		custom javascript functions
-------------------------------------------------- */

$(document).ready(function() {
	
	/* Textmarkierung generell deaktivieren */
	$('#wrapper').disableTextSelect();
	$('#footer').disableTextSelect();

	/* Fancybox */
	$('a.fancybox').fancybox({ 'titleShow': false, 'titlePosition': 'inside', 'transitionIn': 'fade', 'transitionOut': 'fade', 'hideOnContentClick': false, 'padding': 1, 'imageScale': true, 'overlayOpacity': 0.7, 'overlayColor': '#010101' }); 
	
	/* Hintergrundbild */
	$.fn.supersized.options = {  
		startwidth: 1680,  
		startheight: 1050,
		vertical_center: 1,
		slideshow: 0,
		transition: 0,
		minsize: .5
		};  
	$('#supersize').supersized();
	
	/* Stil für Filter-Tooltips */
	$.fn.qtip.styles.filter_tooltip = { background: '#000000', border: { width: 0, radius: 0, color: '#d8ff00' } , color: '#ffffff', textAlign: 'center', tip: { color: '#000000', corner: 'rightMiddle', size: { x: 5, y: 8 } } };
	/* Tooltips aus Filer-titeln */
	$('.has_tooltip').qtip({ hide: { effect: { length: 250 } }, show: { effect: { length: 250 } }, style: 'filter_tooltip', position: { adjust: { x: -8, y: 0 }, corner: { target: 'leftMiddle', tooltip: 'rightMiddle' } } });
	
	/* Filter */
	$('.filter_button').mouseup(function() {
		var showclass = $(this).attr('id');
		$('.post').hide();
		$('.gallery').hide();
		$('.'+showclass).show();
		});
	$('.filter_button_all').mouseup(function() {
		$('.post').show();
		$('.gallery').show();
		});
		
		
	});
