//Permite agregar funcionalidad a Show Content Slider de diferentes estilos Scrolling, Fading, QuickScroll etc.
//Author: ISC. Juan Carlos López López
//Date Created: 02/09/2008 13:15

function obout_Show	(
						ob_spl_O,ob_spl_o,ob_spl_Y,
						ob_spl_y,ob_spl_I,ob_spl_i,
						ob_spl_A,ob_spl_a,ob_spl_E,
						ob_spl_e,ob_spl_U,ob_spl_u,
						ob_spl_Z,ob_spl_z,ob_spl_X,
						ob_spl_x,ob_spl_W,ob_spl_w,
						ob_spl_V,ob_spl_v
					)
{ 
	this.id=ob_spl_O; 
	this.ob_spl_T=ob_spl_o;
	this.ob_spl_t= ob_spl_Y.toUpperCase()=="SHOW"? true : false;
	this.ob_spl_S=ob_spl_i; 
	this.ob_spl_s=ob_spl_A; 
	this.ob_spl_R=ob_spl_W; 
	this.ob_spl_r=ob_spl_u; 
	this.ob_spl_Q=ob_spl_a; 
	this.ob_spl_q=ob_spl_E; 
	this.ob_spl_P=ob_spl_e; 
	this.ob_spl_p=ob_spl_U; 
	this.ScrollingMouseOver= false; 
	this.FadingMouseOver= false; 
	this.ob_spl_N=ob_spl_w["CSSShowChangerNumber"]; 
	this.ob_spl_n=ob_spl_w["CSSShowChangerNumberOver"]; 
	this.ob_spl_M=ob_spl_w["CSSShowChangerNumberSelected"]; 
	this.ob_spl_m=ob_spl_V["OnPanelChangeStartEvent"]; 
	this.ob_spl_L=ob_spl_V["OnPanelChangeEndEvent"]; 
	this.ob_spl_l; 
	this.ob_spl_K; 
	this.ob_spl_k=new Array(); 
	this.ob_spl_J; 
	this.ob_spl_j; 
	this.ob_spl_H; 
	this.ob_spl_h=40; 
	this.ob_spl_G=2; 
	this.ob_spl_g= false; 
	this.ob_spl_F; 
	this.ob_spl_f; 
	this.ob_spl_D; 
	this.ob_spl_d= false; 
	this.ob_spl_C= false; 
	this.ob_spl_c=(navigator.userAgent.toLowerCase().indexOf("msie")==-1)? false : true; 
	this.ob_spl_B=((navigator.userAgent.indexOf("Firefox")!=-1) && (parseInt(navigator.userAgent.charAt(navigator.userAgent.indexOf("Firefox")+8))>=1))? true : false; 
	this.ob_spl_b=(navigator.userAgent.toLowerCase().indexOf("opera")!=-1); 
	this.ob_spl_o0=(navigator.appVersion.indexOf("Mac")!=-1)? true : false; 
	this.ob_spl_O0=((document.all) && (this.ob_spl_o0))? true : false; 
	this.ob_spl_l0=((document.all) && (navigator.appVersion.indexOf("MSIE 4.")!=-1))? true : false; 
	this.ob_spl_i0=(navigator.userAgent.indexOf("Safari")!=-1); this.initialize=initialize; 
	this.ob_spl_I0=ob_spl_I0; 
	this.ob_spl_o1=ob_spl_o1; 
	this.ob_spl_O1=ob_spl_O1; 
	this.reveal=reveal; 
	this.revealManual=revealManual; 
	this.ob_spl_l1=ob_spl_l1; 
	this.ob_spl_i1=ob_spl_i1; 
	this.ob_spl_I1=ob_spl_I1; 
	this.ob_spl_o2=ob_spl_o2; 
	this.ob_spl_O2=ob_spl_O2; 
	this.ob_spl_l2=ob_spl_l2; 
	this.ob_spl_i2=ob_spl_i2; 
	this.ob_spl_I2=ob_spl_I2; 
	this.ob_spl_o3=ob_spl_o3; 
	this.ob_spl_O3=ob_spl_O3; 
	this.getLeft=getLeft; 
	this.getTop=getTop; 
	this.ob_spl_l3=ob_spl_l3; 
	this.SafeAddOnload=SafeAddOnload; 
	this.ob_spl_i3=ob_spl_i3; 
	this.ob_spl_I3=new Array(); 
	this.ob_spl_o4= false; 
	this.MoveToPanel=MoveToPanel; 
	this.MoveForward=MoveForward; 
	this.MoveBackward=MoveBackward; 
	this.PauseShow=PauseShow; 
	this.PlayShow=PlayShow; 
	this.CurrentPanel=this.ob_spl_R+1; 
	this.PanelsCount=ob_spl_o; 
	this.TimeBetweenPanels=ob_spl_y; 
	this.ob_spl_O4=ob_spl_I; 
	this.FadingSpeed=ob_spl_Z; 
	this.FadingStep=ob_spl_z; 
	this.ScrollingSpeed=ob_spl_X; 
	this.ScrollingStep=ob_spl_x; 
	this.CurrentImagePath=null; 
	this.ob_spl_l4= {} ; 	
	this.ob_spl_i4=ob_spl_i4; 
	this.ob_spl_I4=ob_spl_I4; 
	if (ob_spl_v)
		this.initialize(); 
	else 
		eval("this.SafeAddOnload(function() {"+this.id+".initialize()}, this);");
}; 
	
