<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Joey Mullen (VidCmp Services) -->
<!--
function init()
{
  w3cConformance();
  createShadows();
	window.onresize=winResize
}
// check if a field contains a valid date
function checkDate(fielddate)
{
  var dtStart = new Date(fielddate.value);
  if(isNaN(dtStart.getTime())==true)
  {
    return warnInvalid(fielddate, fielddate.value+" is not a valid date.");
  }
  return true;
}
// Notify user that contents of field theField are invalid.
// String s describes expected contents of theField.value.
// Put select theField, pu focus in it, and return false.
function warnInvalid (theField, s)
{
    alert(s);
    var sf = "setFocus('"+theField.getAttribute('id')+"')";
    setTimeout(sf,5);
    return false
}

function loadPageMenu(menu)
{
    var doc = document.getElementById("page_menu_items");
    xml.apply(doc,menu);
    var doc1 = document.getElementById("text");
    doc1.style.cssFloat = "left";
    if(!document.all)
    {
        doc1 = document.getElementById("content");
        var node = document.createElement("div");
        node.style.height="20px;";
        node.style.clear="both";
        doc1.appendChild(node);
    }
}
function loadPageMenu2(menu)
{
    var doc = document.getElementById("page_menu_items2");
    xml.apply(doc,menu);
    var doc1 = document.getElementById("text");
    doc1.style.cssFloat = "left";
    if(!document.all)
    {
        doc1 = document.getElementById("content");
        var node = document.createElement("div");
        node.style.height="20px;";
        node.style.clear="both";
        doc1.appendChild(node);
    }
}

function setFocus(stfield)
{
  el = document.getElementById(stfield);
  el.focus();
  el.select();
}

var tiptimer = null;
var hastipobject = null;
function showTimedToolTip()
{
  if(tiptimer!=null)
  {
    clearTimeout(tiptimer);
    var tip = document.getElementById("framToolTip");
    tip.style.visibility = "visible";
  }
  createShadows();
}

function showToolTip(message,evt,width,height,offsetX,offsetY)
{
  var tip = document.getElementById("framToolTip");
  var tipdoc = tip.contentDocument;
  var tipc;
  if(tipdoc == null)
  {
    tipc = document.frames["framToolTip"].document.getElementById("divToolTipContent");
  }
  else
  {
    tipc = tipdoc.getElementById("divToolTipContent");
  }
  if((evt == null)||(evt == ''))
  {
    evt = window.event;
  }
  var target = evt.target;
  if(target == null)
    target = evt.srcElement;
  if((target!=null) && (hastipobject != target))
  {
    hastipobject = target;
    hastipobject.onmouseout = function() { hideTimedToolTip();};
    var x=0;
    var y=0;
//    x = (evt.clientX+document.body.scrollLeft)+4;
    x = getRealLeft(target);
    if(offsetX!=null)
      x+=offsetX;
    y = getRealTop(target);
//    y = (evt.clientY+document.body.scrollTop)-16;
    if(offsetY!=null)
    y+=offsetY;
    tip.style.position="absolute";
    tip.style.left = x+"px";
    tip.style.top= y+"px";
    if(width!=null)
    {
      tip.style.width=width+8+"px";
      tipc.style.width=width+"px";
    }
    if(height!=null)
    {
      tip.style.height=height+4+"px";
      tipc.style.height=height+"px";
    }
    tipc.innerHTML = message;
  }
  if(tiptimer!=null)
  {
    clearTimeout(tiptimer);
  }
  tiptimer = window.setTimeout("showTimedToolTip()",200);
}
function hideTimedToolTip()
{
  var tip = document.getElementById("framToolTip");
  if(tiptimer!=null)
  {
    clearTimeout(tiptimer);
  }
  tiptimer = window.setTimeout("hideToolTip()",1500);
}
function hideToolTip()
{
  var tip = document.getElementById("framToolTip");
  if(tiptimer!=null)
  {
    clearTimeout(tiptimer);
  }
  tip.style.visibility = "hidden";
  tiptimer=null;
  hastipobject = null;
}


var mmm=0;
var timerone;
function timeer()
{
	timerone = window.setTimeout("time()",10);
}
function winResize()
{
    createShadows();
}
function showDivRelative(id)
{
   var node;
    node = document.getElementById(id);
    if(node!=null)
    {
        var pnode = node.parentNode;
        var r = getRealLeft(pnode)+12;
        var t = getRealTop(pnode)+12;
        node.style.left = r+"px";
        node.style.top = t+"px";
        node.style.visibility="visible";
    }
}
function showDivRelativeSave(id)
{
   var node;
    node = document.getElementById(id);
    if(node!=null)
    {
        var pnode = node.parentNode;
        var r = getRealLeft(pnode)+12;
        var t = getRealTop(pnode)+12;
        node.style.left = r+"px";
        node.style.top = t+"px";
        node.style.visibility="visible";
        var state = document.getElementById("_VIEWSTATE_");
        var a1 = state.value.split("<"+id+">");
        if(a1.length > 1)
        {
            var a2 = a1[1].split(')');
            state.value = a1[0] + "<"+id+">("+ r+ "," + t +"," + "visible)" + a2[1];
        }
        else
        {
            state.value = state.value + "<"+id+">("+ r+ "," + t +"," + "visible)";
        }


    }
}

