/****************************************
 * Neoland
 * Global JavaScript
 ****************************************/

// Start closure to prevent namespace conflicts
;(function($) {

// Perform initial setup tasks when DOM is ready
$(document).ready( function() {
					
	// ----------------------------------------------
	  // ":not([safari])" is desirable but not necessary selector
  $('input[safari]:checkbox').checkbox({cls:'jquery-safari-checkbox'});
    // ----------------------------------------------
	$('#select_sort_1').selectbox();
	$("#select_sort_1_container ul li").click(function() {
			if (this.id.length) {
				window.location = this.id
			}
	  	});
	$('#select_sort_2').selectbox();
	$("#select_sort_2_container ul li").click(function() {
			if (this.id.length) {
				window.location = this.id
			}
	  	});

	// ----------------------------------------------
	
	 // Notice the use of the each() method to acquire access to each elements attributes
   $('#content_categorii a[tooltip]').each(function()
   {
      $(this).qtip({
         content: $(this).attr('tooltip'), // Use the tooltip attribute of the element for the content
		  position: {
                  corner: {
                     tooltip: 'leftMiddle' // Use the corner...
                  }
		       },
        style: { width: { max: 170 }, name: 'dark' }
      });
   });

 // ----------------------------------------------
 
 	// ----------------------------------------------
	
	 // Notice the use of the each() method to acquire access to each elements attributes
   $('#sub-header-tab a[tooltip]').each(function()
   {
      $(this).qtip({
         content: $(this).attr('tooltip'), // Use the tooltip attribute of the element for the content
		  position: {
                  corner: {
                     tooltip: 'leftMiddle' // Use the corner...
                  }
		       },
        style: { width: { max: 170 }, name: 'dark' }
      });
   });

 // ----------------------------------------------

});



 

// End closure
})(jQuery);