function initialize()
{
	if (this.ob_spl_R>(this.ob_spl_T-1))
		this.ob_spl_R=this.ob_spl_T-1; 
	else if (this.ob_spl_R<0)
		this.ob_spl_R=0;
	this.ob_spl_I0(0); 
	if (this.ob_spl_k.length==0)
		return; 
	this.ob_spl_i4(null,this.CurrentPanel); 
	if (this.ob_spl_k.length==1)
		this.ob_spl_t= false; 
	this.ob_spl_l=-1; 
	this.ob_spl_K= false; 
	document.getElementById(this.id).style.display="block"; 
	if (this.ob_spl_q)
	{
		var ob_spl_o5=this.id; 
		this.ob_spl_O3(document.getElementById(this.id),"mouseover",ob_spl_O5= function (){eval(ob_spl_o5+".ScrollingMouseOver=true;");} , false); 
		this.ob_spl_O3(document.getElementById(this.id),"mouseout",ob_spl_O5= function (){eval(ob_spl_o5+".ScrollingMouseOver=false;");} , false); 
	}
	if (this.ob_spl_P)
	{
		var ob_spl_o5=this.id; 
		this.ob_spl_O3(document.getElementById(this.id),"mouseover",ob_spl_O5= function (){eval(ob_spl_o5+".FadingMouseOver=true;");} , false);
		this.ob_spl_O3(document.getElementById(this.id),"mouseout",ob_spl_O5= function (){eval(ob_spl_o5+".FadingMouseOver=false;");} , false); 
	} 
	this.ob_spl_i1(this.ob_spl_R); 
	if (this.ob_spl_t)
	{ 
		this.ob_spl_O1("init"); 
	}
	this.ob_spl_i2(this.ob_spl_I2(this.ob_spl_R));
	this.ob_spl_d=document.getElementById(this.id+"_autoplaypause")!=null? true : false; 
	this.ob_spl_I4(null,this.CurrentPanel); } ; 
	function ob_spl_l5()
	{
		if (document.all){if (this.ob_spl_c)
		{ 
			this.ob_spl_k[this.CurrentPanel].style.filter="alpha(opacity=1)"; 
		}
		else 
		{ 
			this.ob_spl_k[this.CurrentPanel].style.opacity=0; 
		}
	}
	else 
	{ 
		this.ob_spl_k[CurrentPanel].style.opacity=.1e-1; 
	} 
	this.ob_spl_k[this.CurrentPanel].style.visibility="hidden"; 
}
	
function ob_spl_I0(ob_spl_i5)
{
	if (ob_spl_i5==this.ob_spl_T)
		return; 
	else 
	{
		var ob_spl_I5=document.getElementById(this.id+"_"+ob_spl_i5); 
		this.ob_spl_k[this.ob_spl_k.length]=ob_spl_I5; 
		if (this.ob_spl_c && this.ob_spl_r=="Bottom" && document.compatMode && document.compatMode!="BackCompat")
		{
			var ob_spl_o6=ob_spl_I5.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.style.pixelHeight; 
			var ob_spl_O6=0; 
			try 
			{
				ob_spl_O6=ob_spl_I5.parentElement.parentElement.parentElement.parentElement.children[1].children[0].style.height.replace(/px/i,"")*1; 
			}
			catch (ob_spl_l6)
			{}
			ob_spl_I5.parentElement.parentElement.style.height=(ob_spl_o6-ob_spl_O6)+"px"; 
		}
		if (ob_spl_i5!=this.ob_spl_R)
		{
			ob_spl_I5.style.visibility="hidden"; 
			if (ob_spl_I5.childNodes[0] && ob_spl_I5.childNodes[0].src && this.ob_spl_B)
				ob_spl_I5.childNodes[0].src=ob_spl_I5.childNodes[0].src; 
		}
		else 
		{ 
			this.ob_spl_i2(ob_spl_I5);
		}
		ob_spl_I5.style.left="0px"; 
		ob_spl_i5++; 
		this.ob_spl_I0(ob_spl_i5);
	}
}; 
	
function ob_spl_I2(index)
{
	if (index==(this.ob_spl_T-1))index=0;
	else 
		index++; 
	return this.ob_spl_k[index]; 
}

function ob_spl_o3(index)
{
	return this.ob_spl_k[index]; 
}
	
function ob_spl_i2(ob_spl_I5)
{
	var ob_spl_i6=ob_spl_I5.attributes["imagepath"]; 
	if (this.ob_spl_i0)
		ob_spl_i6=ob_spl_I5.attributes[0]; 
	if (ob_spl_i6 && ob_spl_I5.childNodes.length==0)
	{
		var ob_spl_I6=ob_spl_i6.value;
		this.ob_spl_l4[ob_spl_I5.id]=ob_spl_I6; 
		var ob_spl_o7=document.createElement("img"); 
		ob_spl_o7.src=ob_spl_I6; 
		ob_spl_o7.alt="Image: "+ob_spl_I6;
		ob_spl_o7.border="0"; 
		ob_spl_I5.appendChild(ob_spl_o7); 
	}
	if (this.CurrentImagePath==null)
		this.CurrentImagePath=this.ob_spl_l4[this.id+"_"+(this.CurrentPanel-1)]; 
}
	