function mousemove(text)
{
	elm = document.getElementById("header")
	removeTextNodes(elm)
	elm.appendChild(document.createTextNode("move :" + mmm +" " + text));
	mmm = mmm+1
//	createShadows(document);
}

function removeTextNodes(node) // removes text nodes with no tag names
{
	cnode=node.firstChild;
	while(cnode!=null)
	{
		next = cnode.nextSibling;
		if(cnode.nodeType==3) // text node
		{
			node.removeChild(cnode)
		}
		cnode = next;
	}
}

function removeChildNodes(node)
{
	cnode=node.firstChild;
	while(cnode!=null)
	{
		node.removeChild(cnode)
		cnode = node.firstChild;
	}
}
function offsetTop(el)
{
	if(el!=null)
	{
		if(document.all)
		{
      var top = el.offsetTop;
      var pnode = el.offsetParent;
      while (pnode != null)
			{
	      top += pnode.offsetTop; // appending top offset of each parent
	      pnode = pnode.offsetParent; // until no more offset parents exist
      }
      return top; // return the number calculated
		}
		else
		{
			return el.offsetTop;
		}
	}
	return 0;
}

function offsetLeft(el)
{
	if(el!=null)
	{
		if(document.all)
		{
      var top = el.offsetLeft;
      var pnode = el.offsetParent;
      while (pnode != null)
			{
	      top += pnode.offsetLeft; // appending top offset of each parent
	      pnode = pnode.offsetParent; // until no more offset parents exist
      }
      return top; // return the number calculated
		}
		else
		{
			return el.offsetLeft;
		}
	}
	return 0;
}

function setOpacity(el,val)
{
	if(document.all)
	{
		var eeval = Number(val)*100;
		eeval = eeval | 0;
		el.style.filter="alpha(opacity="+eeval+")";
	}
	else
	{
    if(val > .90)
    {
      el.style.MozOpacity = ".99";
    }
    else
		  el.style.MozOpacity=val.toString();
	}
}
function sepUnits(str)
{
	str=str.replace("em",",em")
	str=str.replace("px",",px")
	str=str.replace("in",",in")
	str=str.replace("cm",",cm")
	str=str.replace("mm",",mm")
	str=str.replace("pt",",pt")
	str=str.replace("pc",",pc")
	str=str.replace("ex",",ex")
	v = str.split(",");
	v[0] = Number(v[0]);
	return v;
}
function copyContent(els,eld)
{
	removeChildNodes(eld)
	var str=""
	for(var i=0;i<els.childNodes.length;i++)
	{
		str=str+els.childNodes[i].text;
		eld.appendChild(els.childNodes[i].cloneNode(true));
	}
}  
function setStatus(txt)
{
	st = document.getElementById("status");
	st.childNodes[0].data=txt
}
function appendStatus(txt)
{
	st = document.getElementById("status");
	st.childNodes[0].data = st.childNodes[0].data+txt;
}

function createShadows()
{
	var cnode;
	var i=0;
  var id = 0;
  var j;
  while(id >= 0)
  {
    cnode = document.getElementById("_s_"+id);
    if(cnode!=null)
    {
		  var mt=0;
		  var mb=0;
		  var ml=0;
		  var mr=0;
		  if(cnode.className == "shadowright")
		  {
        var s = getCSSRule("."+cnode.parentNode.className)
        if(s==null)
	         s=getCSSRule("#" + cnode.parentNode.id)
        if(s!=null)
        {
          if(s.style.position=="absolute")
          {
            mt = Number((s.style.borderTopWidth.split("p"))[0]);
            mb = Number((s.style.borderBottomWidth.split("p"))[0]);
            ml = Number((s.style.borderLeftWidth.split("p"))[0]);
            mr = Number((s.style.borderRightWidth.split("p"))[0]);
          }
        }

        cnode.style.top = getRealTop(cnode.parentNode)-mt+"px";
			  cnode.style.left = getRealRight(cnode.parentNode)-ml+'px';
			  cnode.style.height=cnode.parentNode.offsetHeight+"px";
		  }
		  if(cnode.className == "shadowbottom")
		  {
             var s = getCSSRule("."+cnode.parentNode.className)
  	         if(s==null)
  		          s=getCSSRule("#" + cnode.parentNode.id)
  	         if(s!=null)
  	         {
			     if(s.style.position=="absolute")
			     {
  			         mt = Number((s.style.borderTopWidth.split("p"))[0]);
  			         mb = Number((s.style.borderBottomWidth.split("p"))[0]);
	 			     ml = Number((s.style.borderLeftWidth.split("p"))[0]);
    		          mr = Number((s.style.borderRightWidth.split("p"))[0]);
			     }
		      }
  	         var s = getCSSRule(".shadowbottom")
			 var lml=0;
			 if(s!=null)
			 {
				  lml=s.style.marginLeft.split("px")[0];;
			 }
			 cnode.style.top=getRealBottom(cnode.parentNode)-ml+"px";
			 cnode.style.left=getRealLeft(cnode.parentNode)-mt+"px";
			 cnode.style.width=cnode.parentNode.offsetWidth-lml+"px";
		  }
      id=id+1;
    }
    else
    {
      return;
    }
	}
}

