// JavaScript Document<cfsetting showdebugoutput="false">

function initDocReady(){
        var COMPLETE = "complete";
 
        docReadyEvent = new Ext.util.Event();
        /*
        if (Ext.isGecko || Ext.isOpera) {
            DOC.addEventListener(DOMCONTENTLOADED, fireDocReady, false);
        } else if (Ext.isIE){
            DOC.write("<s"+'cript id=' + IEDEFERED + ' defer="defer" src="/'+'/:"></s'+"cript>");            
            DOC.getElementById(IEDEFERED).onreadystatechange = function(){
                if(this.readyState == COMPLETE){
                    fireDocReady();
                }
            };
        } else if (Ext.isWebKit){
            docReadyProcId = setInterval(function(){                
                if(DOC.readyState == COMPLETE) {
                    fireDocReady();
                 }
            }, 10);
        }
        */
        // no matter what, make sure it fires on load
        E.on(WINDOW, "load", fireDocReady);
    };

    function setupDiv(id, height) {
    	//var dh = Ext.DomHelper;	
    	var div2 = Ext.get(id);
    	div2.setStyle({
    		clear:'right',
    		float:'right',
    		marginLeft:'10px', 
    		marginBottom:'10px', 
    		backgroundColor: '#D9EAFD',
    		height: height,
    		width:'280px'//,
    		//position:'inline'
    	});
    }

Ext.onReady(function(){
			setupDiv('photoDiv', '360px');
			new Ext.ux.Carousel('photoDiv');
			if (typeof(setContentHeight) == "function")
				setContentHeight();
});