function ob_spl_o1()
{
	if (this.ob_spl_l==-1)
		this.ob_spl_l=this.ob_spl_R; 
	else 
		this.ob_spl_l++; 
	if (this.ob_spl_l==this.ob_spl_k.length)
		this.ob_spl_l=0; 
	this.ob_spl_K=this.ob_spl_l+1;
	if (this.ob_spl_K==this.ob_spl_k.length)
		this.ob_spl_K=0; 
};
	
function ob_spl_O1(ob_spl_O7)
{
	var ob_spl_l7=this.ob_spl_l;
	var ob_spl_i7=this.ob_spl_K; 
	switch (this.ob_spl_S)
	{
		case "None":
			this.ob_spl_o1(); 
			this.ob_spl_k[this.ob_spl_l].style.zIndex=1; 
			this.ob_spl_k[this.ob_spl_l].style.visibility="visible"; 
			break; 
		case "Fading": 
			this.ob_spl_o1(); 
			if (ob_spl_O7=="init")
				this.ob_spl_k[this.ob_spl_l].style.zIndex=1; 
			else 
				this.ob_spl_k[this.ob_spl_K].style.zIndex=1; 
			this.ob_spl_k[this.ob_spl_K].style.visibility="visible"; 
			if (document.all)
			{
				if (this.ob_spl_c)
				{ 
					this.ob_spl_k[this.ob_spl_l].style.filter="alpha(opacity=100)"; 
					this.ob_spl_k[this.ob_spl_K].style.filter="alpha(opacity=1)";
				}
				else 
				{ 
					this.ob_spl_k[this.ob_spl_l].style.opacity=1;
					this.ob_spl_k[this.ob_spl_K].style.opacity=0; 
				}
			}
			else 
			{ 
				this.ob_spl_k[this.ob_spl_l].style.opacity=.99; 
				this.ob_spl_k[this.ob_spl_K].style.opacity=.1e-1; 
			} 
			this.ob_spl_J=100; 
			break; 
		case "Scrolling":
		case "QuickScroll":
			this.ob_spl_o1(); 
			this.ob_spl_k[this.ob_spl_l].style.zIndex=1; 
			this.ob_spl_k[this.ob_spl_l].style.visibility="visible"; 
			this.ob_spl_j=0;
			switch (this.ob_spl_s)
			{
				case "Left":
				case "Right": 
					this.ob_spl_H=this.ob_spl_k[this.ob_spl_l].offsetWidth; 
					break; 
				case "Top":
				case "Bottom": 
					this.ob_spl_H=this.ob_spl_k[this.ob_spl_l].offsetHeight; 
					break; 
			}
			break; 
	}
	if (this.ob_spl_t)
	{
		clearTimeout(this.ob_spl_F); 
		if (ob_spl_O7=="init")
			this.ob_spl_F=setTimeout(this.id+".reveal()",this.ob_spl_O4); 
		else if (this.ob_spl_g)
			this.ob_spl_F=setTimeout(this.id+".reveal()",this.TimeBetweenPanels); 
		this.ob_spl_D=this.id+".showTimerId = setTimeout('"+this.id+".reveal()', "+this.TimeBetweenPanels+")"; 
		this.ob_spl_g= true; 
	}
	if (ob_spl_O7!="init")
	{ 
		this.ob_spl_I4(ob_spl_l7+1,ob_spl_i7+1); 
		if (this.ob_spl_B && (this.ob_spl_S=="Scrolling" || this.ob_spl_S=="QuickScroll"))
		{ 
			this.ob_spl_k[this.ob_spl_l].style.overflow="auto"; 
			this.ob_spl_k[this.ob_spl_K].style.overflow="auto"; 
		} 
		this.ob_spl_i2(this.ob_spl_I2(this.ob_spl_l)); 
	} 
	this.ob_spl_i1(this.ob_spl_l);
}; 

