
function HeaderLineText(){
   return "<hr>";
}
//
function strDate(){
	var month = new Array( "January","February","March","April","May","June","July","August","September","October","November","December");
	var dateNow = new Date();
	thisYear = dateNow.getYear();
	if(thisYear < 1900) {thisYear += 1900}; 
	return month[dateNow.getMonth()] + " " + dateNow.getDate() + ", " + thisYear
}

function startNavigator(w,h,img,sc1,sc2,cl_in,cl_out){
sepLineC1=sc1
sepLineC2=sc2
class_in=cl_in
class_out=cl_out
document.write("<TR><TD vAlign=top><TABLE class='NavTable' cellSpacing=0 cellPadding=0 width='"+w+"' border=0><TBODY><TR><TD colSpan=4><IMG height='"+h+"' src='"+img+"' width='"+w+"' border=0></TD></TR><tr><td width=1 bgcolor=black></td><TD bgcolor=white width=2></TD><td><table cellSpacing=0 cellPadding=0 border=0 width='"+(w-4)+"'>")

}
function endNavigator(w,h,img){document.write("</table></td><td width=1 bgcolor=black><img src='img/null.gif' width=1></td></tr><TR><TD colSpan=4><IMG height='"+h+"' src='"+img+"' width='"+w+"' border=0></TD></TR></TBODY></TABLE><BR>");}
function setClass(id,cl){id.className=cl}
function addNavRow(html){}
//
function tr_line_c(color){return "<tr><td bgcolor="+color+" height=1></td></tr>"}
//
function addLink(text,lnk,id){document.write(tr_line_c(sepLineC2)+"<tr><TD class='"+class_out+"' id='"+id+"' align=top>&nbsp;<STRONG><span style='color: darkblue'>::</span></STRONG>&nbsp;&nbsp;<a href='"+lnk+"' class=NAVLink onmouseover='setClass("+id+",\""+class_in+"\");' onmouseout='setClass("+id+",\""+class_out+"\");'>"+text+"</a></TD></tr>"+tr_line_c(sepLineC1))}

var topElCount=0

function startTopHeader(){document.write("<TABLE class='NavTop' cellSpacing=0 cellPadding=0 border=0><TBODY><TR>")}
function addTopLink(txt,lnk,active){
         ++topElCount
         document.write("<TD class='"+(active?"active":"passive")+"'><A href='"+lnk+"'>"+txt+"</A></TD>")
}
function endTopHeader(){document.write("<TD width=1 bgColor=black></TD><TR><TD colSpan=6><IMG height=12 src='img/top/menu_line.gif' width="+(topElCount*101+1)+" border=0></TD></TR></TBODY></TABLE>")
			topElCount=0}
function addPath0(txt){document.write("<IMG align='center' alt='' src='img/top_arrow.gif' border=0><FONT color=#6699cc><SMALL><B>"+txt+"</B></SMALL>")}
//
function addPath(t1,t2,t3,t4){
document.write("<TABLE cellSpacing=0 cellPadding=0 bgColor=#ffffff border=0><TBODY><TR><TD width=1 bgColor=black></TD><TD vAlign=middle>")
if(t1){
  addPath0(t1)
  if(t2){
     addPath0(t2)
     if(t3){
         addPath0(t3)
         if(t4){
            addPath0(t4)
            }
         }
     }
  }
document.write("</TD></TR></TBODY></TABLE>")
}

//
function startRightPanel(){document.write("<TD vAlign=top noWrap width=225><TABLE cellSpacing=0 cellPadding=0 width=225 bgColor=#ffffff border=0><TBODY>")}
function startRightSection(title){document.write("<TR><TD><TABLE cellSpacing=0 cellPadding=1 width='100%' bgColor=#000000 border=0><TBODY><TR><TD><TABLE cellSpacing=0 cellPadding=1 width='100%' bgColor=#e4e4e4 border=0><TBODY><TR><TD>&nbsp;<SMALL><B>"+title+"</B></SMALL></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><TABLE cellSpacing=0 cellPadding=0 width='100%' bgColor=#000000 border=0><TBODY><TR><TD bgColor=#ffffff><IMG height=2 src='img/null.gif' width=5 border=0></TD></TR><TR><TD><IMG height=1 src='img/null.gif' width=5 border=0></TD></TR></TBODY></TABLE><BR>")}
function endRightSection(){document.write("</TD></TR></TBODY>")}
function endRightPanel(){document.write("</TABLE></TD>")}

function pageBottom(){document.write("<BR><BR><BR><TABLE cellSpacing=0 cellPadding=0 width='100%' border=0><TBODY><TR><TD width='100%' bgColor=#aaaaee><IMG height=1 src='img/null.gif' width=1 border=0></TD></TR><TR><TD width='100%' bgColor=#F8EEB9 height=20><CENTER><SMALL><B><FONT color=#ee9933>Copyright © 2003-2011 Industrial Ontologies Group, University of Jyv&auml;skyl&auml; - All Rights Reserved.&nbsp;</TD></TR><TR><TD width='100%' bgColor=#aaaaee><IMG height=1 src='img/null.gif' width=1 border=0></TD></TR></TBODY></TABLE></TR>")}

function transformXML(xml,xsl) { 

	if( document.implementation && document.implementation.createDocument ) { 
        	Proc = new XSLTProcessor();
        	XSL = document.implementation.createDocument("", "", null);
           	XSL.async = false;
           	XSL.load(xsl);
           	Proc.importStylesheet(XSL);
        	XML = document.implementation.createDocument("","", null);
           	XML.async = false;
        	XML.load(xml);
        	XMLS = new XMLSerializer();
		document.write(XMLS.serializeToString(Proc.transformToDocument(XML)))
	}
	else { 
          	srcTree = new ActiveXObject("Msxml2.DOMDocument")
          	srcTree.async=false
          	srcTree.load(xml)
          	xsltTree= new ActiveXObject("Msxml2.DOMDocument")
          	xsltTree.async = false
          	xsltTree.load(xsl)
          	document.write(srcTree.transformNode(xsltTree))
	}
} 
/*
function transformXML(xml,xsl){
         srcTree = new ActiveXObject("Msxml2.DOMDocument")
         srcTree.async=false
         srcTree.load(xml)
         xsltTree= new ActiveXObject("Msxml2.DOMDocument")
         xsltTree.async = false
         xsltTree.load(xsl)
         document.write(srcTree.transformNode(xsltTree))
}
*/

