function initializePage(image,cssClass){

	$('content').style.overflow = "hidden";
	$('rightContent').style.overflow = "hidden";
	
	if (cssClass != ''){
		document.body.className = cssClass;
	}	
	else {
		document.body.className = 'default';
	}

	//verify if right content has any content if not hide it
	
	if ($('rightContent')){
		if (trim($('rightContent_content_description').innerHTML) == ''){
				$('rightContent').style.display = 'none';
		}	
	
	}
	
	
	if ($('prod_credits')){	
	
			var prodImages = $$('#prod_credits img');	
			
			if (prodImages.length<= 4){
				$('sliderDiv1_Horizontal').style.display = 'none';
			}
			else{
				var creditWidth     = 	prodImages.length*233;			
				var creditWidthText =   creditWidth + "px";
					
				$('prod_credits').style.width = creditWidthText;					
				$('divContent_1').style.width = creditWidthText;	
			
			}
			
		}
	
		
		if ($('sliderDiv1_Horizontal')){
		
				var scroller = new Bs_ScrollableDiv();
				scroller.init('mainContent_content', 'divContent_1');
				
				var sliderObj = new Bs_Slider();
				sliderObj.width = 955;
				sliderObj.height = 16;
				sliderObj.arrowMouseOver = false;
				sliderObj.valueDefault = 0;
				sliderObj.imgDir         = 'images/';
				sliderObj.setBackgroundImage('horizontal_scroll_ln.gif', 'repeat');
				sliderObj.setSliderIcon('horizontal_knob.gif', 44, 16);
			
		
				scroller.setSliderObject(sliderObj, 'sliderDiv1_Horizontal');
				scroller.setSlideSpeed(200, 'pixel'); //200 pixel per second
				scroller.setWheelSpeed(50, 'pixel');  //50 pixel per tick
			
		}
	
		else{
		
			//scrollablediv 1
			var scroller = new Bs_ScrollableDiv();
			scroller.init('mainContent_content', 'divContent_1');
			
		  var sliderObj = new Bs_Slider();
			sliderObj.width          = 16;
			sliderObj.top          = 0;
			sliderObj.height         = '365';
			sliderObj.arrowMouseOver = true;
			sliderObj.direction      = 1;
			sliderObj.imgDir         = 'images/';
			sliderObj.setBackgroundImage('scroll_ln.gif', 'repeat');
			sliderObj.setSliderIcon('scroll_knob.gif', 15, 43);

			scroller.setSliderObject(sliderObj, 'sliderDiv1');
			scroller.setSlideSpeed(50, 'pixel'); //50 pixel per second
			scroller.setWheelSpeed(10, 'pixel'); //10 pixel per tick
	
	}
		if ($('rightContent').style.display != 'none'){

		  var scroller = new Bs_ScrollableDiv();
		  scroller.init('rightContent_content', 'divContent_2');
			
		  var sliderObj = new Bs_Slider();
			sliderObj.width          = 16;
			sliderObj.top          = 0;
			sliderObj.height         = '365';
			sliderObj.arrowMouseOver = true;
			sliderObj.direction      = 1;
			sliderObj.imgDir         = 'images/';
			sliderObj.setBackgroundImage('scroll_ln.gif', 'repeat');
			sliderObj.setSliderIcon('scroll_knob.gif', 15, 43);
			
			
			scroller.setSliderObject(sliderObj, 'sliderDiv2');
			scroller.setSlideSpeed(50, 'pixel'); //50 pixel per second
			scroller.setWheelSpeed(10, 'pixel'); //10 pixel per tick	
		}
	
	
	
}


function updateDisplay(){
	

		
	
	
}


