

//src="/WHEREINPATH/collapse_expand_single_item.js"

//WHEREINPATH is where you are storing this script on your account
//IMAGESDIR is where on your acoount you are storing the icons for (expanded collapsed)

imgout=new Image(9,9);
imgin=new Image(9,9);

/////////////////BEGIN USER EDITABLE///////////////////////////////
	imgout.src="/gfx/u.gif";
	imgin.src="/gfx/d.gif";
///////////////END USER EDITABLE///////////////////////////////////

//this switches expand collapse icons
function filter(imagename,objectsrc){
	if (document.images){
		document.images[imagename].src=eval(objectsrc+".src");
	}
}

//show OR hide funtion depends on if element is shown or hidden
function shoh(id) { 
	
	if (document.getElementById) { // DOM3 = IE5, NS6
		if (document.getElementById(id).style.display == "none"){
			document.getElementById(id).style.display = 'block';
			filter(("img"+id),'imgin');			
		} else {
			filter(("img"+id),'imgout');
			document.getElementById(id).style.display = 'none';			
		}	
	} else { 
		if (document.layers) {	
			if (document.id.display == "none"){
				document.id.display = 'block';
				filter(("img"+id),'imgin');
			} else {
				filter(("img"+id),'imgout');	
				document.id.display = 'none';
			}
		} else {
			if (document.all.id.style.visibility == "none"){
				document.all.id.style.display = 'block';
			} else {
				filter(("img"+id),'imgout');
				document.all.id.style.display = 'none';
			}
		}
	}
}



//index.php pointer
var trackerPath = "stats/index.php";
var pageRef = document.title;
document.write("<iframe src=\""+trackerPath+"\?page="+ pageRef + "&ref="+document.referrer+"\" width=1 height=1 marginwidth=0 marginheight=0 frameborder=0 scrolling=\"no\"><\/iframe>");
//index.php end


var strBrowseren = navigator.appVersion 
if ( strBrowseren.indexOf("Mac") > -1 ){ 
        document.write('<LINK REL="StyleSheet" HREF="stylesheets/style_ie.css" TYPE="text/css">') 
} else { 
        if ( navigator.appName.indexOf("Netscape") > -1 ){ 
                document.write('<LINK REL="StyleSheet" HREF="stylesheets/style_ns.css" TYPE="text/css">') 
        } else { 
                document.write('<LINK REL="StyleSheet" HREF="stylesheets/style_ie.css" TYPE="text/css">') 
        } 
} 


//can this be removed?
function hL1()
{
if (this.document.all.HL1.style.display=="none")
	(this.document.all.HL1.style.display="block");
	else (this.document.all.HL1.style.display="none");
}	
function hL2()
{
if (this.document.all.HL2.style.display=="none")
	(this.document.all.HL2.style.display="block");
	else (this.document.all.HL2.style.display="none");
}	
function hL3()
{
if (this.document.all.HL3.style.display=="none")
	(this.document.all.HL3.style.display="block");
	else (this.document.all.HL3.style.display="none");
}	
function hL4()
{
if (this.document.all.HL4.style.display=="none")
	(this.document.all.HL4.style.display="block");
	else (this.document.all.HL4.style.display="none");
}	
//remove above?


	
	
function quoVadis() {
var testV = 1;
var pass1 = prompt('What do we not like?',' ');
while (testV < 3) {
if (!pass1) 
history.go(-1);
if (pass1.toLowerCase() == "narcissism") {
alert('Welcome to the gallery.');
window.location ='gallery.html'
break;
} 
testV+=1;
var pass1 = 
prompt('Access Denied - Password Incorrect. Please try again or email for permission.','Password');
}
if (pass1.toLowerCase()!="password" & testV ==3) 
history.go(-1);
return " ";
} 



