/**
* Styleswitch stylesheet switcher built on jQuery
* Under an Attribution, Share Alike License
* By Kelvin Luck ( http://www.kelvinluck.com/ )
**/

(function($)
{



	$(document).ready(function() {

if ($.browser.msie && $.browser.version <= 7) {
var zIndexNumber = 10000;
	$('li').each(function() {
		$(this).css('zIndex', zIndexNumber);
		zIndexNumber -= 1;
	});
}

$("img.loader").animate({opacity: "0"}, 1000);	




// Show More when clicked
		$('a.more').click(function() {
			var id = this.getAttribute("id");
			var id_pieces = id.split('_');
			if (id_pieces.length==2)
			{
				var more_id = 's_'+id_pieces[1];
				//alert(more_id);
				$('ul#'+more_id).slideToggle("slow");
			}
			
			return false;	
		});


/*
--------------------------------------------------------------------------------------- QUICKIES
*/	

  $('div.q_block > div.q_secondary').hide();
  $('div.q_block > h3').click(function() {
  	 $('div.q_block > div').slideUp('fast');
	 $(this).next().next('div').fadeToggle('fast');
  });
  
  $('a.close').click(function(){
  	$(this).parent().parent().slideToggle('fast');
  	return false;
  });
  

	jQuery.fn.fadeToggle = function(speed, easing, callback) {
		return this.animate({opacity: 'toggle'}, speed, easing, callback);
	};


		
	});



/*
--------------------------------------------------------------------------------------- NAV ARROW
*/


//$('<img src="http://koreannewsfeeds.com/stage/img/nav-arrow.gif" class="navarrow">').insertBefore('div#navbar ul li.on'); 
		
})(jQuery);  
/*
--------------------------------------------------------------------------------------- End Jquery wrapper
*/