function getRealLeft(el)
{
	var xPos = 0
	tempEl = el;
	while (tempEl != null)
	{
    s = getStyle(tempEl);
		if(s)
		{
			if(s.position == "absolute")
			{
        xPos = xPos;
			  return xPos;       
			}
		}
		xPos += tempEl.offsetLeft;
	  tempEl = tempEl.offsetParent;
	}
	return xPos;
}
function getStyle(el)
{
  var s = null;
  s = getCSSRule("."+el.className);
  if(s == null)
    s = getCSSRule("#"+el.id);
  if(s == null)
    return el.style;
  return s;    
}

function getRealTop(el)
{
	var yPos = 0;
	var tempEl = el;
	while (tempEl != null)
	{
    if(tempEl.nodeName=="BODY")
    {
      return yPos;
    }
    if(!document.all)
    {
      if(tempEl.nodeName=='TABLE')
      {
        yPos=yPos+10;
      }
    }
		var s = getStyle(tempEl);
		if(s)
    {
      if(s.position=="absolute")
      {
        return yPos;
      }
    }
	  yPos += tempEl.offsetTop;
		tempEl = tempEl.offsetParent;
	}
	return yPos;
}

function getRealRight(el)
{
	var xpos = getRealLeft(el);
	xpos += el.offsetWidth;
	return xpos;
}
function getRealBottom(el)
{
	var ypos = getRealTop(el);
	ypos += el.offsetHeight;
	return ypos;
}

function nodeTest(node)
{
	var ps = node.previousSibling;
	var indx=0
	while(ps != null)
	{
		indx++;
		alert("node test "+ps.localName+" "+indx+ " "+ ps.offsetWidth);
		ps=ps.previousSibiling;
	}
}

function getStyle(el, prop)
{
  if(typeof document.defaultView != "undefined" && typeof document.defaultView.getComputedStyle != "undefined")
	{
  	return document.defaultView.getComputedStyle(el,'').getPropertyValue(prop);
	}
  return el.currentStyle[prop];
}


function inlineStyle(elementname,selector,prop)
{
	var i;
  var s = getCSSRule(selector)
	var e = document.getElementsByName(elementname);
	for(i=0;i<e.length;i++)
	{
//		alert(s.style.getAttribute(prop))
//		e[i].style.setAttribute(prop,s.style.getAttribute(prop))
//		alert("style="+ e[i].style.getAttribute(prop))
		e[i].style.width=s.style.width
	}
}

function test()
{
	visitNodes(document);
}

function visitNodes(node)
{
	var cnode;
	var i=0;
	alert(node.nodeName+" "+node.nodeType+ " " + node.nodeValue);
	for(i=0;i<node.childNodes.length;i++)
	{
	  cnode = node.childNodes[i]
 		visitNodes(cnode)
	}
}

function getCSSRule(selector)
{
	var i;var ss;var j;
  for(i=0;i< document.styleSheets.length;i++)
	{
	  ss=document.styleSheets[i]
		if(ss!=null)
		{
			if(ss.cssRules != null)
			{
				for(j=0;j < ss.cssRules.length;j++)
				{
					if(ss.cssRules[j].selectorText == selector)
					{
						return ss.cssRules[j]
					}
				}
			}
		}
	}
}

