function check_browser(){this.ver=navigator.appVersion;this.name=navigator.appName;this.agent=navigator.userAgent;this.lang=(navigator.language)?navigator.language.substring(0,2):(navigator.browserLanguage)?navigator.browserLanguage.substring(0,2):'en';this.win=((navigator.platform+'').toLowerCase().indexOf('win')>-1)?true:false;this.mac=((navigator.platform+'').toLowerCase().indexOf('mac')>-1)?true:false;this.linux=((navigator.platform+'').toLowerCase().indexOf('linux')>-1)?true:false;this.dom=(document.getElementById)?true:false;this.ie4=(document.all&&!this.dom)?true:false;this.ie5=(this.ver.indexOf('MSIE 5')>-1&&this.dom)?true:false;this.ie6=(this.ver.indexOf('MSIE 6')>-1&&this.dom)?true:false;this.ie=(this.ie4||this.ie5||this.ie6)?true:false;this.mz=(this.dom&&parseInt(this.ver)>=5)?true:false;this.ns=(this.name=='Netscape');this.ns4=(this.ns&&parseInt(this.ver)==4)?true:false;this.ns6=(this.dom&&this.ns&&parseInt(this.ver)>=5)?true:false;this.ns60=(this.ns6&&this.agent.indexOf('Netscape6/6.0')>0)?true:false;this.opera=(window.opera)?true:false;this.opera5=(this.opera&&this.agent.indexOf('Opera 5')>-1)?true:false;this.opera6=(this.opera&&this.agent.indexOf('Opera 6')>-1)?true:false;this.dhtml=(this.ie5||(this.ie4&&this.win)||this.ie6||this.ns4||this.ns6);this.layers=(this.ns4);this.div=(this.ie4||this.ie5||this.ie6||this.ns6);this.linkborder=(document.all||this.ns6);this.rollover=((!this.ns&&parseInt(this.ver)>=4)||(this.ns&&parseInt(this.ver)>=3));}rootFolder='';function wst(v1){window.status=v1;return true;}function find_in_array(v2,v3,v4){if(!v2.length)return-1;for(var v1 in v2)if(v4&&v2[v1].toLowerCase()==v3.toLowerCase())return v1;else if(v2[v1]==v3)return v1;return-1;}function read_query(){var v1=document.location.search.substring(1,document.location.search.length).split('&');var v2=new Array();for(var v3=0;v3<v1.length;v3++){var v4=v1[v3].split('=');v2[v3]={name:v4[0],value:v4[1]};}if(!v2.length)return false;return v2;}function get_param(v3){var v1=read_query();if(v1)for(var v2=0;v2<v1.length;v2++)if(v1[v2].name==v3)return v1[v2].value;return false;}function get_mouse_pos(v3){var v1=(bw.ns)?v3.pageX:event.x+document.body.scrollLeft;var v2=(bw.ns)?v3.pageY:event.y+document.body.scrollTop;return{x:v1,y:v2};}function get_window_size(){var v1=v2=0;if(bw.ns){v1=parseInt(window.innerWidth);v2=parseInt(window.innerHeight);}else{v1=parseInt(document.body.clientWidth);v2=parseInt(document.body.clientHeight);}return{width:v1,height:v2};}loaded=false;bw=new check_browser();nav=false;