function reveal(ob_spl_O7)
{
	if (ob_spl_O7!="reveal_step")
	{
		if (this.ob_spl_l==this.ob_spl_K)
		{
			if (this.ob_spl_l==this.ob_spl_k.length-1)
				this.ob_spl_K=0; 
			else this.ob_spl_K=this.ob_spl_l+1; 
			this.ob_spl_l1(); 
		} 
		this.ob_spl_i4(this.ob_spl_l+1,this.ob_spl_K+1);
		if (this.ob_spl_B && (this.ob_spl_S=="Scrolling" || this.ob_spl_S=="QuickScroll"))
		{ 
			this.ob_spl_k[this.ob_spl_l].style.overflow="hidden"; 
			this.ob_spl_k[this.ob_spl_K].style.overflow="hidden"; 
		} 
		this.CurrentPanel=this.ob_spl_K+1;
		this.CurrentImagePath=this.ob_spl_l4[this.id+"_"+(this.CurrentPanel-1)]; 
		if (this.ob_spl_S=="Scrolling" || this.ob_spl_S=="QuickScroll")
		{
			switch (this.ob_spl_s)
			{
				case "Left":
				case "Right": 
					this.ob_spl_k[this.ob_spl_K].style.left=""; 
					this.ob_spl_k[this.ob_spl_l].style.left=""; 
				break; 
				case "Top":
				case "Bottom": 
					this.ob_spl_k[this.ob_spl_K].style.top=""; 
					this.ob_spl_k[this.ob_spl_l].style.top="";
					break; 
			}			
		}
		if (this.ob_spl_S=="QuickScroll")
		{
			switch (this.ob_spl_s)
			{
				case "Left":
				case "Right": 
					this.ob_spl_O2(this.ob_spl_k[this.ob_spl_l].offsetWidth-this.ob_spl_h); 
					break; 
				case "Top":
				case "Bottom": 
					this.ob_spl_O2(this.ob_spl_k[this.ob_spl_l].offsetHeight-this.ob_spl_h); 
					break; 
			}
		}
	} 
	this.ob_spl_k[this.ob_spl_K].style.zIndex=2; 
	switch (this.ob_spl_S)
	{
		case "None": 
			this.ob_spl_k[this.ob_spl_l].style.visibility="hidden"; 
			this.ob_spl_O1(); 
			break; 
		case "Fading":
			if (!this.FadingMouseOver)
				this.ob_spl_I1(); 
			if (this.ob_spl_J>0)
			{
				clearTimeout(this.ob_spl_f); 
				this.ob_spl_f=setTimeout(this.id+".reveal('reveal_step')",(2000/this.FadingSpeed)); 
			}
			else 
			{ 
				this.ob_spl_k[this.ob_spl_l].style.visibility="hidden"; 
				this.ob_spl_O1(); 
			}
			break; 
		case "Scrolling":
			if (!this.ScrollingMouseOver)
				this.ob_spl_o2(); 
			switch (this.ob_spl_s)
			{
				case "Left":
				case "Right":
					var ob_spl_I7=this.ob_spl_k[this.ob_spl_l].offsetWidth+this.ob_spl_j>0;
					break; 
				case "Top":
				case "Bottom":
					var ob_spl_I7=this.ob_spl_k[this.ob_spl_l].offsetHeight+this.ob_spl_j>0; 
					break; 
			}
			if (ob_spl_I7)
			{
				clearTimeout(this.ob_spl_f);
				this.ob_spl_f=setTimeout(this.id+".reveal('reveal_step')",(1000/this.ScrollingSpeed)); 
			}
			else 
			{
				this.ob_spl_k[this.ob_spl_l].style.visibility="hidden"; 
				this.ob_spl_O1(); 
			}
			break; 
		case "QuickScroll": 
			this.ob_spl_O2(); 
			switch (this.ob_spl_s)
			{
				case "Left":
				case "Right":
					var ob_spl_I7=this.ob_spl_k[this.ob_spl_l].offsetWidth+this.ob_spl_j>0; 
					break; 
				case "Top":
				case "Bottom":
					var ob_spl_I7=this.ob_spl_k[this.ob_spl_l].offsetHeight+this.ob_spl_j>0; 
					break;
			}
			if (ob_spl_I7)
			{
				clearTimeout(this.ob_spl_f);
				this.ob_spl_f=setTimeout(this.id+".reveal('reveal_step')",(1000/this.ScrollingSpeed)); 
			}
			else 
			{ 
				this.ob_spl_k[this.ob_spl_l].style.visibility="hidden"; 
				this.ob_spl_O1();
			}
			break;
	}
} ; 
		
