// JavaScript  -  External Windows Documentfunction TJKpop(){ // v1.0 | www.TJKDesign.com  var e = document.getElementById('wrapper');  if (e){    var a=e.getElementsByTagName('a');    for (var i=0;i<a.length;i++){		    if (a[i].getAttribute('href') != null && a[i].getAttribute('href').indexOf("http://") >= 0 && a[i].getAttribute('href').toUpperCase().indexOf(document.domain.toUpperCase()) == -1){        a[i].className+=a[i].className?' outlink':'outlink';         a[i].title+=' (opens in new window)';				var rand = Math.round((Math.random() * 10000));				a[i].onclick=function(){newWin=window.open(this.href,rand);if(window.focus){newWin.focus()} return false;}        a[i].onkeypress=function(){newWin=window.open(this.href,rand);if(window.focus){newWin.focus()} return false;}      }    }  }}function addLoadEvent(func) {   var oldonload = window.onload;   if (typeof window.onload != 'function') {     window.onload = func;  } else {     window.onload = function() {      oldonload();      func();    }  }}addLoadEvent(function(){if(document.getElementById) TJKpop();});// End External Windows Document// JavaScript  -  Showcase  window.onload = function() {    initGallery();    }  function initGallery() {    if (!document.getElementsByTagName) return false;    if (!document.getElementById) return false;    if (!document.getElementById("gallery")) return false;    var gallery = document.getElementById("gallery");    var links = gallery.getElementsByTagName("a");    for ( var i=0; i < links.length; i++) {      links[i].onclick = function() {        return showPic(this);      }    }  }  function showPic(whichpic) {    if(!document.getElementById("pic")) alert("first break");    var source = whichpic.getAttribute("href");    var pic = document.getElementById("pic");    if (pic.nodeName != "IMG") return true;    pic.setAttribute("src", source);    if (!document.getElementById("caption")) return false;    var text = whichpic.getAttribute("title") ? whichpic.getAttribute("title") : "";    var caption = document.getElementById("caption");    if (caption.firstChild.nodeType == 3) {      caption.firstChild.nodeValue = text;    }    return false;  }// End ShowcaseaddLoadEvent(TJKpop); addLoadEvent(initGallery); 