scrollbar_count=1;scroll_line_feed=0.02;scroll_page_feed=0.1;scroll_delay=10;scroll_raster='10';scroll_mousemove=false;scrollbar_objects=new Array();scroll_css='';var active_scrollbar;function mk_scrollbar_object(v1){this.param=v1;this.name=v1.barname;this.type=v1.type;this.x=v1.left;this.y=v1.top;this.width=v1.width;this.height=v1.height;this.box_w=v1.box_width;this.box_h=v1.box_height;this.btn_x_off=(this.type=='h')?v1.button_size:0;this.btn_y_off=(this.type=='v')?v1.button_size:0;this.box_foot_height=(v1.foot_height&&this.type=='v')?v1.foot_height:0;this.box_foot_width=(v1.foot_height&&this.type=='h')?v1.foot_height:0;this.box_min_size=(v1.box_min_size)?v1.box_min_size:5;this.layer_hierarchy=(v1.hier)?v1.hier+'.':'';this.drag_active=false;this.scroll_active=false;this.click_to_pos=(v1.click_move=='absolute')?true:false;this.snap_raster=(v1.snap_to_raster)?true:false;this.got_buttons=(v1.button_size>0)?true:false;this.scaleable=(v1.scale)?true:false;this.line_feed=scroll_line_feed;this.page_feed=scroll_page_feed;this.delay=scroll_delay;this.value=0;this.disabled=false;this.obj='scrollbar_objects['+scrollbar_count+']';scrollbar_objects[scrollbar_count]=this;this.set_properties=f22_2;this.activate=f22_3;this.drag=f22_16;this.slide=f22_17;this.release=f22_18;this.scroll=f22_20;this.click_bar=f22_19;this.set_box=f22_4;this.draw_box=f22_23;this.mouse_to_value=f22_21;this.abs_pos=f22_22;this.adjust=f22_24;this.on_scroll=new Function();scrollbar_count++;return this;}function f22_2(){var v1=this.param.img_folder;var v2=this.param.box_img;var v3=this.param.box_body;var v4=this.param.box_foot;var v5=this.param.bg_img;var v6=this.param.up_img;var v7=this.param.down_img;var v8=this.param.zindex;var v9=this.param.mode;this.css='';var v10=(v9==null&&document.layers)?true:(v9=='layer'&&document.layers)?true:false;var v11='<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH='+this.width+'><TD HEIGHT='+this.height+' BACKGROUND="'+v1+v5+'" VALIGN=top><IMG SRC="'+v1+v5+'"><\/TD><\/TABLE>';var v12=(!this.scaleable)?'<IMG SRC="'+v1+v2+'" WIDTH='+this.box_w+' HEIGHT='+this.box_h+'>':(this.type=='v')?'<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH='+this.width+' HEIGHT='+this.height+'><tr><TD BACKGROUND="'+v1+v3+'" VALIGN=top><IMG SRC="'+v1+v2+'" WIDTH='+this.box_w+' HEIGHT='+(this.box_h-this.box_foot_height)+' BORDER=0><\/TD><\/tr><\/TABLE>':'<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH='+this.width+' HEIGHT='+this.height+'><\/tr><TD BACKGROUND="'+v1+v3+'" ALIGN=left><IMG SRC="'+v1+v2+'" WIDTH='+(this.box_w-this.box_foot_width)+' HEIGHT='+this.box_h+'><\/TD><\/TR><\/TABLE>';if(this.scaleable){v12+=(v10)?(this.type=='v')?'<LAYER ID="'+this.name+'BoxFoot" top='+(this.box_h-this.box_foot_height)+' left=0>':'<LAYER ID="'+this.name+'BoxFoot" top=0 left='+(this.box_w-this.box_foot_width)+'>':'<DIV ID="'+this.name+'BoxFoot">';v12+='<IMG SRC="'+v1+v4+'">';v12+=(v10)?'<\/LAYER>':'<\/DIV>';}var v14=(this.type=='h')?this.btn_x_off:this.width;var v15=(this.type=='v')?this.btn_y_off:this.height;var v16=(this.got_buttons)?'<IMG SRC="'+v1+v6+'" WIDTH='+v14+' HEIGHT='+v15+'>':'';var v17=(this.got_buttons)?'<IMG SRC="'+v1+v7+'" WIDTH='+v14+' HEIGHT='+v15+'>':'';var v18=(this.type=='h')?this.width+this.btn_x_off:0;var v19=(this.type=='v')?this.height+this.btn_y_off:0;this.css+='#'+this.name+' { position:absolute; top:'+this.y+'; left:'+this.x+'; width:'+this.width+'; height:'+this.height+'; z-index:'+v8+'; visibility:hidden; }\n';this.css+='#'+this.name+'BG { position:absolute; top:'+this.btn_y_off+'; left:'+this.btn_x_off+';}\n';this.css+='#'+this.name+'Box { position:absolute; top:'+this.btn_y_off+'; left:'+this.btn_x_off+'; overflow:hidden; }\n';if(this.scaleable){this.css+='#'+this.name+'BoxFoot { position:absolute; ';this.css+=(this.type=='v')?'top:'+(this.box_h-this.box_foot_height)+'; left:0 }\n':'top:0; left:'+(this.box_w-this.box_foot_width)+' }\n';}this.html=(v10)?'<LAYER ID="'+this.name+'" top='+this.y+' left='+this.x+' width='+this.width+' height='+this.height+' z-index='+v8+' visibility=hide>\n':'<DIV ID="'+this.name+'">\n';this.html+=(v10)?'<LAYER ID="'+this.name+'BG" top='+this.btn_y_off+' left='+this.btn_x_off+'>'+v11+'<\/LAYER>\n':'<DIV ID="'+this.name+'BG">'+v11+'<\/DIV>\n';this.html+=(v10)?'<LAYER ID="'+this.name+'Box" top='+this.btn_y_off+' left='+this.btn_x_off+'>'+v12+'<\/LAYER>\n':'<DIV ID="'+this.name+'Box">'+v12+'<\/DIV>\n';if(this.got_buttons)this.html+=(v10)?'<LAYER ID="'+this.name+'BtnUp" top=0 left=0>'+v16+'<\/LAYER>\n':'<DIV ID="'+this.name+'BtnUp">'+v16+'<\/DIV>\n';if(this.got_buttons)this.html+=(v10)?'<LAYER ID="'+this.name+'BtnDown" top='+v19+' left='+v18+'>'+v17+'<\/LAYER>\n':'<DIV ID="'+this.name+'BtnDown">'+v17+'<\/DIV>\n';if(this.got_buttons)this.css+='#'+this.name+'BtnUp { position:absolute; top:0; left:0; }\n';if(this.got_buttons)this.css+='#'+this.name+'BtnDown { position:absolute; top:'+v19+'; left:'+v18+'; }\n';this.html+=(v10)?'<\/LAYER>\n':'<\/DIV>\n';if(v10)this.css='';else scroll_css=this.css;}function f22_3(v2){var v1=(this.layer_hierarchy)?this.layer_hierarchy.substring(0,this.layer_hierarchy.length-1):'';if(v2==null)v2=true;this.layer=new mk_layer_object(this.name,v1);this.bg=new mk_layer_object(this.name+'BG',this.layer_hierarchy+this.name);this.box=new mk_layer_object(this.name+'Box',this.layer_hierarchy+this.name);this.layer.width=this.width;this.layer.height=this.height;if(bw.layers)this.bg.doc.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);this.bg.event.onmousedown=scrollbg_mouse_down;this.bg.event.onmouseup=scrollbg_mouse_up;this.bg.event.parent_obj=this.obj;if(bw.layers)this.box.doc.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);this.box.event.onmousedown=scrollbox_mouse_down;this.box.event.onmouseup=scrollbox_mouse_up;this.box.event.parent_obj=this.obj;if(this.got_buttons){this.btnUp=new mk_layer_object(this.name+'BtnUp',this.layer_hierarchy+this.name);this.btnDn=new mk_layer_object(this.name+'BtnDown',this.layer_hierarchy+this.name);if(bw.layers)this.btnUp.doc.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);this.btnUp.event.onmousedown=scrollup_mouse_down;this.btnUp.event.onmouseup=scrollbutton_mouse_up;this.btnUp.event.parent_obj=this.obj;if(bw.layers)this.btnDn.doc.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);this.btnDn.event.onmousedown=scrolldown_mouse_down;this.btnDn.event.onmouseup=scrollbutton_mouse_up;this.btnDn.event.parent_obj=this.obj;}if(this.scaleable)this.boxFoot=new mk_layer_object(this.name+'BoxFoot',this.layer_hierarchy+this.name+'.'+this.name+'Box');this.draw_box();if(v2)this.layer.show(1);if(this.snap_raster)create_scroll_raster();}function f22_4(v6){if(v6>=0&&v6<=1){var v1=0;var v2=0;var v3=1.1;var v4;if(this.snap_raster){for(var v5=0;v5<a_scroll_raster.length;v5++)if(Math.abs(a_scroll_raster[v5]-v6)<v3){v3=Math.abs(a_scroll_raster[v5]-v6);v4=v5;}if(v3<=1)v6=a_scroll_raster[v4];}}else if(v6<0)v6=0;else if(v6>1)v6=1;if(this.type=='h'){v1=this.width-this.box_w;v2=Math.round(v6*v1);this.box.move(this.btn_x_off+v2,0);}else if(this.type=='v'){v1=this.height-this.box_h;v2=Math.round(v6*v1);this.box.move(0,this.btn_y_off+v2);}this.value=v6;this.on_scroll(v6);}function create_scroll_raster(){if(String(scroll_raster).indexOf(',')>0){a_scroll_raster=scroll_raster.split(',');for(var v1=0;v1<a_scroll_raster.length;v1++)a_scroll_raster[v1]=Math.abs(a_scroll_raster[v1]);a_scroll_raster.sort();}else{var v2=parseInt(scroll_raster);var v3=1/v2;a_scroll_raster=new Array();for(var v4=0;v4<parseInt(scroll_raster)+1;v4++)a_scroll_raster[v4]=Math.round(v3*v4*1000)/1000;}}function scrollbar_mouse_move(v1){mX=get_mouse_pos(v1).x;mY=get_mouse_pos(v1).y;return f22_17(mX,mY);}function scrollbar_mouse_up(v1){if(bw.ns4&&v1.target!=document)routeEvent(v1);if((bw.ns&&v1.which!=1)||(bw.ie&&event.button>1))return true;if(active_scrollbar)active_scrollbar.release();return true;}function scrollbox_mouse_down(v3){if((bw.ns&&v3.which!=1)||(bw.ie&&event.button>1))return true;var v1=get_mouse_pos(v3).x;var v2=get_mouse_pos(v3).y;return eval(this.parent_obj+'.drag('+v1+','+v2+')');}function scrollbox_mouse_up(v1){if((bw.ns&&v1.which!=1)||(bw.ie&&event.button>1))return true;return eval(this.parent_obj+'.release()');}function scrollbg_mouse_down(v1){return true;}function scrollbg_mouse_up(v3){if((bw.ns&&v3.which!=1)||(bw.ie&&event.button>1))return true;var v1=get_mouse_pos(v3).x;var v2=get_mouse_pos(v3).y;return eval(this.parent_obj+'.click_bar('+v1+','+v2+')');}function scrollbutton_mouse_up(v1){if((bw.ns&&v1.which!=1)||(bw.ie&&event.button>1))return true;return eval(this.parent_obj+'.release()');}function scrollup_mouse_down(v1){if((bw.ns&&v1.which!=1)||(bw.ie&&event.button>1))return true;eval(this.parent_obj+'.scroll_active=true');return eval(this.parent_obj+'.scroll(-1)');}function scrolldown_mouse_down(v1){if((bw.ns&&v1.which!=1)||(bw.ie&&event.button>1))return true;eval(this.parent_obj+'.scroll_active=true');return eval(this.parent_obj+'.scroll(1)');}var scroll_event_stack=new Array();function f22_16(v2,v3){if(this.disabled)return true;var v1=this.box.absolute();if(v2>=v1.x&&v2<=v1.x+this.box_w&&v3>=v1.y&&v3<=v1.y+this.box_h){this.box.offset_x=v2-v1.x;this.box.offset_y=v3-v1.y;if(document.onmousemove)scroll_event_stack['move']=document.onmousemove;else{if(bw.layers)document.captureEvents(Event.MOUSEMOVE);}if(document.onmouseup)scroll_event_stack['up']=document.onmouseup;else{if(bw.layers)document.captureEvents(Event.MOUSEUP);}document.onmousemove=scrollbar_mouse_move;document.onmouseup=scrollbar_mouse_up;if(bw.layers&&!document.onmousemove)document.captureEvents(Event.MOUSEMOVE);if(bw.layers&&!document.onmouseup)document.captureEvents(Event.MOUSEUP);this.drag_active=true;active_scrollbar=this;scroll_mousemove=true;if(bw.ns4&&bw.mac)return false;}return true;}function f22_17(v2,v3){if(scroll_mousemove){if(active_scrollbar.drag_active&&!active_scrollbar.disabled){var v1=active_scrollbar.mouse_to_value(v2,v3);active_scrollbar.set_box(v1);return false;}}return true;}function f22_18(){if(this.disabled)return true;status='';if(scroll_event_stack.move)document.onmousemove=scroll_event_stack.move;if(scroll_event_stack.up)document.onmouseup=scroll_event_stack.up;scroll_mousemove=false;this.drag_active=false;this.scroll_active=false;return true;}function f22_19(v3,v4){if(this.disabled)return true;this.box.offset_x=this.box_w/2;this.box.offset_y=this.box_h/2;var v1=this.mouse_to_value(v3,v4);var v2=this.value;if(this.click_to_pos)v2=v1;else if(this.value<v1)v2=this.value+this.page_feed;else if(this.value>v1)v2=this.value-this.page_feed;this.set_box(v2);return true;}function f22_20(v2){var v1=this.value;if(this.scroll_active&&!this.disabled){v1=this.value+(this.line_feed*v2);this.set_box(v1);setTimeout(this.obj+'.scroll('+v2+')',this.delay);return false;}return true;}function f22_21(v1,v2){if(this.type=='h')return vX=(v1-this.x-this.box.offset_x-this.btn_x_off)/(this.width-this.box_w);else if(this.type=='v')return vY=(v2-this.y-this.box.offset_y-this.btn_y_off)/(this.height-this.box_h);else return 0;}function f22_22(){this.x=this.layer.absolute().x;this.y=this.layer.absolute().y;}function f22_23(){if(!this.scaleable)return;var v1=this.box_min_size;var v2=(this.type=='v')?this.box_h-v1:this.box_w-v1;if(v2<0&&this.type=='v')this.box_h=v1;if(v2<0&&this.type=='h')this.box_w=v1;this.box.clip(0,this.box_w,this.box_h,0);if(this.type=='v')this.boxFoot.move(0,this.box_h-this.box_foot_height);else this.boxFoot.move(this.box_w-this.box_foot_width,0);this.box.resize(this.box_w,this.box_h);}function f22_24(v8){var v1=(v8.hide)?v8.hide:'whole';var v2=v8.line;var v3=v8.container;var v4=v8.pagelayer;var v5=(this.type=='v')?this.box_h:this.box_w;v4.height=(v8.height)?v8.height:(bw.layers)?v4.doc.height:v4.elm.offsetHeight;v4.width=(v8.width)?v8.width:(bw.layers)?v4.doc.width:v4.elm.offsetWidth;this.win_size=(this.type=='v')?v3.clip_height:v3.clip_width;this.scroll_size=(this.type=='v')?v4.height:v4.width;this.line_feed=(v2/2)/(this.scroll_size-this.win_size);this.page_feed=this.win_size/((this.scroll_size-this.win_size)+(this.scroll_size/v2));this.scrollbox_size=(this.type=='v')?Math.round(this.height/(this.scroll_size/this.win_size)):Math.round(this.width/(this.scroll_size/this.win_size));if(v8.speed)this.delay=v8.speed;if(this.scroll_size>this.win_size){if(!(bw.ns6&&bw.linux)){if(this.type=='v')this.box_h=this.scrollbox_size;else this.box_w=this.scrollbox_size;this.draw_box();if(this.value>0&&v5!=this.scrollbox_size){var v6=Math.abs(this.scrollbox_size-v5);var v7=(this.type=='v')?this.value-1/(this.height-v6):this.value-1/(this.width-v6);this.set_box(v7);}}this.layer.show(1);this.box.show(2);this.disabled=false;}else{if(this.layer.visible&&v1=='whole')this.layer.show(0);else if(v1=='box')this.box.show(0);this.set_box(0);this.disabled=true;}}
var box_title='';
var largemode=false;
var move_step=20;
var move_speed=20;

