/*
 * 
 * Sydlexia Theme Dynamic Javascripts
 * 
 */

/*
 * SPECIAL AUTHOR EFFECT
 * 
 * Using the Style Sheet, one can create special effects for specific authors
 * The Syntax in the style sheet is .SpecialAuthor_UserName
 * If the name has a space in it, the space will be converted to an underscore
 * For example: Syd Lexia would become Syd_Lexia.
 * In the style sheet the area could be referenced by using .SpecialAuthor_Syd_Lexia
 * 
 * This function must be called before and after a post with Open before and Close after.
 */

 function SpecialAuthor(TheAuthor, Status){
 	if (Status == "Open") {
		var TheAuthorNoSpaces = TheAuthor;
		TheAuthorNoSpaces = TheAuthorNoSpaces.replace(/ /,"_"); /* Replaces Spaces with Underscores */
		document.write("<div class='SpecialAuthor_" + TheAuthorNoSpaces +  "'>");
	}
	if (Status == "Close") {
		document.write("</div>");
	}
 }

function eON(objectID){
 	$(objectID).morph('color:#00ff00;')
 }
function eOFF(objectID){
 	$(objectID).morph('color:#888888;')
 }
 
function DoubleClickedStory(objectID){
 	//$(objectID).morph('z-index:100;width:100%;height:100%;top:0px;')
	var StoryPortion = objectID.id + "-text"
	var hiddenOrShown = document.getElementById(StoryPortion).style.display;
	if (hiddenOrShown == "none"){
        new Effect.BlindDown(StoryPortion);
		return false;
	}
	if (hiddenOrShown == "block" || hiddenOrShown == ""){
		new Effect.BlindUp(StoryPortion);
		return false;
	}
 }


/*
function hideContainer(){
	$('navBarLoginText').hide();
}

Event.observe(window, 'load', ContentLoadEffect);	
function ContentLoadEffect(){
	new Effect.BlindDown('navBarLoginText');
	// Effect.Appear('', { duration: 3.0 });
	// new Effect.Highlight('nav', { startcolor: '#888888'});
	
}
*/
	
