/*
File: jquery.config.js
*/
//callbacks

//main dom ready
$(function() 
{
		
	    
	    //tabs
	    var tabContainers = $('#daniel, #reinhard, #cfan');
		
		$('ul.tabNavigation a').click(function () {
		        tabContainers.hide().filter(this.hash).show();

		        $('ul.tabNavigation a').removeClass('selected');
		        $(this).addClass('selected');

		        return false;
		    }).filter(':first').click();
		 
		// remove input text
		$('.rmv').click(function() {
			if (this.value == this.defaultValue) {
				this.value = '';
			}
		});
		
		$('.rmv').blur(function() {
			if (this.value == '') {
				this.value = this.defaultValue;
			}
		});
		// add highlite
		$('input[type="text"]').focus(function() {
			$(this).addClass('selected');
		});
		// remove highlite
		$('input[type="text"]').blur(function() {
			$(this).removeClass('selected');
		});
		
		//open windows without embedding target="_blank"				
		$('a[rel="external"]').each(function() {
			$(this).attr('target', '_blank');
		});
		
		$("input:checkbox, select").uniform();
		

});
