// JavaScript Document

function slide(thm)
	{
	var strlen = thm.length;
	var x = thm.lastIndexOf("_thumb.jpg");
	var jpg = thm.substr(0,x)+".jpg";
	
	jpg = "Images/Projects/"+document.getElementById("pid").value+"/"+jpg;
	jpg = "<img src='"+jpg+"' />";
	//prompt("",jpg);
	
	document.getElementById("img_holder").style.display = "block";
	document.getElementById("opaque").style.display = "block";
	document.getElementById("image_view").innerHTML = "";
	document.getElementById("image_view").innerHTML = jpg;
	
	
	}
	
function checkVar(what)
	{
	return Boolean(typeof what != 'undefined' && what);
	}

function close_img()
	{
	document.getElementById("img_holder").style.display = "none";
	document.getElementById("opaque").style.display = "none";
	}
	
function slide2(dir,thm)
	{
	var strlen = thm.length;
	var x = thm.lastIndexOf("_thumb.jpg");
	var title = dir+"."+thm.substr(0,x);
	var jpg = thm.substr(0,x)+".jpg";
	
	jpg1 = "Images/Projects/"+dir+"/"+jpg;
	jpg = "<img src='"+jpg1+"' />";
	//prompt("",jpg);
	
	//alert(ie6);
	if(ie6==false){
		document.getElementById("img_holder").style.display = "block";
		document.getElementById("opaque").style.display = "block";
		document.getElementById("image_view").innerHTML = "";
		document.getElementById("image_view").innerHTML = jpg;
		document.getElementById("img_name").innerHTML = title;
		}else{
		window.open(jpg1,"_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=yes, width=350,");
		}
	
	}
