vis_files/button.js
/// Fires when a page is changed
Fires when a page is changed
Fires when a page is changed
function changepage(pagenew, s, ss, sss)
{
	var pagest=page;
	playtime = 0; playing = 0;
	sourceon = 0; slidey = 0;
	tabx_slide = 0; taby_slide = 0;
	selparam_table = null; selparam_name = "";
	seleq = null; seleq_name = ""; 
	paramsel = ""; check = 0;
	if(pagenew != -1) page = pagenew;
	var p = page;
	ps = pagesub[p]; if(s != -1){ ps = s; pagesub[page] = ps;}
	pss = pagesubsub[p][ps]; if(ss != -1){ pss = ss; pagesubsub[p][ps] = pss;}
	psss = pagesubsubsub[p][ps][pss]; if(sss != -1){ psss = sss; pagesubsubsub[p][ps][pss] = psss;}
	var ob = tree[p].child[ps].child[pss];
	var len = ob.child.length;
	if(len > submax){
		var j2min = Math.floor(len*ob.y*1.001);
		if(psss < j2min) ob.y = psss/len;
		if(psss >= j2min+submax-1) ob.y = (psss-submax+1+0.1)/len;
	}
	buttoninit();
}
function changepage ( pagenew , s , ss , sss ) { var pagest = page ; playtime = 0 ; playing = 0 ; sourceon = 0 ; slidey = 0 ; tabx_slide = 0 ; taby_slide = 0 ; selparam_table = null ; selparam_name = "" ; seleq = null ; seleq_name = "" ; paramsel = "" ; check = 0 ; if ( pagenew != - 1 ) page = pagenew ; var p = page ; ps = pagesub [ p ] ; if ( s != - 1 ) { ps = s ; pagesub [ page ] = ps ; } pss = pagesubsub [ p ] [ ps ] ; if ( ss != - 1 ) { pss = ss ; pagesubsub [ p ] [ ps ] = pss ; } psss = pagesubsubsub [ p ] [ ps ] [ pss ] ; if ( sss != - 1 ) { psss = sss ; pagesubsubsub [ p ] [ ps ] [ pss ] = psss ; } var ob = tree [ p ] . child [ ps ] . child [ pss ] ; var len = ob . child . length ; if ( len > submax ) { var j2min = Math . floor ( len * ob . y * 1.001 ) ; if ( psss < j2min ) ob . y = psss / len ; if ( psss >= j2min + submax - 1 ) ob . y = ( psss - submax + 1 + 0.1 ) / len ; } buttoninit ( ) ; }
Fires when a page is changed
Fires when a page is changed