function openpopWindow (theURL, width, height, winName) {
    if (navigator.appName == 'Netscape' && parseInt(navigator.appVersion) < 4){
        width = parseInt(width) + 20;
        height = parseInt(height) + 20;
    }

    str = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+width+",height="+height;
    nWin = window.open(theURL,winName,str);
    if ( navigator.appName == 'Netscape' ) {
	 nWin.focus();
    }
}

function externalURL(theUrl) {
    openpopWindow("external.htm?"+escape(theUrl),500,350,"goodbye");
}


     
function openWindow5(url){
	
	window.name = 'main';
	//w = width
	//h = height
	//s = scrollbars
	leftW = (screen.width-700)/2;
	topH = (screen.height-300)/2;
		features = "titlebar=0,location=0,directories=0,menubar=0,scrollbars=1,status=0,toolbar=0,resizable=1,height=300,width=700,left="+leftW+",top="+topH
		winpops = window.open(url,"remote",features);
}
		  
function openWindow6(url){
	window.name = 'main';
	//w = width
	//h = height
	//s = scrollbars
	leftW = (screen.width-760)/2;
	topH = (screen.height-350)/2;
		features = "titlebar=10,location=1,directories=0,menubar=1,scrollbars=1,status=0,toolbar=1,resizable=1,height=350,width=700,left="+leftW+",top="+topH
		winpops = window.open(url,"remote",features);
}

function openWindow7(url){
	window.name = 'main';
	//w = width
	//h = height
	//s = scrollbars
	leftW = (screen.width-760)/2;
	topH = (screen.height-680)/2;
		features = "titlebar=10,location=0,directories=0,menubar=0,scrollbars=1,status=0,toolbar=0,resizable=0,height=650,width=760,left="+leftW+",top="+topH
		winpops = window.open(url,"remote",features);
}

function openWindow8(url){
	window.name = 'main';
	//w = width
	//h = height
	//s = scrollbars
	leftW = (screen.width-500)/2;
	topH = (screen.height-500)/2;
		features = "titlebar=10,location=0,directories=0,menubar=0,scrollbars=0,status=0,toolbar=0,resizable=0,height=760,width=550,left="+leftW+",top="+topH
		winpops = window.open(url,"remote",features); 
}

function popup(url,w,h,s){
	window.name = 'main';
	//w = width
	//h = height
	//s = scrollbars
	//before 11-21-06: toolbar = 1 , menubar = 1, resizeable=1, location =1
	leftW = (screen.width-760)/2;
	topH = (screen.height-300)/2;
		features = "titlebar=10,location=0,directories=0,menubar=0,scrollbars=0,status="+s+",toolbar=0,resizable=0,height="+h+",width="+w+",left="+leftW+",top="+topH
		winpops = window.open(url,"remote",features);
}

//Dropdown menus
/*
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
*/
//end Dropdown menus




function showHide(entryID, entryLink, htmlObj, type) {if (type == "comments") {extTextDivID = ('comText' + (entryID));extLinkDivID = ('comLink' + (entryID));} else {extTextDivID = ('extText' + (entryID));extLinkDivID = ('extLink' + (entryID));}if( document.getElementById ) {if( document.getElementById(extTextDivID).style.display ) {if( entryLink != 0 ) {document.getElementById(extTextDivID).style.display = "block";document.getElementById(extLinkDivID).style.display = "none";htmlObj.blur();} else {document.getElementById(extTextDivID).style.display = "none";document.getElementById(extLinkDivID).style.display = "block";}} else {location.href = entryLink;return true;}} else {location.href = entryLink;return true;}}



 
 
function hide()
{

g=document.getElementById('a1');
if (g.style.display == 'none'){
	g.style.display="block";
 }
else 
	g.style.display="none";
}




if (document.getElementById) {
 document.writeln('<style type="text/css"><!--')
 document.writeln('.links {display:none; padding-left:14px}')
 document.writeln('.link {text-decoration: underline; color:black}')
 document.writeln('a:hover.link {text-decoration: underline; color: black}')
 document.writeln('//--></style>') }

function openClose(theID) {
 if (document.getElementById(theID).style.display == "block") {
     document.getElementById(theID).style.display = "none";
     document.getElementById("tick_"+theID).innerHTML = ">"; }
 else {
     document.getElementById(theID).style.display = "block";
     document.getElementById("tick_"+theID).innerHTML = ">"; } }





// position of the tooltip relative to the mouse in pixel //
var offsetx = 12;
var offsety =  8;

function newelement(newid)
{ 
    if(document.createElement)
    { 
        var el = document.createElement('div'); 
        el.id = newid;     
        with(el.style)
        { 
            display = 'none';
            position = 'absolute';
        } 
        el.innerHTML = '&nbsp;'; 
        document.body.appendChild(el); 
    } 
} 
var ie5 = (document.getElementById && document.all); 
var ns6 = (document.getElementById && !document.all); 
var ua = navigator.userAgent.toLowerCase();
var isapple = (ua.indexOf('applewebkit') != -1 ? 1 : 0);
function getmouseposition(e)
{
    if(document.getElementById)
    {
        var iebody=(document.compatMode && 
        	document.compatMode != 'BackCompat') ? 
        		document.documentElement : document.body;
        pagex = (isapple == 1 ? 0:(ie5)?iebody.scrollLeft:window.pageXOffset);
        pagey = (isapple == 1 ? 0:(ie5)?iebody.scrollTop:window.pageYOffset);
        mousex = (ie5)?event.x:(ns6)?clientX = e.clientX:false;
        mousey = (ie5)?event.y:(ns6)?clientY = e.clientY:false;

        var lixlpixel_tooltip = document.getElementById('tooltip');
        lixlpixel_tooltip.style.left = (mousex+pagex+offsetx) + 'px';
        lixlpixel_tooltip.style.top = (mousey+pagey+offsety) + 'px';
    }
}
function tooltip(tip)
{
    if(!document.getElementById('tooltip')) newelement('tooltip');
    var lixlpixel_tooltip = document.getElementById('tooltip');
    lixlpixel_tooltip.innerHTML = tip;
    lixlpixel_tooltip.style.display = 'block';
    document.onmousemove = getmouseposition;
}
function exit()
{
    document.getElementById('tooltip').style.display = 'none';
}