debug_mode=false;
function setup(){
	this_win=(bw.ns)?{
		w:window.innerWidth,h:window.innerHeight}:{
			w:document.body.scrollWidth,h:document.body.scrollHeight
			};
		init_mouse_events();
		preload_img();
		o_poslayer=new mk_layer_object('poslayer');
		if(bw.ns4)o_poslayer.x=o_poslayer.elm.pageX;
		if(bw.ns4)o_poslayer.y=o_poslayer.elm.pageY;
		o_scrollpage=new mk_layer_object('scrollPage','scrollContainer');
		o_content=new mk_layer_object('scrollContainer');
		o_content.move(o_poslayer.x+0,o_poslayer.y+25);
		scroller.activate(false);
		scroller.x=o_poslayer.x+600;
		scroller.y=o_poslayer.y+25;
		scroller.layer.move(scroller.x,scroller.y);
		scroller.on_scroll=scroll_content;
		set_scrollbar_params();
		contentlayer=o_scrollpage;
		alt_color='#F0F0F0';
		alt_in_time=1200;
		alt_x_offset=15;
		alt_y_offset=3;
		loaded=true;
		}
	function init_mouse_events(){
		if(bw.dhtml){document.onmousedown=event_none;
	document.onmousemove=nex_mouse_move;
	document.onmouseup=mouse_up;
	if(bw.ns)document.captureEvents(Event.MOUSEMOVE|Event.MOUSEDOWN|Event.MOUSEUP);
		}
	}
	function event_none(v1){
		if(bw.ns&&v1.target!=document)return routeEvent(v1)
		}
	function mouse_up(v1){
		if(bw.ns4&&v1.target!=document)return routeEvent(v1);
		if(scroll_mousemove&&active_scrollbar)return active_scrollbar.release();
		}
	var mX=mY=1;
	function nex_mouse_move(v1){
		mX=get_mouse_pos(v1).x;
		mY=get_mouse_pos(v1).y;
		if(window.enlarge_script)move_focus(mX,mY);
		return scrollbar_mouse_move(v1);
		}
	var info_time=0;
	function scroll_content(v2){
	var v1=(v2*(scroller.scroll_size-scroller.win_size))*-1;
	if(largemode)o_largepage.move(o_largepage.x,v1);
	else o_scrollpage.move(o_scrollpage.x,v1);
}
function set_scrollbar_params(v1,v2){
		if(v1==null)v1='';if(bw.ie4&&bw.win&&v2==null){
			setTimeout('set_scrollbar_params("'+v1+'",1)',100);
			return;
			}
		var adjust_param={container:((v1=='largemode')?o_largecont:o_content),pagelayer:((v1=='largemode')?o_largepage:o_scrollpage),line:16,speed:20,hide:'whole'};
scroller.adjust(adjust_param);
if(scroller.value!=0)scroller.set_box(0);
}

