CSAct[/*CMP*/ 'c49914fa228'] = new Array(CSShowHide,/*CMP*/ 'first',1);
CSAct[/*CMP*/ 'c49914fa227'] = new Array(CSShowHide,/*CMP*/ 'first',1);
CSAct[/*CMP*/ 'c498db95179'] = new Array(CSShowHide,/*CMP*/ 'first',0);
var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		pre_close_over = newImage('../images/close-over.png');
		preloadFlag = true;
	}
}

	var trackclick = 1;
function checkclickup(){
	//alert(trackclick); 
	if (trackclick == 1){
		CSAction(new Array(/*CMP*/'c46f1fb95'));
	}
	trackclick = 0;
}

function checkclickdown(){
	//alert(trackclick); 
	if (trackclick == 1){
		CSAction(new Array(/*CMP*/'c46f22c525'));
	}
	trackclick = 0;
}

function resettrack(){
	trackclick = 1;
	//alert(trackclick);
}


                //We wrap all the code in an object so that it doesn't interfere with any other code
		
		var scroller = {
                  init:   function() {
                
                    //collect the variables
                    scroller.docH = document.getElementById("content2").offsetHeight;
                    scroller.contH = document.getElementById("container2").offsetHeight;
                    scroller.scrollAreaH = document.getElementById("scrollArea2").offsetHeight;
		    //alert("scroller.docH=" + scroller.docH);
		    //alert("scroller.contH=" + scroller.contH);
		    //alert("scroller.scrollAreaH=" + scroller.scrollAreaH);
                      
                    //calculate height of scroller and resize the scroller div
                    //(however, we make sure that it isn't to small for long pages)
                    scroller.scrollH = (scroller.contH * scroller.scrollAreaH) / scroller.docH;
		     //if(scroller.scrollH < 15) scroller.scrollH = 15;

		    // The main testimonial box is 250 px. If the document height < 250, we don't need a scroll bar or the scroll bar will exceed the height of the content area.
		    if (scroller.docH < 80) scroller.scrollH = 0;    //or: if(scroller.scrollH > 250) scroller.scrollH = 0;  
                    document.getElementById("scroller2").style.height = Math.round(scroller.scrollH) + "px";
		    //alert("Scroller2: " + document.getElementById("scroller2").style.height);
                    
                    //what is the effective scroll distance once the scoller's height has been taken into account
                    scroller.scrollDist = Math.round(scroller.scrollAreaH-scroller.scrollH);
                    
                    //make the scroller div draggable
                    Drag.init(document.getElementById("scroller2"),null,0,0,-1,scroller.scrollDist);
                    
                    //add ondrag function
                    document.getElementById("scroller2").onDrag = function (x,y) {
                      var scrollY = parseInt(document.getElementById("scroller2").style.top);
                      var docY = 0 - (scrollY * (scroller.docH - scroller.contH) / scroller.scrollDist);
                      document.getElementById("content2").style.top = docY + "px";
                    }
		    P7_initPM(1,9,1,-20,10); // header menus
                  }
                }
                onload = scroller.init;
		
							