function TextScroll(scrollname, div_name, up_name, down_name, type)
{
    this.div_name = div_name;
    this.name = scrollname;
    this.scrollCursor = 0;
    this.speed = 5;
    this.timeoutID = 0;
    this.div_obj = null;
    this.up_name = up_name;
    this.dn_name = down_name;
    
    if (!type || type==''){
    	this.type='vertical';
    }
    else{
    	this.type= type;
    }
    

{
        if (document.getElementById) {
            div_obj = document.getElementById(this.div_name);
            if (div_obj) {
                this.div_obj = div_obj;
                this.div_obj.style.overflow = 'hidden';
            }
            div_up_obj = document.getElementById(this.up_name);
            div_dn_obj = document.getElementById(this.dn_name);
          
            if (div_up_obj && div_dn_obj) {
            	
            	if (this.type=='vertical'){
            	
	                div_up_obj.onmouseover = function (TextScrollObj) { return function () { TextScrollObj.scrollUp(); }} (this);
					div_up_obj.onmouseout = function (TextScrollObj) { return function () { TextScrollObj.stopScroll(); }} (this); 

					div_dn_obj.onmouseover = function (TextScrollObj) { return function () { TextScrollObj.scrollDown(); }} (this); 
					div_dn_obj.onmouseout = function (TextScrollObj) { return function () { TextScrollObj.stopScroll(); }} (this);
            	}
            	else if (this.type=='horizontal'){
            	
            	
            	
            		div_up_obj.onmouseover = function (TextScrollObj) { return function () { TextScrollObj.scrollLeft(); }} (this);
					div_up_obj.onmouseout = function (TextScrollObj) { return function () { TextScrollObj.stopScroll(); }} (this); 

					div_dn_obj.onmouseover = function (TextScrollObj) { return function () { TextScrollObj.scrollRight(); }} (this); 
					div_dn_obj.onmouseout = function (TextScrollObj) { return function () { TextScrollObj.stopScroll(); }} (this);
            	
            	
            	}
            }
        }
    }

this.stopScroll = function() {
        clearTimeout(this.timeoutID);
    }

this.scrollUp = function() {
        if (this.div_obj) {
            this.scrollCursor = (this.scrollCursor - this.speed) < 0 ? 0 : this.scrollCursor - this.speed;
            this.div_obj.scrollTop = this.scrollCursor;
            this.timeoutID = setTimeout(this.name + ".scrollUp()", 60);
        }
    }


this.scrollDown = function() {
	if (this.div_obj) {
		this.scrollCursor += this.speed;
		this.div_obj.scrollTop = this.scrollCursor;
		if (this.div_obj.scrollTop == this.scrollCursor) {
			this.timeoutID = setTimeout(this.name + ".scrollDown()", 60);
		} else {
		this.scrollCursor = this.div_obj.scrollTop;
		}
	}
}


this.scrollLeft = function() {
		if (this.div_obj) {
			this.scrollCursor = (this.scrollCursor - this.speed) < 0 ? 0 : this.scrollCursor - this.speed;
			this.div_obj.scrollLeft = this.scrollCursor;
			this.timeoutID = setTimeout(this.name + ".scrollLeft()", 5);
		}
}

this.scrollRight = function() {
		if (this.div_obj) {
			this.scrollCursor += this.speed;
			this.div_obj.scrollLeft = this.scrollCursor;
			if (this.div_obj.scrollLeft == this.scrollCursor) {
				this.timeoutID = setTimeout(this.name + ".scrollRight()", 5);
			} else {
				this.scrollCursor = this.div_obj.scrollLeft;
			}
		}
}


this.resetScroll = function() {
        if (this.div_obj) {
            this.div_obj.scrollTop = 0;
            this.scrollCursor = 0;
        }
    }
}


function trim (str, charlist) {
   
 
    var whitespace, l = 0, i = 0;
    str += '';
    
    if (!charlist) {
        // default list
        whitespace = " \n\r\t\f\x0b\xa0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u2028\u2029\u3000";
    } else {
        // preg_quote custom list
        charlist += '';
        whitespace = charlist.replace(/([\[\]\(\)\.\?\/\*\{\}\+\$\^\:])/g, '\$1');
    }
    
    l = str.length;
    for (i = 0; i < l; i++) {
        if (whitespace.indexOf(str.charAt(i)) === -1) {
            str = str.substring(i);
            break;
        }
    }
    
    l = str.length;
    for (i = l - 1; i >= 0; i--) {
        if (whitespace.indexOf(str.charAt(i)) === -1) {
            str = str.substring(0, i + 1);
            break;
        }
    }
    
    return whitespace.indexOf(str.charAt(0)) === -1 ? str : '';
}