/* FOR 3 TABS SCROLER *///////////////////////////////////////////////////////
window.onload = function(){

    var o = {
        loadingImage: 'images/loading-light.gif'
    };

    Shadowbox.init(o);

};

///////////sub nav with "Pre- Treatment Condition" and "Treatment///////////////////////////////////////////////
/*
	window.onload=function(){
		
		changeFormat('cont_1');
	}
*/
//////////////////////////////////////////////////////////

		Fx.Properties = Fx.Styles.extend({

			increase: function(){
				for (var p in this.now) this.element[p] = this.now[p];
			}
		});

		Fx.FlyingScroller = Fx.Properties.extend({

			initialize: function(el, options){
				this.parent(el, options);
				this.options = Object.extend(this.options || {}, Object.extend({
					paddingLeft: 0,
					paddingTop: 0
				}, options || {}));
			},

			toElement: function(el, paddingLeft, paddingTop){
				this.goTo(el.offsetLeft - (paddingLeft || this.options.paddingLeft || 0), el.offsetTop - (paddingTop || this.options.paddingTop || 0));
			},

			goTo: function(x, y){
				this.custom({
					'scrollLeft': [this.element.scrollLeft, x],
					'scrollTop': [this.element.scrollTop, y]
				});
			}
		});
//////////////////////////////////////////////////////////////////////////////////////////////////////


	function changeFormat(idName){
		
		//alert(idName);
		var part_id="cont_";
		for(var i=1;i<=3;i++){
			//alert("Tanmoy");
			//alert(part_id+i);
			if(idName==part_id+i){
				document.getElementById(idName).className="select2fix";
				//alert('if');
			}
			else {
				document.getElementById('cont_'+i).className="select2";
				//alert('else');
			}
			//document.getElementById('cont_2').className="";
		}
	}
//////////////////////////////////////////////////////////////////////////////////////////////////////


