/* JavaScript utility functions for Humble Pages */

/* external and rightbar links should open in a new browser window */

function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href")) {
     if(anchor.className == "internal") anchor.target = "_top";
     if(anchor.className == "print") anchor.target = "_blank";
     if(anchor.className == "external") anchor.target = "_blank";
     if(anchor.className == "right") anchor.target = "_blank";
     if(anchor.className == "photo") anchor.target = "photo";
     }
   }
 }
/* trigger the function when the document has finished loading */
window.onload = externalLinks;	



/* contact generator script for Humble page */

var m = "@"

/* contact generator for HS pages */

function contact(cssclass, recipient, text)
{
var strAdr;
strAdr = recipient + "@" + "humble.cz";
//document.write("<br /><em>Email</em>:&#160");
document.write("<a class='");
document.write(cssclass); 
document.write("' href='mailto:");
document.write(strAdr);

document.write("?subject=Humble%20Pages'>");
document.write(text);
document.write("</a>");
}


function email(recipient)	// nepouziva se
{
var strAdr;
strAdr = recipient + "@" + "humble.cz";
document.write(strAdr);
}

