DEBUG = false;

path = window.location.href.split('/');

for (var numberOfSlashesInRoot = 0; numberOfSlashesInRoot <= path.length; numberOfSlashesInRoot++)
{
	if (path[numberOfSlashesInRoot] == "portfolio")
		break;
}

if (DEBUG) { alert(numberOfSlashesInRoot); }

prefix = multiplyString("../", path.length - numberOfSlashesInRoot - 2);





document.write('<td valign="top" align="left" width="125"><img src="../' + prefix + '_/spacer.gif" width="125" height="1"/><br/><div id="mainMenu"><a href="../' + prefix + 'index.html" class="janStanislaw">Ian Wojtowicz</a><br/><br/>');

// Portfolio
if (window.location.href.endsWith("portfolio/index.html") || window.location.href.endsWith("portfolio/"))
{
	document.write('<a href="' + prefix + 'index.html" class="selectedHeading">portfolio</a><br/>');
}
else
{
	document.write('<a href="' + prefix + 'index.html" class="sectionHeading">portfolio</a><br/>');
}



// civic media
if (window.location.href.include("civicmedia/"))
{
    document.write('<a href="' + prefix + 'civicmedia/index.html" class="selectedHeading2">civic media</a><br/>');
}
else
{
    document.write('<a href="' + prefix + 'civicmedia/index.html" class="sectionHeading2">civic media</a><br/>');
}




// social objects
if (window.location.href.include("socialobjects/"))
{
    document.write('<a href="' + prefix + 'socialobjects/index.html" class="selectedHeading2">social objects</a><br/>');
}
else
{
    document.write('<a href="' + prefix + 'socialobjects/index.html" class="sectionHeading2">social objects</a><br/>');
}



// augmentation
if (window.location.href.include("augmentation/"))
{
    document.write('<a href="' + prefix + 'augmentation/index.html" class="selectedHeading2">augmentation</a><br/>');
}
else
{
    document.write('<a href="' + prefix + 'augmentation/index.html" class="sectionHeading2">augmentation</a><br/>');
}



// art machines
if (window.location.href.include("artmachines/"))
{
    document.write('<a href="' + prefix + 'artmachines/index.html" class="selectedHeading2">art machines</a><br/>');
}
else
{
    document.write('<a href="' + prefix + 'artmachines/index.html" class="sectionHeading2">art machines</a><br/>');
}



// sketches
if (window.location.href.include("sketches/"))
{
    document.write('<a href="' + prefix + 'sketches/index.html" class="selectedHeading2">sketches</a><br/>');
}
else
{
    document.write('<a href="' + prefix + 'sketches/index.html" class="sectionHeading2">sketches</a><br/>');
}


// Writing
if (window.location.href.include("writing/"))
{
	document.write('<a href="' + prefix + 'writing/index.html" class="selectedHeading2">writing</a><br/>');
}
else
{
	document.write('<a href="' + prefix + 'writing/index.html" class="sectionHeading2">writing</a><br/>');
} 



// tools
if (window.location.href.include("tools/"))
{
    document.write('<a href="' + prefix + 'tools/index.html" class="selectedHeading2">tools</a><br/>');
}
else
{
    document.write('<a href="' + prefix + 'tools/index.html" class="sectionHeading2">tools</a><br/>');
}

/*

// Sculpture
if (window.location.href.include("sculpture/"))
{
    document.write('<a href="' + prefix + 'sculpture/index.html" class="selectedHeading2">sculpture</a><br/>');
}
else
{
    document.write('<a href="' + prefix + 'sculpture/index.html" class="sectionHeading2">sculpture</a><br/>');
}





// Software
if (window.location.href.include("software/"))
{
    document.write('<a href="' + prefix + 'software/index.html" class="selectedHeading2">software</a><br/>');
}
else
{
    document.write('<a href="' + prefix + 'software/index.html" class="sectionHeading2">software</a><br/>');
}


// Photography
if (window.location.href.include("photography/"))
{
    document.write('<a href="' + prefix + 'photography/index.html" class="selectedHeading2">photography</a><br/>');
}
else
{    
	document.write('<a href="' + prefix + 'photography/index.html" class="sectionHeading2">photography</a><br/>');
}


// Design
if (window.location.href.include("design/"))
{
	document.write('<a href="' + prefix + 'design/index.html" class="selectedHeading2">design</a><br/>');
}
else
{
	document.write('<a href="' + prefix + 'design/index.html" class="sectionHeading2">design</a><br/>');
}



// Drawing

if (window.location.href.include("drawing/"))
{
	document.write('<a href="' + prefix + 'drawing/index.html" class="selectedHeading2">drawing</a><br/>');
}
else
{
	document.write('<a href="' + prefix + 'drawing/index.html" class="sectionHeading2">drawing</a><br/>');
}

// Film
if (window.location.href.include("film/"))
{
	document.write('<a href="' + prefix + 'film/index.html" class="selectedHeading2">film</a><br/>');
}
else
{
	document.write('<a href="' + prefix + 'film/index.html" class="sectionHeading2">film</a><br/>');
}


// Painting
if (window.location.href.include("painting/"))
{
    document.write('<a href="' + prefix + 'painting/index.html" class="selectedHeading2">painting</a><br/>');
}
else
{
    document.write('<a href="' + prefix + 'painting/index.html" class="sectionHeading2">painting</a><br/>');
}






// Sound
if (window.location.href.include("sound/"))
{
    document.write('<a href="' + prefix + 'sound/index.html" class="selectedHeading2">sound</a><br/>');}
else
{    document.write('<a href="' + prefix + 'sound/index.html" class="sectionHeading2">sound</a><br/>');
}


// Unbuilt
if (window.location.href.include("unbuilt/"))
{
	document.write('<a href="' + prefix + 'unbuilt/index.html" class="selectedHeading2">unbuilt</a><br/>');
}
else
{
	document.write('<a href="' + prefix + 'unbuilt/index.html" class="sectionHeading2">unbuilt</a><br/>');
}


*/


document.write('<br/>');





// Artist Statement
/*
if (window.location.href.endsWith("portfolio/artist_statement.html"))
{
    document.write('<a href="' + prefix + 'artist_statement.html" class="selectedHeading">statement</a><br/>');
}
else
{
    document.write('<a href="' + prefix + 'artist_statement.html" class="sectionHeading">statement</a><br/>');
}
*/



// Bio
if (window.location.href.endsWith("portfolio/bio.html"))
{
    document.write('<a href="' + prefix + 'bio.html" class="selectedHeading">bio</a><br/>');
}
else
{
    document.write('<a href="' + prefix + 'bio.html" class="sectionHeading">bio</a><br/>');
}



// CV
if (window.location.href.endsWith("portfolio/cv.html"))
{
    document.write('<a href="' + prefix + 'Ian%20Wojtowicz%20CV.pdf" class="selectedHeading">cv</a><br/>');
}
else
{
    document.write('<a href="' + prefix + 'Ian%20Wojtowicz%20CV.pdf" class="sectionHeading">cv</a><br/>');
}



// Blog
document.write('<a href="http://cyborgspicnic.woj.com" target="_blank" class="sectionHeading">blog</a><br/>');



// Consulting
document.write('<a href="http://portobellonewmedia.com" target="_blank" class="sectionHeading">consulting</a><br/></div>');








	
function multiplyString (str, num)
{
	return num ? Array(num + 1).join(str) : "";
}
