//[TABLE-ROLLOVER]

var ns6=document.getElementById&&!document.all
var ie=document.all
var prev_color;

function rollover_on(e,clr,type,r_ex,c_ex,table)
{
el=ie?event.srcElement:e.target;
if(el.tagName=="TABLE") return;
while(el &&(typeof el.cellIndex=='undefined')){el=ie?el.parentElement:el=el.parentNode;}
if(el){
if(el.tagName=="TABLE") return;
if((ie)||(el.parentNode.cells[1] && el.parentNode.cells[1].cellIndex==1)) {ci=el.cellIndex;} else{myCells=el.parentNode.cells;for(j=0;j<myCells.length; j++) {if(el==myCells[j])ci=j;}}
if(type=='TC' || type=='TRTC') {if (ci>0 || c_ex =='') {table.ci=ci;fc=(r_ex=='')?0:1;for(x=fc;x<table.rows.length;x++) {prev_color=table.rows[x].cells[ci].style.backgroundColor;table.rows[x].cells[ci].style.backgroundColor=clr;}}}
el=ie?event.srcElement:e.target;
if(el.tagName=="TABLE") return;
while(el.tagName!='TR' && el.tagName!="HTML") el=ns6?el.parentNode:el.parentElement;
ri=el.rowIndex;
if(type=='TRTC' || type=='TR'){if(r_ex=='' || ri>0){table.ri=ri;fc=(c_ex=='')?0:1;for(x=fc;x<table.rows[ri].cells.length;x++) {if(clr!=table.rows[ri].cells[x].style.backgroundColor){prev_color=table.rows[ri].cells[x].style.backgroundColor;}table.rows[ri].cells[x].style.backgroundColor=clr;}}}
else if(type=='TD'){if((r_ex=='' || ri>0)&&(c_ex=='' || ci>0)){table.ri=ri;table.ci=ci;prev_color=table.rows[ri].cells[ci].style.backgroundColor;table.rows[ri].cells[ci].style.backgroundColor=clr;}}
}}

function rollover_off(e,clr,type,r_ex,c_ex,table)
{
if((type=='TC')||(type=='TRTC')){if((table.ci > 0)||(c_ex=='')){fc=(r_ex=='')?0:1; for(x=fc; x<table.rows.length;x++) table.rows[x].cells[table.ci].style.backgroundColor=prev_color;}}
if(type=='TRTC'||type=='TR'){if(table.rows[table.ri]){fc=(c_ex=='')?0:1;for(x=fc;x<table.rows[table.ri].cells.length;x++) table.rows[table.ri].cells[x].style.backgroundColor=prev_color;;}}
if(type=='TD'&&(table.rows[table.ri])){table.rows[table.ri].cells[table.ci].style.backgroundColor=prev_color;}
}

//[END]
//[DROP_SCRIPT]

var b_el=null;var tog=false;
function ToggleBody(e_id,r){var b_state='none';var img=r+'images/expand.gif';if(tog&&(b_el!=null)&&(b_el.id!=e_id+"Body"))b_el.style.display='none';
if(document.getElementById){b_el=document.getElementById(e_id+"Body");u_img=document.getElementById(e_id+"Up");} else if(document.all){b_el=document.all[e_id+"Body"];u_img=document.all[e_id+"Up"];}
if(b_el!=null){if(b_el[0]){b_el=b_el[0];u_img=u_img[0];}if(b_el.style.display=="none"){img=r+"images/collapse.gif";b_state='block';}u_img.src=img;b_el.style.display=b_state;}return false;}

//[END]
//[MULTIUPLOAD_JS]

function MultiSelector(list_target,max){this.list_target=list_target;this.count=0;this.id=0;if(max){this.max=max;} else{this.max=-1;};this.addElement=function(element){if(element.tagName=='INPUT' && element.type=='file'){element.name='file_'+this.id++;element.multi_selector=this;element.onchange=function(){var new_element=document.createElement('input');new_element.type='file';new_element.className='input1';this.parentNode.insertBefore(new_element,this);this.multi_selector.addElement(new_element);this.multi_selector.addListRow(this);this.style.position='absolute';this.style.left='-1000px';};if(this.max!= -1 && this.count >= this.max){element.disabled=true;};this.count++;this.current_element=element;} else{alert('Error: not a file input element');};};this.addListRow=function(element){var new_row=document.createElement('div');var new_row_button=document.createElement('input');new_row_button.type='button';new_row_button.value='Delete';new_row_button.className='input1';new_row.element=element;new_row_button.onclick=function(){this.parentNode.element.parentNode.removeChild(this.parentNode.element);this.parentNode.parentNode.removeChild(this.parentNode);this.parentNode.element.multi_selector.count--;this.parentNode.element.multi_selector.current_element.disabled=false;return false;};new_row.innerHTML=element.value+'&nbsp;';new_row.appendChild(new_row_button);this.list_target.appendChild(new_row);};};

//[END]