function revealManual(ob_spl_O7)
{
	if (ob_spl_O7!="reveal_step")
	{ 
		this.ob_spl_i4(this.ob_spl_l+1,this.ob_spl_K+1); 
		this.ob_spl_i2(this.ob_spl_o3(this.ob_spl_K)); 
		if (this.ob_spl_B && (this.ob_spl_S=="Scrolling" || this.ob_spl_S=="QuickScroll"))
		{ 
			this.ob_spl_k[this.ob_spl_l].style.overflow="hidden"; 
			this.ob_spl_k[this.ob_spl_K].style.overflow="hidden"; 
		} 
		this.CurrentPanel=this.ob_spl_K+1; 
		this.CurrentImagePath=this.ob_spl_l4[this.id+"_"+(this.CurrentPanel-1)]; 
		if (this.ob_spl_S=="Scrolling" || this.ob_spl_S=="QuickScroll")
		{
			switch (this.ob_spl_s)
			{
				case "Left":
				case "Right": 
					this.ob_spl_k[this.ob_spl_K].style.left=""; 
					this.ob_spl_k[this.ob_spl_l].style.left=""; 
					break; 
				case "Top":
				case "Bottom": 
					this.ob_spl_k[this.ob_spl_K].style.top=""; 
					this.ob_spl_k[this.ob_spl_l].style.top=""; 
					break; 
			}
		}
		if (this.ob_spl_S=="QuickScroll")
		{
			switch (this.ob_spl_s)
			{
				case "Left":
				case "Right": 
					this.ob_spl_O2(this.ob_spl_k[this.ob_spl_l].offsetWidth-this.ob_spl_h); 
					break; 
				case "Top":
				case "Bottom": 
					this.ob_spl_O2(this.ob_spl_k[this.ob_spl_l].offsetHeight-this.ob_spl_h);
					break; 
			}
		}
	} 
	this.ob_spl_k[this.ob_spl_K].style.zIndex=2; 
	switch (this.ob_spl_S)
	{
		case "None": 
			this.ob_spl_k[this.ob_spl_l].style.visibility="hidden"; 
			this.ob_spl_I4(this.ob_spl_l+1,this.ob_spl_K+1); 
			this.ob_spl_l=this.ob_spl_K; 
			this.ob_spl_i2(this.ob_spl_I2(this.ob_spl_l)); 
			break; 
		case "Fading": 
			this.ob_spl_I1(); 
			if (this.ob_spl_J>0)
			{
				clearTimeout(this.ob_spl_f);
				this.ob_spl_f=setTimeout(this.id+".revealManual('reveal_step')",(2000/this.FadingSpeed)); 
			}
			else 
			{
				this.ob_spl_k[this.ob_spl_l].style.visibility="hidden"; 
				this.ob_spl_I4(this.ob_spl_l+1,this.ob_spl_K+1); 
				this.ob_spl_l=this.ob_spl_K; this.ob_spl_i2(this.ob_spl_I2(this.ob_spl_l)); 
			}
			break; 
		case "Scrolling": 
			this.ob_spl_o2(); 
			switch (this.ob_spl_s)
			{
				case "Left":
				case "Right":
					var ob_spl_I7=this.ob_spl_k[this.ob_spl_l].offsetWidth+this.ob_spl_j>0;
					break; 
				case "Top":
				case "Bottom":
					var ob_spl_I7=this.ob_spl_k[this.ob_spl_l].offsetHeight+this.ob_spl_j>0; 
					break; 
			}
			if (ob_spl_I7)
			{
				clearTimeout(this.ob_spl_f); 
				this.ob_spl_f=setTimeout(this.id+".revealManual('reveal_step')",(1000/this.ScrollingSpeed)); 
			}
			else 
			{ 
				this.ob_spl_k[this.ob_spl_l].style.visibility="hidden"; 
				this.ob_spl_I4(this.ob_spl_l+1,this.ob_spl_K+1); 
				if (this.ob_spl_B)
				{ 
					this.ob_spl_k[this.ob_spl_l].style.overflow="auto";
					this.ob_spl_k[this.ob_spl_K].style.overflow="auto"; 
				}
				this.ob_spl_l=this.ob_spl_K;
				this.ob_spl_i2(this.ob_spl_I2(this.ob_spl_l)); 
			}
			break; 
		case "QuickScroll": 
			this.ob_spl_O2();
			switch (this.ob_spl_s)
			{
				case "Left":
				case "Right":
					var ob_spl_I7=this.ob_spl_k[this.ob_spl_l].offsetWidth+this.ob_spl_j>0; 
					break; 
				case "Top":
				case "Bottom":
					var ob_spl_I7=this.ob_spl_k[this.ob_spl_l].offsetHeight+this.ob_spl_j>0; 
					break; 
			}
			if (ob_spl_I7)
			{
				var ob_spl_o8=10;
				clearTimeout(this.ob_spl_F); 
				this.ob_spl_F=setTimeout(this.id+".revealManual('reveal_step')",ob_spl_o8); 
			}
			else 
			{ 
				this.ob_spl_k[this.ob_spl_l].style.visibility="hidden"; 
				this.ob_spl_I4(this.ob_spl_l+1,this.ob_spl_K+1); 
				if (this.ob_spl_B)
				{ 
					this.ob_spl_k[this.ob_spl_l].style.overflow="auto"; 
					this.ob_spl_k[this.ob_spl_K].style.overflow="auto"; 
				} 
				this.ob_spl_l=this.ob_spl_K;
				this.ob_spl_i2(this.ob_spl_I2(this.ob_spl_l)); 
			}
			break; 
	}
}; 

function ob_spl_I1()
{ 
	this.ob_spl_J=this.ob_spl_J-this.FadingStep; 
	if (document.all)
	{
		if (this.ob_spl_c)
		{ 
			this.ob_spl_k[this.ob_spl_l].style.filter="alpha(opacity="+this.ob_spl_J+")"; 
			this.ob_spl_k[this.ob_spl_K].style.filter="alpha(opacity="+(100-this.ob_spl_J)+")"; 
		}
		else 
		{ 
			this.ob_spl_k[this.ob_spl_l].style.opacity=Math.max(0,this.ob_spl_J/100); 
			this.ob_spl_k[this.ob_spl_K].style.opacity=Math.min(1,(1-(this.ob_spl_J/100))); 
		}
	}
	else 
	{ 
		this.ob_spl_k[this.ob_spl_l].style.opacity=Math.max(.1e-1,this.ob_spl_J/100);
		this.ob_spl_k[this.ob_spl_K].style.opacity=Math.min(.99,(1-(this.ob_spl_J/100))); 
	}
}