colprop = new Array();
colprop['data'] = new Array();
colprop['data'][0] = { name:'key', type:'text' };
colprop['data'][1] = { name:'type', type:'text' };
colprop['data'][2] = { name:'name', type:'text' };
colprop['data'][3] = { name:'parent', type:'text' };
colprop['data'][4] = { name:'opened', type:'bool' };
colprop['data'][5] = { name:'label', type:'text' };
colprop['data'][6] = { name:'alt', type:'text' };
colprop['data'][7] = { name:'file', type:'text' };
colprop['data'][8] = { name:'link', type:'text' };
colprop['data'][9] = { name:'target', type:'text' };
colprop['data'][10] = { name:'bg', type:'text' };

data = new Array();



check_layers=true;img_count=0;a_img_pos=new Array('','');a_sel_img=new Array();a_sel_img['default']={img:'none',layer:''};a_img_src=new Array();a_img_stack=new Array();img_pas_markup='_pas';img_act_markup='_act';function preload_img(){if(bw.rollover){if(a_img_src.length>0){for(i=0;i<a_img_src.length;i++){a_img_stack[i]=new Image();a_img_stack[i].src=a_img_src[i];img_count=i;}}var v1=document.images.length;for(var v2=0;v2<v1;v2++){v3=document.images[v2].src;stack_image(v3);}if(check_layers&&bw.layers){nof_layers=document.layers.length;for(i=0;i<nof_layers;i++){img_count=a_img_stack.length-1;v1=document.layers[i].document.images.length;for(v2=0;v2<v1;v2++){var v3=document.layers[i].document.images[v2].src;stack_image(v3);}}}if(bw.ns4&&a_img_src.length>0)for(i=0;i<a_img_src.length;i++)a_img_stack[i].src='';}}function stack_image(v3){var v1=v3.indexOf(img_pas_markup+'.');var v2=v3.substring(v3.lastIndexOf('.'),v3.length);if(v1!=-1){img_count++;a_img_stack[img_count]=new Image();a_img_stack[img_count].src=v3.substring(0,v1)+img_act_markup+v2;}}function swap_image(v1,v2,v3,v4){if(v1==2&&!bw.layers)v1=1;if(v1==1)document.images[v2].src=v3;else if(v1==2)v4.doc.images[v2].src=v3;}function check_sel_image(v2,v3){if(!window.a_sel_img)return false;for(var v1 in a_sel_img)if(a_sel_img[v1].img==v2&&(a_sel_img[v1].layer==''||a_sel_img[v1].layer==v3))return v1;return false;}function m_over(v4,v5){if(bw.rollover&&loaded){if(!v5||(v5&&!bw.layers)){if(!check_sel_image(v4,'')&&document.images[v4]){var v1=document.images[v4].src;var v2=switch_act_pas(v1,'act');if(v2)swap_image(1,v4,v2,'');}}else if(v5&&bw.layers){if(!check_sel_image(v4,v5)){var v3=image_layer(v5);if(v3.doc.images[v4]){var v1=v3.doc.images[v4].src;var v2=switch_act_pas(v1,'act');if(v2)swap_image(2,v4,v2,v3);}}}}}function m_out(v4,v5){if(bw.rollover&&loaded){if(!v5||(v5&&!bw.layers)){if(!check_sel_image(v4,'')){var v1=document.images[v4].src;var v2=switch_act_pas(v1,'pas');if(v2)swap_image(1,v4,v2,'');}}else if(v5&&bw.layers){if(!check_sel_image(v4,v5)){var v3=new image_layer(v5);var v1=v3.doc.images[v4].src;var v2=switch_act_pas(v1,'pas');if(v2)swap_image(2,v4,v2,v3);}}}}function switch_act_pas(v5,v6){var v1=v5.indexOf(img_pas_markup+'.');var v2=v5.indexOf(img_act_markup+'.');var v3=v5.substring(v5.lastIndexOf('.'),v5.length);if(v2>0&&v6=='pas')var v4=v5.substring(0,v2)+img_pas_markup+v3;else if(v1>0&&v6=='act')var v4=v5.substring(0,v1)+img_act_markup+v3;else var v4=false;return v4;}function m_click(v1,v2,v3){if(v2==null)v2='';if(!check_sel_image(v1,v2)){if(v3==null)v3='default';if(!a_sel_img[v3])a_sel_img[v3]={img:'',layer:''};sel_img=a_sel_img[v3].img;sel_layer=a_sel_img[v3].layer;m_over(v1,v2);a_sel_img[v3].img=v1;a_sel_img[v3].layer=v2;if(sel_img!='none'&&sel_img!='')m_out(sel_img,sel_layer);}}function show_image(v4,v5,v6){if(bw.rollover&&loaded){var v1=(v6=='')?1:2;for(var v2=0;v2<a_img_names.length;v2++){if(a_img_names[v2]==v4){var v3=new image_layer(v6);swap_image(v1,v5,a_img_src[v2],v3);return;}}}}function switch_image(v1,v2){if(!v2)v2='';if(v1!=a_img_pos[0]){m_out(a_img_pos[0],a_img_pos[1]);m_over(v1,v2);a_img_pos[0]=v1;a_img_pos[1]=v2;}}function image_layer(v4){var v1=v4.indexOf('.');var v2=(v1>0)?v4.substring(0,v1):v4;var v3=(v1>0)?v4.substring(v1+1,v4.length):'';return new mk_layer_object(v2,v3);}



