$(document).ready(function(){
	
	//alert($('link[rel="stylesheet"]').attr('href'));
	
	//var str = $('link[rel="stylesheet"]').attr('href');
	//alert(str.match(/[^]*$/));
	
	$('<img />').attr('src', '/wp/wp-content/themes/OFT/shared/img/blog_arrow.gif');
	$('<img />').attr('src', '/wp/wp-content/themes/OFT/shared/img/blog_arrow_on.gif');

	$('a.slide').toggle(
	function(){
		$(this).parent().css("background-image", "url(/wp/wp-content/themes/OFT/shared/img/blog_arrow_on.gif)");
	},
	function(){
		$(this).parent().css("background-image", "url(/wp/wp-content/themes/OFT/shared/img/blog_arrow.gif)");
	});
	$('a.slide').click(function(){
		$(this).parent().parent().children('ul.hidden').slideToggle(200);
		
	});
	
});
