function over(id){
	document.getElementById("a" + id).style.color="#FFFFFF";
	document.getElementById("sub" + id).style.display='block';
}

function out(id){
	document.getElementById("a" + id).style.color="#FFFFFF";
	document.getElementById("sub" + id).style.display='none';
}

function thumbhover(imgname,height){
	document.getElementById('back').innerHTML="<img src=\"gallery/" + imgname + "\" width=\"425\" height=\"" + height + "\" border=\"1\" style=\"border:1px solid #FFFFFF\" align=\"top\"/>";	
}

function thumbout(imgname,height){
	document.getElementById('back').innerHTML="<img src=\"gallery/" + imgname + "\" width=\"425\" height=\"" + height + "\" border=\"1\" style=\"border:1px solid #FFFFFF\" align=\"top\"/>";	
}

this.blankwin = function(){
	var hostname = window.location.hostname;
	hostname = hostname.replace("www.","").toLowerCase();
	var a = document.getElementsByTagName("a");	
	this.check = function(obj){
		var href = obj.href.toLowerCase();
		return (href.indexOf("http://")!=-1 && href.indexOf(hostname)==-1) ? true : false;
	};
	this.set = function(obj){
		obj.target = "_blank";
		obj.className = "external";
	};	
	for (var i=0;i<a.length;i++){
		if(check(a[i])) set(a[i]);
	};		
};


var message="Sorry, right-click has been disabled"; 
/////////////////////////////////// 
function clickIE() {if (document.all) {(message);return false;}} 
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) { 
if (e.which==2||e.which==3) {(message);return false;}}} 
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} 
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;} 
document.oncontextmenu=new Function("return false") 
