﻿// Get the path to this script as called from the HTML.
var SS_PathFromHTML="shadowscript/";
SS_PageScripts=document.getElementsByTagName("script");
for (LoopVar=0; LoopVar<SS_PageScripts.length; LoopVar++){
	if (SS_PageScripts[LoopVar].src.indexOf("shadowscript.js")!=-1){
		SS_PathFromHTML=SS_PageScripts[LoopVar].src.replace("shadowscript.js", "");
	}
}





// Includes functions for dealing with element content
SS_Include(SS_PathFromHTML+"core/content.js");

// Includes functions for dealing with element positioning, dimensions, visibiliy, etc...
SS_Include(SS_PathFromHTML+"core/placement.js");

// Includes functions for animation of elements.  This may be commented if no animations are needed.
SS_Include(SS_PathFromHTML+"core/animation.js");







// Include the passed JS src file
function SS_Include(JSFileName){
	if (JSFileName!=null){
		var ScriptObj=document.createElement("script");
		ScriptObj.setAttribute("type", "text/javascript");
		ScriptObj.setAttribute("src", JSFileName);
		document.getElementsByTagName("head").item(0).appendChild(ScriptObj);
	}
}