if(!window.BlacknWhite) 
    var BlacknWhite = {}; 



BlacknWhite = { 
    init     : function(options) 
    { 
        options = jQuery.extend({minor : 7}, options); 
        if(jQuery.browser.msie && jQuery.browser.version < options.minor) {
			jQuery('#wrapper').css("filter","gray");
    		$('#ie6alert').fadeIn('fast');
			//$('#ie6alert').css("filter","color")
		}
	} 
};

$(document).ready(function() {

//	alert('updated');

    //BlacknWhite.init();
	
	//$('#closealert').click(function() {
    //		$('#ie6alert').hide();
	//});
	
	
	
	
	$('p.a').hide();
	
	$('p.q').toggle(function() {
		$(this).next('p.a').slideDown('fast');
	},function() {
		$(this).next('p.a').slideUp('fast');
	});
	
	$('div.ie6_update').click(function() {
		$(this).hide();
	});
	
	$('ul.about-tabs a').click(function() {
		
		$('ul.about-tabs a').each(function() {
			$(this).parent().removeClass('active');
		});
		
		$(this).parent().addClass('active');
		
		var tabVal = $(this).attr("title");
		$('div.tab-content').each(function() {
			$(this).hide();
			if($(this).hasClass(tabVal)) {
				$(this).fadeIn('fast');
			}
		});
	});
	
	/*if (!$('select').hasClass("ui-dropdownchecklist-text") || !$('select').hasClass("product_search_input")){
		$('select').customSelectStyle();
	}*/
	
	//$('select.niceSelect').customSelectStyle();
	
	
	
    $('#blog-gallery').galleryView({
      panel_width: 517,
      panel_height: 300,
      frame_width: 75,
      frame_height: 75,
		background_color: '#eaeaea',
		overlay_text_color: 'white',
		caption_text_color: 'black',
		border: '0px solid black',
		nav_theme: 'light',
		show_captions: true,
		fade_panels: false

    });
	
 	//$(".niceSelect").select_skin();
 	$("select").select_skin();


	
});



//(function($){
// $.fn.extend({
// 
// 	customSelectStyle : function(options) {
//	  if(!$.browser.msie || ($.browser.msie&&$.browser.version>6)){
//	  return this.each(function() {
//	  
//			var currentSelected = $(this).find(':selected');
//			$(this).after('<span class="selectNiceWrapper"><span class="selectNiceChecklist">'+currentSelected.text()+'</span></span>').css({position:'absolute', opacity:0});
//			var selectBoxSpan = $(this).next();
//			/*if($(this).width()){ var selectWidth = 200;  }else{ var selectWidth = $(this).width(); }
//			var selectBoxWidth = parseInt(selectWidth) - parseInt(selectBoxSpan.css('padding-left')) -parseInt(selectBoxSpan.css('padding-right'));			*/
//			var selectBoxSpanInner = selectBoxSpan.find(':first-child');
//			selectBoxSpan.css({display:'inline-block'});
//			selectBoxSpanInner.css({width:selectBoxWidth, display:'inline-block'});
//			/*var selectBoxHeight = parseInt(selectBoxSpan.height()) + parseInt(selectBoxSpan.css('padding-top')) + parseInt(selectBoxSpan.css('padding-bottom'));*/
//			$(this).height(selectBoxHeight).change(function(){
//				//selectBoxSpanInner.text($(this).val()).parent().addClass('changed');
//selectBoxSpanInner.text($(this).find(':selected').text()).parent().addClass('changed');
//// Thanks to Juarez Filho & PaddyMurphy
//			});
//			
//	  });
//	  }
//	}
// });
//})(jQuery);
//