function ob_spl_o2()
{ 
	this.ob_spl_j=this.ob_spl_j-this.ScrollingStep; 
	this.ob_spl_H=this.ob_spl_H-this.ScrollingStep; 
	if (this.ob_spl_H<0)
		this.ob_spl_H=0;
	switch (this.ob_spl_s)
	{
		case "Left": 
			this.ob_spl_k[this.ob_spl_l].style.left=this.ob_spl_j+"px"; 
			this.ob_spl_k[this.ob_spl_K].style.left=this.ob_spl_H+"px";
			break; 
		case "Right": 
			this.ob_spl_k[this.ob_spl_l].style.right=this.ob_spl_j+"px"; 
			this.ob_spl_k[this.ob_spl_K].style.right=this.ob_spl_H+"px"; 
			break;
		case "Top": 
			this.ob_spl_k[this.ob_spl_l].style.top=this.ob_spl_j+"px"; 
			this.ob_spl_k[this.ob_spl_K].style.top=this.ob_spl_H+"px"; 
			break; 
		case "Bottom": 
			this.ob_spl_k[this.ob_spl_l].style.bottom=this.ob_spl_j+"px"; 
			this.ob_spl_k[this.ob_spl_K].style.bottom=this.ob_spl_H+"px";
			break; 
	} 
	this.ob_spl_k[this.ob_spl_K].style.zIndex=1; 
	this.ob_spl_k[this.ob_spl_K].style.visibility="visible"; 
}
			
function ob_spl_O2(ob_spl_G)
{
	var ob_spl_O8=this.ob_spl_G; 
	if (ob_spl_G!=null)
		ob_spl_O8=ob_spl_G; 
	this.ob_spl_j=this.ob_spl_j-ob_spl_O8; 
	this.ob_spl_H=this.ob_spl_H-ob_spl_O8; 
	if (this.ob_spl_H<0)
		this.ob_spl_H=0; 
	switch (this.ob_spl_s)
	{
		case "Left": 
			this.ob_spl_k[this.ob_spl_l].style.left=this.ob_spl_j+"px";
			this.ob_spl_k[this.ob_spl_K].style.left=this.ob_spl_H+"px"; 
			break; 
		case "Right": 
			this.ob_spl_k[this.ob_spl_l].style.right=this.ob_spl_j+"px"; 
			this.ob_spl_k[this.ob_spl_K].style.right=this.ob_spl_H+"px"; 
			break;
		case "Top": 
			this.ob_spl_k[this.ob_spl_l].style.top=this.ob_spl_j+"px";
			this.ob_spl_k[this.ob_spl_K].style.top=this.ob_spl_H+"px"; 
			break; 
		case "Bottom": 
			this.ob_spl_k[this.ob_spl_l].style.bottom=this.ob_spl_j+"px";
			this.ob_spl_k[this.ob_spl_K].style.bottom=this.ob_spl_H+"px"; 
			break;
	} 
	this.ob_spl_k[this.ob_spl_K].style.zIndex=1; 
	this.ob_spl_k[this.ob_spl_K].style.visibility="visible";
}
			
function ob_spl_l1()
{
	switch (this.ob_spl_S)
	{
		case "Fading": 
			this.ob_spl_J=100;
			break; 
		case "Scrolling":
		case "QuickScroll": 
			this.ob_spl_j=0; 
			switch (this.ob_spl_s)
			{
				case "Left":
				case "Right": 
					this.ob_spl_H=this.ob_spl_k[this.ob_spl_l].offsetWidth; 
					break; 
				case "Top":
				case "Bottom": 
					this.ob_spl_H=this.ob_spl_k[this.ob_spl_l].offsetHeight; 
					break; 
			}
			break; 
	}
	this.ob_spl_k[this.ob_spl_K].style.visibility="visible"; 
} ;
			
function MoveToPanel(ob_spl_l)
{
	if (this.ob_spl_C)
		return; 
	this.PauseShow();
	if (this.ob_spl_k.length<2)
		return; 
	ob_spl_l--; 
	if (this.ob_spl_l==ob_spl_l || (this.ob_spl_R==ob_spl_l && this.ob_spl_l==-1))
		return;
	if (this.ob_spl_l==-1)
		this.ob_spl_l=this.ob_spl_R; 
	this.ob_spl_K=ob_spl_l; 
	this.ob_spl_i1(this.ob_spl_K); 
	if (!this.ob_spl_t && (this.ob_spl_S=="Scrolling" || this.ob_spl_S=="QuickScroll") && !this.ob_spl_Q)
	{
		switch (this.ob_spl_r)
		{
			case "Top":
			case "Bottom":
				if (this.ob_spl_K>this.ob_spl_l)
					this.ob_spl_s="Right"; 
				else 
					this.ob_spl_s="Left";
				break; 
			case "Left":
			case "Right":
				if (this.ob_spl_K>this.ob_spl_l)
					this.ob_spl_s="Top";
				else 
					this.ob_spl_s="Bottom"; 
				break;
		}
	} 
	this.ob_spl_l1();
	this.revealManual(); 
	if (!this.ob_spl_d)
		this.PlayShow(); 
} ; 
			
			
function MoveForward()
{
	if (this.ob_spl_k.length<2)
		return; 
	if (this.ob_spl_C)
		return; 
	this.PauseShow(); 
	this.ob_spl_l2("f"); 
	if (!this.ob_spl_d)this.PlayShow(); 
} ; 
			
function MoveBackward()
{
	if (this.ob_spl_k.length<2)
		return; 
	if (this.ob_spl_C)
		return; 
	this.PauseShow(); 
	this.ob_spl_l2("b");
	if (!this.ob_spl_d)
		this.PlayShow(); 
} ;
			
function PauseShow()
{
	if (this.ob_spl_g)
	{
		clearTimeout(this.ob_spl_F); 
		if (this.ob_spl_d)
		{
			document.getElementById(this.id+"_autoplaypause").style.display="none";
			document.getElementById(this.id+"_autoplaystart").style.display="inline"; 
		} 
		this.ob_spl_g= false; 
	}
}
			