var layer_obj_count=0;var layer_objects=new Array();function mk_layer_object(v3,v4,v5,v6){if(bw.dhtml){var v1=(v5)?v5:self;this.name=v3;this.hier=(v4)?v4.split('.'):new Array();this.create=f15_3;if(v4&&bw.layers){this.nest=v1.document;for(var v2=0;v2<this.hier.length;v2++)this.nest=this.nest.layers[this.hier[v2]];}if(v6!=null)this.elm=this.create(v6);else this.elm=bw.dom?v1.document.getElementById(v3):bw.ie4?v1.document.all[v3]:bw.layers?v4?this.nest.layers[v3]:v1.document.layers[v3]:false;if(!this.elm){if(window.debug_mode)alert('Could not create layer object: '+v3+((v4)?'('+v4+')':''));return false;}this.css=bw.layers?this.elm:(bw.dom||bw.ie4)?this.elm.style:false;this.doc=(bw.dom||bw.ie4)?v1.document:bw.layers?this.elm.document:false;this.event=bw.layers?this.doc:this.elm;this.width=bw.layers?this.doc.width:this.elm.offsetWidth;this.height=bw.layers?this.doc.height:this.elm.offsetHeight;this.clip_height=bw.layers?this.css.clip.height:this.elm.offsetHeight;this.clip_width=bw.layers?this.css.clip.width:this.elm.offsetWidth;this.x=bw.layers?parseInt(this.css.left):this.elm.offsetLeft;this.y=bw.layers?parseInt(this.css.top):this.elm.offsetTop;this.visible=(this.css.visibility=='visible'||this.css.visibility=='show')?true:false;this.win=v1;this.obj='layer_objects['+layer_obj_count+']';layer_objects[layer_obj_count]=this;this.absolute=f15_4;this.within=f15_5;this.move=f15_8;this.shift=f15_9;this.slide=f15_10;this.do_slide=f15_11;this.glide=f15_12;this.do_glide=f15_13;this.clip=f15_15;this.show=f15_16;this.write=f15_17;this.load=f15_19;this.on_load=f15_20;this.set_bgcolor=f15_24;this.resize=f15_7;layer_obj_count++;return this;}}function mk_layer_form(v2,v3,v4){if(bw.layers){if(v4==null)v4=false;var v1=new mk_layer_object(v3,v4);this.elm=v1.doc.forms[v2];}else this.elm=document.forms[v2];return this;}function f15_3(v11){var v1=v11.x;var v2=v11.y;var v3=v11.width;var v4=v11.height;var v5=v11.zindex;var v6=v11.vis;var v7=v11.parent;var v8;var v9=this.name;if(bw.layers){if(v7==null)v7=window;v8=new Layer(v3,v7);with(v8){top=v2;left=v1;if(v4)height=v4;if(v5)zIndex=v5;visibility=(v6)?(v6==2)?'inherit':'show':'hide';resizeTo(v3,v4);}}else if(bw.ie4){var v10='<DIV ID="'+v9+'" STYLE="position:absolute;top:'+v2+';left:'+v1+';width:'+v3+';'+((v4)?'height:'+v4+';':'')+''+((v5)?'z-index:'+v5+';':'')+' visibility:'+((v6)?(v6==2)?'inherit':'visible':'hidden')+';"></DIV>';if(v7)v7.insertAdjacentHTML('BeforeEnd',v10);else document.body.insertAdjacentHTML('BeforeEnd',v10);v8=document.all(v9);}else if(bw.dom){v8=document.createElement('DIV');with(v8){v9=v9;with(style){position='absolute';visibility=(v6)?(v6==2)?'inherit':'visible':'hidden';left=v1+'px';top=v2+'px';width=v3+'px';if(v4)height=v4+'px';if(v5)zIndex=v5;}}if(v7)v7.appendChild(v8);else document.body.appendChild(v8);}return v8;}function f15_4(){var v1=this.x;var v2=this.y;var v3='';for(var v4=0;v4<this.hier.length;v4++){var v5=new mk_layer_object(this.hier[v4],v3.substring(1,v3.length),this.window);v3+='.'+this.hier[v4];v1+=v5.x;v2+=v5.y;}if(bw.ns60)return{x:this.elm.offsetLeft,y:this.elm.offsetTop};return{x:v1,y:v2};}function f15_5(v1,v2){if(check_within(v1,v2,this.x,this.x+this.width,this.y,this.y+this.height))return true;else return false;}function check_within(v1,v2,v3,v4,v5,v6){if(v1>=v3&&v1<v4&&v2>=v5&&v2<v6)return true;else return false;}function f15_7(v1,v2){this.width=v1;this.height=v2;if(bw.div){this.css.width=v1;this.css.height=v2;}}function f15_8(v1,v2){this.x=v1;this.y=v2;this.css.left=Math.round(this.x);this.css.top=Math.round(this.y);}function f15_9(v1,v2){v1=Math.round(v1*100)/100;v2=Math.round(v2*100)/100;this.move(this.x+v1,this.y+v2);}function f15_10(v6,v7,v8,v9,v10){var v1=v6-this.x;var v2=v7-this.y;if(!v8)v8=10;if(!v9)v9=20;var v3=Math.sqrt(Math.pow(v1,2)+Math.pow(v2,2))/v8;if(v3==0){eval(v10);return;}var v4=v1/v3;var v5=v2/v3;if(!v10)v10=null;this.slide_active=true;this.slide_int=1;if(this.intvl)window.clearInterval(this.intvl);this.intvl=window.setInterval(this.obj+'.do_slide('+v4+','+v5+','+v6+','+v7+','+v3+',\''+v10+'\')',v9);}function f15_11(v1,v2,v3,v4,v5,v6){if(!this.slide_active)return;if(this.slide_int++<v5)this.shift(v1,v2);else{window.clearInterval(this.intvl);this.slide_active=false;this.move(v3,v4);eval(v6);}}function f15_12(v8,v9,v10,v11,v12,v13,v14){var v1=v8-this.x;var v2=v9-this.y;var slantangle=(v8==this.x)?90:(v9==this.y)?0:Math.abs(Math.atan(v2/v1)*180/Math.PI);var v3=Math.sqrt(Math.pow(v1,2)+Math.pow(v2,2));if(v8>=this.x)slantangle=(v9>this.y)?360-slantangle:slantangle;else slantangle=(v9>this.y)?180+slantangle:180-slantangle;slantangle*=Math.PI/180;this.glide_speed=(!v11)?v11:20;this.glide_active=true;if(!v14)v14=null;if(v12=='fast'){this.glide_angle=0;var v4=this.x;var v5=this.y;var v3=(v13=='fast')?v3/2:v3;var v6=90;var v7=(v13=='fast')?1:0;}else{this.glide_angle=-90;var v4=(v13=='fast')?this.x:this.x+v1/2;var v5=(v13=='fast')?this.y:this.y+v2/2;var v3=(v13=='fast')?v3:v3/2;var v6=(v13=='fast')?0:90;var v7=0;}f15_14(this.obj,v3,v4,v5,slantangle,v10);if(this.intvl)window.clearInterval(this.intvl);this.intvl=window.setInterval(this.obj+'.do_glide('+v7+','+v3+','+v6+','+v4+','+v5+','+slantangle+','+v8+','+v9+','+v1+','+v2+','+v10+',\''+v14+'\')',this.glide_speed);}function f15_13(v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12){if(!this.glide_active)return;if(this.glide_angle<v3&&this.glide_active)f15_14(this.obj,v2,v4,v5,v6,v11);else{window.clearInterval(this.intvl);if(v1==1){this.glide_angle=-90;v4=this.x+v9/2;v5=this.y+v10/2;f15_14(this.obj,v2,v4,v5,v6,v11);this.intvl=window.setInterval(this.obj+'.do_glide(0,'+v2+',0,'+v4+','+v5+','+v6+','+v7+','+v8+','+v9+','+v10+','+v11+',\''+v12+'\')',this.glide_speed);}else{this.glide_active=false;this.move(v7,v8);eval(v12);}}}function f15_14(v5,v6,v7,v8,v9,v10){var v1=eval(v5);if(v1&&v1.glide_active){v1.glide_angle+=v10;var v2=v6*Math.sin(v1.glide_angle*Math.PI/180);var v3=v7+v2*Math.cos(v9);var v4=v8-v2*Math.sin(v9);v1.move(v3,v4);}}function f15_15(v1,v2,v3,v4){if(bw.layers){this.css.clip.bottom=v3;this.css.clip.left=v4;this.css.clip.top=v1;this.css.clip.right=v2;}else if(bw.div)this.css.clip='rect('+v1+' '+v2+' '+v3+' '+v4+')';this.clip_height=v3;this.clip_width=v2;}function f15_16(v1){if(v1==1){this.css.visibility='visible';this.visible=true;}else if(v1==2){this.css.visibility='inherit';this.visible=true;}else{this.css.visibility='hidden';this.visible=false;}}function f15_17(v1){if(bw.layers){this.doc.open();this.doc.write(v1);this.doc.close();}else if(bw.div)this.elm.innerHTML=v1;}var layer_load_id=0;var layer_load_stack=new Array();var layer_request_timeout=20;function f15_19(v1,v2,v3,v4){if(v3==null)v3='';if(v4==null)v4=-1;layer_load_id++;layer_load_stack[layer_load_id]={layer:this.obj,url:v1,action:v3,loaded:false,finished:false,timer:setTimeout("f15_23("+layer_load_id+")",layer_request_timeout*1000)};if(!load_manager_running)f15_22(v2);}function f15_20(v2,v3){if(bw.ie4||bw.ie5||bw.ie6)this.write(frames[v3].document.body.innerHTML);else if(bw.ns6)this.write(document.getElementById(v3).contentDocument.body.innerHTML);layer_load_stack[v2].finished=true;var v1=layer_load_stack[v2].action;if(v1)eval(v1);}var load_manager_running=false;var load_processing=false;var transfer_loaded=false;var current_load=0;function f15_22(v6){load_manager_running=true;var v1=0;for(var v2=layer_load_stack.length-1;v2>0;v2--)if(!layer_load_stack[v2].loaded&&!layer_load_stack[v2].finished&&v2!=current_load)v1=v2;if(load_processing&&transfer_loaded){var v3=eval(layer_load_stack[current_load].layer);layer_load_stack[current_load].loaded=true;clearTimeout(layer_load_stack[current_load].timer);v3.on_load(current_load,v6);load_processing=false;transfer_loaded=false;}else if(!load_processing&&v1>0){var v4=layer_load_stack[v1].url;var v3=eval(layer_load_stack[v1].layer);if(bw.layers)v3.elm.load(v4,v3.width);if(!bw.layers){var v5=new mk_layer_object(v6);v5.elm.src=v4;}current_load=v1;transfer_loaded=false;load_processing=true;}if(load_processing||v1>0)setTimeout("f15_22(\'"+v6+"\')",200);else{current_load=0;load_manager_running=false;}}function f15_23(v1){layer_load_stack[v1].finished=true;eval(layer_load_stack[v1].action);load_processing=false;}function f15_24(v1){if(bw.layers)this.doc.bgColor=v1;else this.css.backgroundColor=v1;}function get_image_pos(v5){var v1=document.images[v5];if(!v1)return{x:0,y:0};var v2=(bw.layers)?v1.x:v1.offsetLeft;var v3=(bw.layers)?v1.y:v1.offsetTop;if(bw.ie||bw.mz){var v4=v1.offsetParent;while(v4&&v4!=null){v2+=v4.offsetLeft;v3+=v4.offsetTop;v4=v4.offsetParent;}}return{x:v2,y:v3};}var layer_script=true; window.layer_object = mk_layer_object; window.layer_form = mk_layer_form;


