document.write('<script src="/sitemakr/ajax/system/controls/DynamicMidMenu.js" type="text/javascript"></script>');
document.write('<script src="/sitemakr/ajax/system/controls/FloatingNote.js" type="text/javascript"></script>');
document.write('<script src="/sitemakr/ajax/system/controls/SlideShow.js" type="text/javascript"></script>');
document.write('<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script>');

function Sitemakr_Class() {
    this.DynamicMidMenu = null;
    this.MainImageFloatingCode = null;
    this.heirinit = function(o_PageObject) {
	    this.DynamicMidMenu = new DynamicMidMenu_Control('wrapDynamicMidMenu','wrapMidmenu');
	    this.DynamicMidMenu.init(o_PageObject);
	    this.MainImageFloatingCode = new FloatingNote_Control('pnlFloatingNoteContainer','pnlMainImageFloatingCodeData');
	    this.MainImageFloatingCode.init(o_PageObject);
		this.SlideShow = new SlideShow_Control('slideshowtarget','slideshowtable');
		this.SlideShow.init(o_PageObject,'SlideShow');//passing instance name as string
		this.SlideShow.incrementFunctionForInterval=function () {Sitemakr.SlideShow.increment(Sitemakr.SlideShow)}; //dumb thing to get IE to work with setInterval since out of scope and can't pass setInterval parameters
   }    
}

Sitemakr_Class.prototype = new PageClass;
//we Call this GlobalAjaxPage always for every page so we can cleanup
//don't know any other way to access the Page Object for window.onunload scope
var Sitemakr = new Sitemakr_Class();
Sitemakr.heircleanup = function(o_pageObject) {	
	//o_pageObject.DynamicSubMenu.cleanup(o_pageObject.DynamicSubMenu);
        //o_pageObject.MainImageFloatingCode.cleanup(o_pageObject.MainImageFloatingCode);//do this by setting up .controls hash that is used to cleanup
}