function getBorderWidth(el)
{
	if(el.style.borderWidth != "")
  	return el.style.borderWidth;
	var style=getCSSStyle(el);
  if(style!=null)
  	return style.borderWidth;
 	return "0px";
}
function getBorderBottomWidth(el)
{
  if(el.style.borderBottomWidth!="")
  	return el.style.borderBottomWidth;
	var style=getCSSStyle(el);
  if(style!=null)
  {
	  return style.borderBottomWidth;
 	}
  return "0px";
}
function getBorderTopWidth(el)
{
  if(el.style.borderTopWidth!="")
  {
  	return el.style.borderTopWidth;
	}
  var style=getCSSStyle(el);
  if(style!=null)
  {
	  return style.borderTopWidth;
 	}
  return "0px";
}
function getBorderLeftWidth(el)
{
  if(el.style.borderLeftWidth!="")
  {
  	return el.style.borderLeftWidth;
	}
  var style=getCSSStyle(el);
  if(style!=null)
  {
	  return style.borderLeftWidth;
  }
 	return "0px";
}
function getPaddingTop(el)
{
  if(el.style.paddingTop!="")
  {
  	return el.style.paddingTop;
	}
  var style=getCSSStyle(el);
  if(style!=null)
  {
	  return style.paddingTop;
 	}
  return "0px";
}
function getPaddingLeft(el)
{
  if(el.style.paddingLeft!="")
  {
  	return el.style.paddingLeft;
	}
  var style=getCSSStyle(el);
  if(style!=null)
  {
	  return style.paddingLeft;
  }
 	return "0px";
}

function getBorderRightWidth(el)
{
  if(el.style.borderRightWidth!="")
  	return el.style.borderRightWidth;
	var style=getCSSStyle(el);
  if(style!=null)
	  return style.borderRightWidth;
 	return "0px";
}

function getCSSStyle(el)
{
  var ssid = getCSSRule("#"+el.id);
  if(ssid != null)
  	return ssid.style;
	var ssclass = getCSSRule("."+el.className);
  if(ssclass!=null)
  	return ssclass.style;
  return null;
}

function w3cConformance()
{
	for(i=0;i<document.styleSheets.length;i++)
	{
  	if(document.styleSheets[0].rules)
  	{
  		document.styleSheets[0].cssRules=document.styleSheets[0].rules;
  	}
	}
}

var XMLSTRING = "";
function tryMSXMLDoc()
{
}

XMLSTRINGS = new Array("Msxml2.DOMDocument.4.0","Msxml2.DOMDocument.3.0","Msxml2.DOMDocument.2.6","Msxml2.DOMDocument");

function createMSXMLDoc()
{
	if(XMLSTRING=="")
	{
		var xmlDOC = null;
		for(i=0;i<XMLSTRINGS.length;i++)
		{
     	try
    	{
				XMLSTRING=XMLSTRINGS[i];
				var xmlDoc = new ActiveXObject(XMLSTRING);
        xmlDoc.async=false;
    		return xmlDoc;
      }
    	catch (e)
    	{
				XMLSTRING=""
      }
		}
		location.href="msxml.html";
	}
	else
	{
		xmlDOC = new ActiveXObject(XMLSTRING);
 		xmlDOC.async = false;
	}
	return xmlDOC;
}

// xml xslt processing
function XMLProcessor(stylesheet)
{
  this.xsltProcessor=null
  this.xmlHTTPRequest=null;
	this.xslDOC = null
  this.xmlDOC = null
	try
	{
    this.loadxsl = function(stylesheet)
    {
    	if(document.all)
    	{
    		if(this.xslDOC == null)
    		{
    			return null;
    		}
  	  	this.xslDOC.load(stylesheet)
    	}
    	else
    	{
        this.xmlHTTPRequest.open("GET", stylesheet, false);
        this.xmlHTTPRequest.send(null);
        this.xsltProcessor.importStylesheet(this.xmlHTTPRequest.responseXML);
    	}
    }
    this.loadxml = function(xmlfile)
    {
    	if(document.all)
    	{
    		if(this.xmlDOC == null)
    		{
    			return null;
    		}
    		this.xmlDOC.load(xmlfile)
  			return this.xmlDOC
    	}
    	else
    	{
        this.xmlHTTPRequest.open("GET", xmlfile, false);
        this.xmlHTTPRequest.send(null);
    		this.xmlDOC = this.xmlHTTPRequest.responseXML
    		return this.xmlDOC
    	}
    }

    this.apply = function(node,xmlfile)
    {
  		if(xmlfile!=null)
  		{
  			this.xmlDOC=this.loadxml(xmlfile);
  		}
    	if(document.all)
    	{
  			if(this.xmlDOC == null)
  			{
  				return false;
  			}
  			node.innerHTML=this.xmlDOC.transformNode(this.xslDOC);
				return 1;
  		}
    	else
    	{
//    	    alert(xmlfile+this.xmlDOC)
  			var docfrag = this.xsltProcessor.transformToFragment(this.xmlDOC,document)
  			node.appendChild(docfrag);
				return true;
    	}
  	}

  // class initialization code
    if(document.all)
    {
  		this.xmlDOC = createMSXMLDoc();
    	this.xslDOC = createMSXMLDoc();

    }
    else
    {
	  	this.xmlHTTPRequest = new XMLHttpRequest();
    	this.xsltProcessor = new XSLTProcessor();
    }
  	this.loadxsl(stylesheet)
	}
  catch(e)
  {
  	location.replace("xmlerror.html");
  }
}


-->