function PlayShow()
{
	if (this.ob_spl_D!=null && !this.ob_spl_g)
	{
		clearTimeout(this.ob_spl_F); 
		eval(this.ob_spl_D); 
		if (this.ob_spl_d)
		{
			document.getElementById(this.id+"_autoplaypause").style.display="inline";
			document.getElementById(this.id+"_autoplaystart").style.display="none"; 
		}
		this.ob_spl_g= true; 
	}
}
			
function ob_spl_i4(ob_spl_l8,ob_spl_i8)
{ 
	this.ob_spl_C= true; 
	try
	{
		eval(this.ob_spl_m)(ob_spl_l8,ob_spl_i8);
	}
	catch (ob_spl_l6)
	{}
}
			
function ob_spl_I4(ob_spl_l8,ob_spl_i8)
{ 
	this.ob_spl_C= false; 
	try 
	{
		eval(this.ob_spl_L)(ob_spl_l8,ob_spl_i8); 
	}
	catch (ob_spl_l6)
	{}
}
			
function ob_spl_l2(type)
{
	if (this.ob_spl_l==-1)
		this.ob_spl_l=this.ob_spl_R; 
	switch (type)
	{
		case "f":
			if (!this.ob_spl_t && (this.ob_spl_S=="Scrolling" || this.ob_spl_S=="QuickScroll") && !this.ob_spl_Q)
			{
				switch (this.ob_spl_r)
				{
					case "Top":
					case "Bottom": 
						this.ob_spl_s="Right"; 
						break; 
					case "Left":
					case "Right": 
						this.ob_spl_s="Top"; 
						break; 
				}
			} 
			this.ob_spl_K=this.ob_spl_l+1;
			if (this.ob_spl_K==this.ob_spl_k.length)
				this.ob_spl_K=0; 
			break; 
		case "b":
			if (!this.ob_spl_t && (this.ob_spl_S=="Scrolling" || this.ob_spl_S=="QuickScroll") && !this.ob_spl_Q)
			{
				switch (this.ob_spl_r)
				{
					case "Top":
					case "Bottom": 
						this.ob_spl_s="Left"; 
						break;
					case "Left":
					case "Right": 
						this.ob_spl_s="Bottom"; 
						break;
				}
			} 
			this.ob_spl_K=this.ob_spl_l-1; 
			if (this.ob_spl_K==-1)
				this.ob_spl_K=this.ob_spl_k.length-1;
			break; 
		}
	this.ob_spl_i1(this.ob_spl_K);
	this.ob_spl_l1(); this.revealManual();
} ; 
			
function ob_spl_i1(index)
{
	var ob_spl_N=this.ob_spl_N; 
	var ob_spl_n=this.ob_spl_n; 
	var ob_spl_M=this.ob_spl_M; 
	for (i=0; i<this.ob_spl_k.length; i++)
	{
		var ob_spl_I8=document.getElementById(this.id+"_panelnumber_"+i); 
		if (!ob_spl_I8)
			break; 
		if (i==index)
		{
			if (ob_spl_I8.className!=ob_spl_M)
				ob_spl_I8.className=ob_spl_M;
			ob_spl_I8.onmouseover= function (){} ;
			ob_spl_I8.onmouseout= function (){} ; 
		}
		else 
		{
			if (ob_spl_I8.className!=ob_spl_N)
				ob_spl_I8.className=ob_spl_N; 
			ob_spl_I8.onmouseover= function ()
				{
					this.className=ob_spl_n;
				} ;
			ob_spl_I8.onmouseout= function ()
				{ 
					this.className=ob_spl_N; 
				} ; 
		}
	}
}
			
function ob_spl_O3(ob_spl_o9,ob_spl_O9,ob_spl_l9,ob_spl_i9)
{
	if (ob_spl_o9.addEventListener)
	{
		ob_spl_o9.addEventListener(ob_spl_O9,ob_spl_l9,ob_spl_i9); 
		return true; 
	}
	else if (ob_spl_o9.attachEvent)
	{
		if (ob_spl_i9)
		{
			alert("IE does not support event capturing!"); 
			return false; 
		}
		else 
		{
			var ob_spl_I9= function ()
			{
				ob_spl_l9.apply(ob_spl_o9,[window.event]); 
			};
			if (!ob_spl_o9["ref"+ob_spl_O9])
				ob_spl_o9["ref"+ob_spl_O9]=[]; 
			else 
			{
				for (var ref in ob_spl_o9["ref"+ob_spl_O9])
				{
					if (ob_spl_o9["ref"+ob_spl_O9][ref].ob_spl_l9 === ob_spl_l9)
						return false; 
				}
			}
			var ob_spl_oa=ob_spl_o9.attachEvent("on"+ob_spl_O9,ob_spl_I9); 
			if (ob_spl_oa)
				ob_spl_o9["ref"+ob_spl_O9].push( {ob_spl_l9:ob_spl_l9,ob_spl_I9:ob_spl_I9 } );
			return ob_spl_oa; 
		}
	}
	else 
	{
		alert("Handler could not be attached"); 
		return false; 
	}
}
			
