function popup(mylink, windowname, width, height, scrollbars, status, resizable) {
   if (! window.focus) return true;
   var href;
   if (typeof(mylink) == 'string')
      href=mylink;
   else
      href=mylink.href;
   s = 'resizable,width=' + width + ',height=' + height + ',status=' +  status + ',scrollbars=' +  scrollbars;
   windowref = window.open(href, windowname, s);
   windowref.focus();
   // window.open("http://www.w3schools.com","","toolbar=no,location=no,directories=no, status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=400,height=400")
   return false;
}



function te_navBar( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#66ccff';
				break;
			default:
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#c00';
				}
		}
	} else {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = 'transparent';
				break;
			default:
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#000';
				}
		}
	}
}

function te_href_mouse_event (  tableCellRef, hoverFlag, navStyle ) {
    if ( hoverFlag ) {
         switch ( navStyle ) {
			case 1:
                if ( document.getElementsByTagName ) {
					tableCellRef.style.color = '#c00';
                    break;
				}
            default:
             if ( document.getElementsByTagName ) {
					tableCellRef.style.color = '#c00';
				}
            }

	} else {
          switch ( navStyle ) {
			case 1:
                if ( document.getElementsByTagName ) {
					tableCellRef.style.color = '#FF9900';
                    break;
				}
            default:
				if ( document.getElementsByTagName ) {
					tableCellRef.style.color = '#999966';
                    }
		   }
    }
}

function te_mouse_over (objectref,event_style) {
   if ( document.getElementsByTagName(objectref)) {
		   objectref.className = event_style;
		}
}




function te_navBar_V( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#66ccff';
				break;
			default:
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#c00';
				}
		}
	} else {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = 'transparent';
				break;
			default:
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#000';
				}
		}
	}
}

function te_navBarClick( tableCellRef, navStyle, url ) {
	te_navBar( tableCellRef, 0, navStyle );
	te_goTo( url );
}

function te_goTo( url ) {
	window.location.href = url;
}

function te_img_mouse_over(obj,overimg) {
   obj.src=overimg;
}

function te_img_mouse_out(obj,outimg) {
   obj.src=outimg;
}
