
	
	//fckeditor // update editors content
	function getEditorContent(instanceName) {             
		var oEditor = FCKeditorAPI.GetInstance(instanceName) ;
   	    return oEditor.GetXHTML( true ); 		      
	} 

	//to clear default field value
	function clearText(thefield){
		if (thefield.defaultValue==thefield.value)
			thefield.value = ""
	} 
	
	function setBackText(thefield){
		if (thefield.value=="")
			thefield.value = thefield.defaultValue;
	} 	

	
	$(document).livequery(function () {	


		$("#attach_photos_button").livequery("click",function(){
			if ($("#attach_photos").css('display')=='block')
				$("#attach_photos").css({'display':'none'});
			else
				$("#attach_photos").css({'display':'block'});			
		});						   


									

		//blog archive
		$(".blog-archive a[href=#]").livequery("click",function(){
			if ($("ul:first",this.parentNode).css('display')=='none')											   
				$("ul:first",this.parentNode).slideDown("fast");		
			else
				$("ul:first",this.parentNode).slideUp("fast");
		
			return false;
		});
		
	});