var str_hierlist='<TABLE BORDER=0 CELLSPACING=0><TD NOWRAP>#list#<\/TD><\/TABLE>';
var str_hierlayers_div='<DIV ID="hierContainer#nr#"><DIV ID="hierLayer1#nr#"><\/DIV><DIV ID="hierLayer2#nr#"><\/DIV><\/DIV>';
var str_hierlayers_layer='<LAYER ID="hierContainer#nr#" left=#left# top=#top# width=#width# height=#height# z-index=#z-index# clip="0,0,#width#,#height#" visibility=hide><LAYER ID="hierLayer1#nr#" left=0 top=0 visibility=hide><\/LAYER><LAYER ID="hierLayer2#nr#" left=0 top=0 visibility=hide><\/LAYER><\/LAYER>';
var str_dummylayer_div='<DIV ID="#name#">#content#<\/DIV>';
var str_dummylayer_layer='<LAYER ID="#name#" left=0 top=0>#content#<\/LAYER>';
var str_hiercss='#hierContainer#nr# { position:absolute; left:#left#; top:#top#; width:#width#; height:#height#; z-index:#z-index#; clip:rect(0 #width# #height# 0); overflow:hidden; visibility:hidden; }\n';str_hiercss+='#hierLayer1#nr#, #hierLayer2#nr# { position:absolute; left:0; top:0; width:#width#; visibility:hidden; }\n';
str_hiercss+='#dummy1#nr#, #dummy2#nr# { position:absolute; left:0; top:0; }\n';
function mk_hierlist(v4){
	if(!bw.dhtml)return;
	var v1=(v4.table)?v4.table:str_hierlist;
	this.nr=v4.nr;this.data=v4.arr;
	this.array=eval(this.data);
	this.fields=v4.fields;this.query=v4.query;
	this.sort=v4.sort;
	this.distinct=(v4.distinct)?v4.distinct:false;
	this.root=(v4.root)?v4.root:0;
	this.path=new Array();
	this.source=v4.table;
	this.color=v4.bgcolor;
	this.width=v4.width;
	this.height=v4.height;
	this.tags=(v4.bw_sensitive&&bw.layers)?'layer':'div';
	this.lineheight=(v4.lineheight)?v4.lineheight:16;
	this.opened_items=new Array();
	var v2=(this.tags=='layer')?str_hierlayers_layer:str_hierlayers_div;
	this.css=str_hiercss.replace(/#nr#/g,v4.nr).replace(/#left#/g,v4.x).replace(/#top#/g,v4.y).replace(/#width#/g,v4.width).replace(/#height#/g,v4.height).replace(/#z-index#/,v4.zindex)+'\n';
	this.html=v2.replace(/#nr#/g,v4.nr).replace(/#left#/g,v4.x).replace(/#top#/g,v4.y).replace(/#width#/g,v4.width).replace(/#height#/g,v4.height).replace(/#z-index#/,v4.zindex)+'\n\n';
	if(v4.scrollbar){
		var v3=v4.param;
		v3['left']=v4.x+v4.width+5;
		v3['top']=v4.y;
		v3['height']=v4.height;
		v3['zindex']=v4.zindex+5;
		v3['mode']=this.tags;
		v3['type']='v';
		v3['barname']='hierScroller'+v4.nr;
		v3['height']=v3.height-(v3.button_size*2);
		v3['click_move']='step';
		v3['snap_to_raster']=false;
		this.scrollbar=f18_14(v3);
		this.css+=this.scrollbar.css;
		this.html+=this.scrollbar.html;
		}
else this.scrollbar=false;
this.obj='hierlist'+v4.nr+'_object';
eval(this.obj+'=this');
this.make_line=v4.line.replace(/\(\)/,'');
this.post=v4.post;
this.init=f18_2;
this.show=f18_9;
this.list=f18_6;
this.write=f18_10;
this.scroll=f18_15;
this.get_childs=f18_7;
this.get_path=f18_8;
this.go_folder=f18_13;
this.go_parent=f18_12;
this.flap_folder=f18_11;
this.add_cache=f18_3;
this.check_cache=f18_4;
this.clear_cache=f18_5;this.cache=new Array();}function f18_2(){this.container=new mk_layer_object('hierContainer'+this.nr);this.layers=new Array();this.layers[1]=new mk_layer_object('hierLayer1'+this.nr,'hierContainer'+this.nr);this.layers[2]=new mk_layer_object('hierLayer2'+this.nr,'hierContainer'+this.nr);this.layer=this.layers[1];this.layer_id=1;if(this.color)this.container.set_bgcolor(this.color);if(this.scrollbar){this.scrollbar.activate(false);this.scrollbar.parent_obj=this;this.scrollbar.on_scroll=this.scroll;this.adjust_args={container:this.container,pagelayer:this.layer,line:this.lineheight,speed:20,hide:'whole'};}}function f18_3(v1,v2){if(!this.cache[v1])this.cache[v1]='';this.cache[v1]+=v2;}function f18_4(v1){if(this.cache[v1])return this.cache[v1];return false;}function f18_5(v1){this.cache[v1]='';}function f18_6(v4,v5){var list=this.get_childs(v5,'key,'+this.fields);for(var n=0;n<list.length;n++){list[n].opened=(this.opened_items[list[n].key])?1:0;var v3=this.get_childs(list[n].key,'index');this.html+=eval(this.make_line+'('+v4+',list[n],'+v3.length+')');if(v3.length&&list[n].opened)this.list(v4+1,list[n].key);}}function f18_7(v4,v5){var v1=(this.distinct)?'DISTINCT ':'';var v2="SELECT "+v1+v5+" FROM "+this.data+" WHERE parent=\'"+v4+"\'";if(this.query)v2+=" AND "+this.query;if(this.sort)v2+=" ORDER BY "+this.sort;var v3=jSQL(v2);return v3;}function f18_8(v6){if(String(v6)=='0')return;var v1=jSQL("SELECT index FROM "+this.data+" WHERE key="+v6)[0];var v2=this.array[v1];var v3=get_col_id(this.data,'type');var v4=get_col_id(this.data,'name');var v5=get_col_id(this.data,'parent');if(!v2)return;this.path[this.path.length]={name:v2[v4],id:v6};if(v2[v5]&&v2[v5]!='0')this.get_path(v2[v5]);}function f18_9(v4){this.html='';if(v4==null)v4=this.root;else this.root=v4;this.list(0,v4);this.hidelayer=this.layer;var v1=this.layer.y;this.layer=(this.layer_id==1)?this.layers[2]:this.layers[1];this.layer.move(this.layer.x,v1);this.layer_id=(this.layer_id==1)?2:1;this.dummy_layer=(this.layer_id==1)?'dummy1'+this.nr:'dummy2'+this.nr;var v2=this.source.replace(/#list#/,this.html);if(bw.mac&&bw.ie5)v2+='&nbsp;';var v3=(this.tags=='layer')?str_dummylayer_layer:str_dummylayer_div;this.html=v3.replace(/#name#/g,this.dummy_layer).replace(/#content#/,v2);if(bw.linux&&bw.ns4)setTimeout(this.obj+'.write()',100);else this.write();this.path=new Array();this.get_path(this.root);this.path.reverse();if(this.post)eval(this.post);}function f18_10(){this.layer.write(this.html);this.hidelayer.show(0);if(bw.ns6)this.hidelayer.shift(1,0);this.layer.show(2);if(this.scrollbar){this.adjust_args.pagelayer=new mk_layer_object(this.dummy_layer,this.container.name+'.'+this.layer.name);this.scrollbar.adjust(this.adjust_args);}if(bw.ns6)this.hidelayer.shift(-1,0);}function f18_11(v1){this.opened_items[v1]=(this.opened_items[v1])?0:1;this.clear_cache(v1);this.show();}function f18_12(){var v1=jSQL("SELECT index FROM "+this.data+" WHERE key="+this.root);if(v1.length){var v2=get_col_id(this.data,'parent');var v3=this.array[v1[0]][v2];this.go_folder(v3);}}function f18_13(v3){var v1=jSQL("SELECT index FROM "+this.data+" WHERE key="+v3);if(v1.length||String(v3)=='0'){var v2=get_col_id(this.data,'opened');this.show(v3);}}function f18_14(v2){var v1=new mk_scrollbar_object(v2);v1.set_properties();return v1;}function f18_15(v2){var v1=(v2*(this.scroll_size-this.win_size))*-1;this.parent_obj.layer.move(this.parent_obj.layer.x,v1);}function f18_16(v1){mX=get_mouse_pos(v1).x;mY=get_mouse_pos(v1).y;return scrollbar_mouse_move(v1);}var hierlist_script=true;