	
function removeFocusOnAllLinks(){
	for(var i=0 ; i < document.links.length ; i++) 
	document.links[i].onfocus=blurLink; 
}

function blurLink() {
if (this.blur) this.blur(); 
}

function externalLinks() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) {
 	
   var xanchor = anchors[i];
   if ((xanchor.getAttribute("href").indexOf("http:") + 1) && !(xanchor.getAttribute("href").indexOf("contentheavy.com") + 1))
   	{ 
     xanchor.className = "external";
	 xanchor.target = "_blank";
	 xanchor.title = "Link Opens in a New Browser Window";
	 }	 
 } 
}

function bookmark(url,title){
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  window.external.AddFavorite(url,title);
  } else if (navigator.appName == "Netscape") {
    window.sidebar.addPanel(title,url,"");
  } else {
    alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
  }
}

onloadLib.addEvent('removeFocusOnAllLinks()');

// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'images/work-shots/1.jpg'
theImages[1] = 'images/work-shots/2.jpg'
theImages[2] = 'images/work-shots/3.jpg'
theImages[3] = 'images/work-shots/4.jpg'
theImages[4] = 'images/work-shots/5.jpg'
theImages[5] = 'images/work-shots/6.jpg'
theImages[6] = 'images/work-shots/7.jpg'
theImages[7] = 'images/work-shots/8.jpg'
theImages[8] = 'images/work-shots/9.jpg'
theImages[9] = 'images/work-shots/10.jpg'
theImages[10] = 'images/work-shots/11.jpg'
theImages[11] = 'images/work-shots/12.jpg'

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}

/*am = "All new Images, Web Concepts, Code are exclusive property of ContentHeavy.com - This function is disabled!";
bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"

function nrc(e) {
   if (bNS && e.which > 1){
      alert(am)
      return false
   } else if (bIE && (event.button >1)) {
     alert(am)
     return false;
   }
}

document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;*/
