jQuery.noConflict();
jQuery(document).ready(function($) {
		
	/*===========================
	*
	* Date Created: 01/12/2011
	* Last Update: 01/12/2011
	* Source: -
	* Description: -
	*
	*===========================*/
	
	$( '.anzeige-images li:nth-child(3n)' ).addClass('nmr');
	$( '.tx-t2auktionen-pi5 li:nth-child(3n)' ).addClass('nmr');
		
	// CLEAR INPUT FIELD
	jQuery('.setclear').each(function() {
		var default_value = this.value;
		jQuery(this).focus(function(){
			if(this.value == default_value) {
				this.value = '';
			}
		});

		jQuery(this).blur(function(){
			if(this.value == '') {
				this.value = default_value;
			}
		});
	});

	jQuery( '.sf-menu li:last-child' ).addClass('last');
	jQuery( '.sf-menu li:first-child' ).addClass('first');
	jQuery( '.topnavi li:last-child' ).addClass('last');
	jQuery( '.topnavi li:first-child' ).addClass('first');
	jQuery( 'a[rel=external]' ).attr('target', '_blank');
	
	/*===========================
	*
	* Pluginname: Fancybox - Fancy lightbox alternative
	* Date Created: 17/08/2011
	* Last Update: 17/08/2011
	* Source: http://fancybox.net/
	* Description: lightbox
	*
	*===========================*/
	
	if (jQuery('a[rel="fancybox"]').length) {
		jQuery('a[rel="fancybox"]').fancybox({
			overlayOpacity: '0.7',
			overlayColor: '#000',
			titlePosition: 'over'
		});
	}
	
	/*===========================
	*
	* Pluginname: JQuery Cycle Plugin
	* Date Created: 05/12/2011
	* Last Update: 05/12/2011
	* Source: http://jquery.malsup.com/cycle/
	* Description: cycle plugin
	*
	*===========================*/
	
	if ( $( '#slider' ).length ) {
		$( '#slider' ).cycle({
			fx: 'fade',
			timeout: 0,
			speed: '2000',
			timeout: '5000',			
			next: '#next',
			prev: '#prev'
		});
	}
	
	if ( $( '.partner' ).length ) {
		$( '.partner' ).cycle({
			fx: 'fade',
			timeout: 0,
			speed: '2000',
			timeout: '7500'
		});
	}
	
	if ( $( '.wb' ).length ) {
		$( '.wb' ).cycle({
			fx: 'fade',
			timeout: 0,
			speed: '1000',
			timeout: '10000'		
		});
	}
	
	
	// AUKTIONS
	$(".toggle").click(function () {
		$(".togglecontainer").slideToggle("slow");
	});

	
	
});
