 		else sel = "/topics"
 
 		$("#search_post form").attr("action",sel)
-		
+
+#	sidebar init	
 $ ->
   menubool = true
   $("#sidebar").hide()

sleep = (time, callback) ->
  setTimeout(callback, time)

widthIsOver850 = () ->
  $("article, .body *").width("500")
  $(".linkimg").width("250")

  else
    widthIsUnder850()

# fancybox init
$ ->
  $('a.fancybox').fancybox()

# searchbar init
$ ->
	$("#submit_path").change ->
		val = $('#submit_path option:selected').val()