function SafeAddOnload(ob_spl_Oa,ob_spl_la)
{
	if (this.ob_spl_O0 && this.ob_spl_l0)
	{
		window.onload=( function (){ob_spl_la.ob_spl_i3();} );
		this.ob_spl_I3[this.ob_spl_I3.length]=ob_spl_Oa;
	}
	else if (window.onload)
	{
		if (this.ob_spl_o4== false)
		{ 
			this.ob_spl_o4= true; 
			this.ob_spl_I3[0]=window.onload;
			window.onload=( function (){ob_spl_la.ob_spl_i3();} ); 
		}
		this.ob_spl_I3[this.ob_spl_I3.length]=ob_spl_Oa; 
	}
	else 
	{
		window.onload=ob_spl_Oa; 
	}
} ; 
			
function ob_spl_i3()
{
	for (var i=0; i<this.ob_spl_I3.length; i++)
	{ 
		this.ob_spl_I3[i](); 
	}
} ; 
			
function getLeft(ob_spl_o9)
{
	var ob_spl_ia=0; 
	var ob_spl_Ia= false; 
	if (!ob_spl_o9)
		return 0; 
	if (this.ob_spl_c || this.ob_spl_b)
	{
		var borderLeft=this.ob_spl_l3(ob_spl_o9,"border-left-width").replace("px",""); 
		if (!isNaN(parseInt(borderLeft)))
			ob_spl_ia+=parseInt(borderLeft); 
	}
	if (ob_spl_o9.offsetParent)
	{
		while (ob_spl_o9.offsetParent)
		{
			if (typeof ob_spl_o9.style!="undefined" && typeof ob_spl_o9.style.position!="undefined" && ob_spl_o9.style.position.toLowerCase()=="absolute")
				ob_spl_Ia= true; 
			ob_spl_ia+=ob_spl_o9.offsetLeft; 
			ob_spl_o9=ob_spl_o9.offsetParent; 
			
		}
	}
	else if (ob_spl_o9.x)
		ob_spl_ia+=ob_spl_o9.x; 
	if (this.ob_spl_i0 && !ob_spl_Ia)
		ob_spl_ia+=document.body.offsetLeft;
	return ob_spl_ia; 
} ; 

function getTop(ob_spl_o9)
{
	var ob_spl_ia=0; 
	if (this.ob_spl_B== true)
	{
		var ob_spl_ob=new Array(); 
		var ob_spl_Ob=ob_spl_o9; 
	}
	if (ob_spl_o9.offsetParent)
	{
		while (ob_spl_o9.offsetParent)
		{
			if (ob_spl_o9.nodeName!="TR" || this.ob_spl_i0== false)
			{
				ob_spl_ia+=ob_spl_o9.offsetTop-(ob_spl_o9.nodeName!="TR"?ob_spl_o9.scrollTop: 0);
			}
			else 
			{
				ob_spl_ia+=ob_spl_o9.firstChild.offsetTop-ob_spl_o9.firstChild.scrollTop; 
			}
			if (this.ob_spl_c || this.ob_spl_b)
			{
				if (!isNaN(parseInt(ob_spl_o9.currentStyle.borderTopWidth)))
				{
					ob_spl_ia+=parseInt(ob_spl_o9.currentStyle.borderTopWidth);
				}
			}
			if (this.ob_spl_B== true)
			{
				ob_spl_ob.push(ob_spl_o9);						
			}
			ob_spl_o9=ob_spl_o9.offsetParent; 
		}
	}
	else if (ob_spl_o9.y)
	{
		ob_spl_ia+=ob_spl_o9.y; 
	}
	if (this.ob_spl_B== true && ob_spl_ob.length>0)
	{
		ob_spl_o9=ob_spl_Ob; 
		while (ob_spl_o9.parentNode)
		{
			if (ob_spl_o9.nodeName=="DIV" && ob_spl_o9.style.position!="absolute" && ob_spl_o9.style.position!="relative" && ob_spl_o9.style.position!="fixed")
			{
				var ob_spl_lb= false;
				for (var ob_spl_ib=0; ob_spl_ib<ob_spl_ob.length; ob_spl_ib++)
				{
					if (ob_spl_ob[ob_spl_ib]==ob_spl_o9)
					{
						ob_spl_lb= true; 
						break;
					}
				}
				if (ob_spl_lb== false)
				{
					ob_spl_ia-=ob_spl_o9.scrollTop; 
				}
			}
			ob_spl_o9=ob_spl_o9.parentNode; 
		}
	}
	return ob_spl_ia; 
} ;
			
function ob_spl_l3(ob_spl_Ib,ob_spl_oc)
{
	var ob_spl_Oc=""; 
	if (document.defaultView && document.defaultView.getComputedStyle)
		ob_spl_Oc=document.defaultView.getComputedStyle(ob_spl_Ib,"").getPropertyValue(ob_spl_oc); 
	else if (ob_spl_Ib.currentStyle)
	{
		try 
		{
			ob_spl_oc=ob_spl_oc.replace(/-(\w)/g, function (ob_spl_lc,ob_spl_ic)
													{
														return ob_spl_ic.toUpperCase(); 
													} ); 
			ob_spl_Oc=ob_spl_Ib.currentStyle[ob_spl_oc]; 
		}
		catch (ob_spl_l6)
		{}
	}
	return ob_spl_Oc; 
} ;


function showContentOpenWindow(url)
{
	window.open(url);
}