 isNewQuery = ( queryString ) ->
 	return queryString != window.location.search
 
+getQueryString = ( query ) ->
+	$.param( getPermalinkQuery query )
+
 getResults = ( query, options = {} ) ->
 	lastQuery = window.location.search
-	newQuery  = '?' + $.param( getPermalinkQuery query )
+	newQuery  = '?' + getQueryString query
 
 	# Maintain state
 	pushState query if ! isEmbed() && ( isNewQuery( newQuery ) || ! history.state )

		$(this).hide().delay( 300 ).html( html ).fadeIn options.speed

pushState = ( query ) ->
	url = '?' + $.param( getPermalinkQuery query )
	history.pushState query, '', url if $.support.history

isEmbed = ->


		percents

	permalink = "http://#{window.location.host}?" + getQueryString query

	# Control
	results.push $.extend
