		// Next Post on single page		
		function nextPost(){
			if(post_id == last_post){
				document.location = "http://" + document.domain + "/?p=" + ids_a[0];
			} else{
				document.location = "http://" + document.domain + "/?p=" + ids_a[post_pos+1];
			}
		}


		// Previous post on single page
		function prevPost(){
			if(post_id == first_post){
				document.location = "http://" + document.domain + "/?p=" + ids_a[ids_a.length-1];
			}else{
				document.location = "http://" + document.domain + "/?p=" + ids_a[post_pos-1];
			}
		}
