<!--
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function switchImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<switchImages.arguments.length; i+=2) {
			document[switchImages.arguments[i]].src = switchImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function loadIt() {
  if (document.images) {
    webstrip = newImage("../i/webstrip.gif");
    maison_v2 = newImage("../i/nav/maison_v2.gif");
    maison_v3 = newImage("../i/nav/maison_v3.gif");
    maison_v4 = newImage("../i/nav/maison_v4.gif");
    atelier_v2 = newImage("../i/nav/atelier_v2.gif");
    atelier_v3 = newImage("../i/nav/atelier_v3.gif");
    atelier_v4 = newImage("../i/nav/atelier_v4.gif");
    quests_v2 = newImage("../i/nav/quests_v2.gif");
    quests_v3 = newImage("../i/nav/quests_v3.gif");
    quests_v4 = newImage("../i/nav/quests_v4.gif");
    oeuvre_v2 = newImage("../i/nav/oeuvre_v2.gif");
    oeuvre_v3 = newImage("../i/nav/oeuvre_v3.gif");
    oeuvre_v4 = newImage("../i/nav/oeuvre_v4.gif");
    journal_v2 = newImage("../i/nav/journal_v2.gif");
    journal_v3 = newImage("../i/nav/journal_v3.gif");
    journal_v4 = newImage("../i/nav/journal_v4.gif");
    details_v2 = newImage("../i/nav/details_v2.gif");
    details_v3 = newImage("../i/nav/details_v3.gif");
    details_v4 = newImage("../i/nav/details_v4.gif");
		relier_v2 = newImage("../i/nav/relier_v2.gif");
		relier_v3 = newImage("../i/nav/relier_v3.gif");
		relier_v4 = newImage("../i/nav/relier_v4.gif");
		preloadFlag = true;
  }
}

function funkIt(nom,i) {
	switchImages(nom,i);
	return true;
}

// banner rotation script
var topim=new Array();
topim[0]='../i/s/EkaterinburgStrip.gif';
topim[1]='../i/s/ParisStrip.gif';
topim[2]='../i/s/PragueStrip.gif';
topim[3]='../i/s/NYAbstraktStrip.gif';
topim[4]='../i/s/PresqueIsleStrip.gif';

var l=topim.length;
function banizate() { document.getElementById("bani").setAttribute("src", topim[Math.floor(Math.random() * l)]) }

// quote rotation script
var Quote=new Array();
Quote[0] = "\'What is dark in me - illumine.  What is low - raise up and support.\'";
Quote[1] = "\'Reality leaves a lot to the imagination.\'";
Quote[2] = "\'Live as if you were to die tomorrow. Learn as if you were to live forever.\'";
Quote[3] = "\'The stars you see are not real.\'";
Quote[4] = "\'You keep looking but you can't find the woods, while you're hiding in the trees.\'";
Quote[5] = "\'Context is everything.  Dress me up and see...\'";
Quote[6] = "\'I am that part of your will, which eternally wishes evil, but preserves good still.\'";
Quote[7] = "\'I have always found interrogations amusing.\'";
Quote[8] = "\'Do not count the days.  Make the days count.\'";
Quote[9] = "\'He is insane who dreams that he may learn by mortal reasoning the boundless orbit.\'";
Quote[10] = "\'The world will not yield to lucidity.\'";
Quote[11] = "\'This is the nectar that the poets praise.\'";
Quote[12] = "\'Nothing is what it seems any longer.\'";
Quote[13] = "\'Chaos is the score upon which reality is written.\'";
Quote[14] = "\'Who best knows time is most grieved by delay.\'";
Quote[15] = "\'We will commit ourselves to this void, and see whether providence is here also.\'";
Quote[16] = "\'This system serves people only to the extent necessary to ensure that people will serve it.\'";
Quote[17] = "\'You are the music, while the music lasts.\'";
Quote[18] = "\'I feel like the ghost of a total stranger.\'";
Quote[19] = "\'There are times when we must sink to the bottom of our misery to understand truth.\'";
Quote[20] = "\'The world is lost only to the extent that I myself am lost.\'";
Quote[21] = "\'All of it is inside endless and beginningless emptiness.\'";
Quote[22] = "\'He whose face gives no light, shall never become a star.\'";
Quote[23] = "\'Words are loneliness.\'";
Quote[24] = "\'You\'ll never know me. No one knows anyone, ever.\'";
Quote[25] = "\'Who overcomes by force hath overcome but half his foe.\'";
Quote[26] = "\'I came to regard as sacred, the madness of my mind.\'";
Quote[27] = "\'The beyond.  Always the beyond.\'";
Quote[28] = "\'But hard be hardened, blind be blinded more, that they may stumble on, and deeper fall.\'";
Quote[29] = "\'I am the void in you.\'";
Quote[30] = "\'This is not about what you can remember. This is about what you cannot forget.\'";
Quote[31] = "\'Out of suffering have emerged the strongest souls.\'";
Quote[32] = "\'In the sunset of dissolution, everything is illuminated by the aura of nostalgia...\'";
Quote[33] = "\'We might also call vertigo the intoxication of the weak.\'";
Quote[34] = "\'Music was like a rose blooming on a boundless snow-covered plain of silence.\'";
Quote[35] = "\'No matter how brutal life becomes, peace always reigns in the cemetary.\'";
Quote[36] = "\'Love is a battle.  And I plan to go on fighting.  To the end.\'";
Quote[37] = "\'Only the most na&iuml;ve of questions are truly serious.  They are the questions with no answers.\'";
Quote[38] = "\'When the heart speaks, the mind finds it indecent to object.\'";
Quote[39] = "\'Happiness is to be found only in doing what one loves, following the soul's profoundest bent.\'";
Quote[40] = "\'One should never remain alone - solitude begets melancholy.\'";
Quote[41] = "\'I cannot stop gazing at this moonlight within me.\'";
Quote[42] = "\'There is no sharper point than that of infinity.\'";
Quote[43] = "\'When a mystery is too powerful, one dare not disobey.\'";
Quote[44] = "\'We write of eternal things.\'";
Quote[45] = "\'What is essential is invisible to the eye.\'";
Quote[46] = "\'All the stars are a riot of flowers.\'";
Quote[47] = "\'Sympathy is the education of the spectator from the point of view of the artist.\'";
Quote[48] = "\'Art has lost her soul.\'";
Quote[49] = "\'Nothing is absolute.\'";
Quote[50] = "\'At the call of the inner need, that which is outwardly foul may be inwardly pure, and vice versa.\'";
Quote[51] = "\'You don't have the right to gamble with your happiness.\'";
Quote[52] = "\'The flood carries you away; that's life; we can't judge or understand, we can only let ourselves drift.\'";
Quote[53] = "\'I am alone.  Or, rather, alone with that other \"I\".\'";
Quote[54] = "\'He inspired the meaningless with meaning, and the lifeless with life.\'";
Quote[55] = "\'For what is a recollection, if not the soul of an impression?\'";
Quote[56] = "\'That was his belief, and if he were ever to doubt it, his life would become meaningless.\'";
Quote[57] = "\'Each individual man is the realization of a certain concept within the divine intelligence.\'";
Quote[58] = "\'Conquer yourself rather than the world.\'";
Quote[59] = "\'It seemed to me as if the sky split open from one end to the other to rain down fire.\'";

var Q = Quote.length;
var sQ=Math.round(Math.random()*(Q-1));
function quoteIt() { document.write(Quote[sQ]) ; }

// tooltip script

var tipMoskvaI = "<img src=\'../i/t/Moskva_v1.jpg\' class=\'thumb\' /> Moscow changes one &ndash; there\'s nowhere even remotely like it.  Wild, lawless, ever-changing, frigid, and the most beautiful, crazy women in the world, without question.";
var tipBerlinI = "<img src=\'../i/t/Berlin_v1.jpg\' class=\'thumb\' /> First stop in four years: Berlin, to finally (!) experience Tresor, a techno Mecca, and now a dirt lot.  Connections made (except that fateful train at Ostbahnhof), and it was \'on\'.";
var tipPrahaI = "<img src=\'../i/t/Praha_v1.jpg\' class=\'thumb\' /> There's also nowhere remotely similar to \'Zlata Praha\' (Golden Prague): from the narrow, winding cobblestone streets through \'the city of 100 spires\' to Praga Mystika -- a truly haunting city.";
var tipLondon = "<img src=\'../i/t/London_v1.jpg\' class=\'thumb\' /> Had to go somewhere whilst waiting for my Russian visa...so London, and why not? Three hazy weeks, the highlight of which was definitely the Jack The Ripper tour of Whitechapel.";
var tipLiverpool = "<img src=\'../i/t/Liverpool_v1.jpg\' class=\'thumb\' /> Most shots here are random indeed, sans the penchant for self-guided / researched tours of various interests. Liverpool proved to be so much fun that these are from the *second* trip.";
var tipPrahaII = "<img src=\'../i/t/Praha_v2.jpg\' class=\'thumb\' /> The first journey to the Bohemian capitol was so good, it required a much longer return.  And so it went &ndash; three months of a complete insanity, heretofore unrivaled.";
var tipMoskvaII = "<img src=\'../i/t/Moskva_v2.jpg\' class=\'thumb\' /> The much - anticipated return to Moscow. Far and away the strangest trip imaginable, for reasons not up for mention here: it meshed nicely with an equally bizarre situation.";
var tipStuttgart = "<img src=\'../i/t/Stuttgart_v1.jpg\' class=\'thumb\' /> Though the purpose of the trip was to finally hit Neue Heimat\'s night at Prag Club, some down time was had to reflect.  Along the snowy trail: the technical-industrial capitol of Deutschland.";
var tipMalmo = "<img src=\'../i/t/Malmo_v1.jpg\' class=\'thumb\' /> Completion of a cycle - whilst waiting for a mate from G&ouml;teborg, time for a little stroll about the port city of Malm&ouml;.  Deliriously quaint and beautiful.";
var tipPrahaIII = "<img src=\'../i/t/Praha_v3.jpg\' class=\'thumb\' /> Time for a different angle of Zlata Praha: historical.  Any challenge to the kingdom of Bohemia would have to pass through the southern end: the fortress of V&yacute;&scaron;ehrad.";
var tipBerlinII = "<img src=\'../i/t/Berlin_v2.jpg\' class=\'thumb\' /> The first visit to post-Tresor Berlinstadt resulted in criminal amounts of fun.  After-hours became after-days, as yet another missed flight led to \'<a class=\'tip\' href=\'http://www.troiamatria.net/T/h/music.htm\' target=\'_blank\'>Drei N&auml;chte</a>\' in Berlin.";
var tipBerlinIII = "<img src=\'../i/t/Berlin_v3.jpg\' class=\'thumb\' /> Berlinstadt simply never ceases to blow me away - SO much fun!!  Oh yeah - there's history, too...this was an impromptu trip to check out the newly-opened Tresor, en route back to Praha.  ";
var tipPrahaIV = "<img src=\'../i/t/Praha_v4.jpg\' class=\'thumb\' /> Another crazy trip to Praha - in the summer for the first time.  Ten days, and a year\'s worth of good times.  As always, cannot wait to return...";

function pop(nomen,wind) {
	window.open(nomen,wind,'height=533,width=628,status=0,scrollbars=0,resizable=no');
}

function swapIt(series, divName, totalImgs) {
	for (var i=1; i<=totalImgs; i++) {
		var showDivName = series + i;
		var showObj = document.getElementById(showDivName);
		if (showDivName == divName)
			showObj.style.display = 'block';
		else
			showObj.style.display = 'none';
		}
	}

/***********************************************
* Switch Content script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use. Last updated April 2nd, 2005.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var enablepersist = "off"; //Enable saving state of content structure using session cookies? (on/off)
var collapseprevious = "yes"; //Collapse previously open content when opening present? (yes/no)

var contractsymbol = '<img src="../i/arrow.gif">'; //HTML for contract symbol. For image, use: <img src="whatever.gif">
var expandsymbol = '<img src="../i/s_arrow.gif">'; //HTML for expand symbol.


if (document.getElementById){
document.write('<style type="text/css">')
document.write('.switchcontent{display:none;}')
document.write('</style>')
}

function getElementbyClass(rootobj, classname){
var temparray=new Array()
var inc=0
var rootlength=rootobj.length
for (i=0; i<rootlength; i++){
if (rootobj[i].className==classname)
temparray[inc++]=rootobj[i]
}
return temparray
}

function sweeptoggle(ec){
var thestate=(ec=="expand")? "block" : "none"
var inc=0
while (ccollect[inc]){
ccollect[inc].style.display=thestate
inc++
}
revivestatus()
}


function contractcontent(omit){
var inc=0
while (ccollect[inc]){
if (ccollect[inc].id!=omit)
ccollect[inc].style.display="none"
inc++
}
}

function expandcontent(curobj, cid){
var spantags=curobj.getElementsByTagName("SPAN")
var showstateobj=getElementbyClass(spantags, "showstate")
if (ccollect.length>0){
if (collapseprevious=="yes")
contractcontent(cid)
document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "none"
if (showstateobj.length>0){ //if "showstate" span exists in header
if (collapseprevious=="no")
showstateobj[0].innerHTML=(document.getElementById(cid).style.display=="block")? contractsymbol : expandsymbol
else
revivestatus()
}
}
}

function revivecontent(){
contractcontent("omitnothing")
selectedItem=getselectedItem()
selectedComponents=selectedItem.split("|")
for (i=0; i<selectedComponents.length-1; i++)
document.getElementById(selectedComponents[i]).style.display="block"
}

function revivestatus(){
var inc=0
while (statecollect[inc]){
if (ccollect[inc].style.display=="block")
statecollect[inc].innerHTML=contractsymbol
else
statecollect[inc].innerHTML=expandsymbol
inc++
}
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function getselectedItem(){
if (get_cookie(window.location.pathname) != ""){
selectedItem=get_cookie(window.location.pathname)
return selectedItem
}
else
return ""
}

function saveswitchstate(){
var inc=0, selectedItem=""
while (ccollect[inc]){
if (ccollect[inc].style.display=="block")
selectedItem+=ccollect[inc].id+"|"
inc++
}

document.cookie=window.location.pathname+"="+selectedItem
}

function do_onload(){
uniqueidn=window.location.pathname+"firsttimeload"
var alltags=document.all? document.all : document.getElementsByTagName("*")
ccollect=getElementbyClass(alltags, "switchcontent")
statecollect=getElementbyClass(alltags, "showstate")
if (enablepersist=="on" && ccollect.length>0){
document.cookie=(get_cookie(uniqueidn)=="")? uniqueidn+"=1" : uniqueidn+"=0"
firsttimeload=(get_cookie(uniqueidn)==1)? 1 : 0 //check if this is 1st page load
if (!firsttimeload)
revivecontent()
}
if (ccollect.length>0 && statecollect.length>0)
revivestatus()
}

if (window.addEventListener)
window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload)
else if (document.getElementById)
window.onload=do_onload

if (enablepersist=="on" && document.getElementById)
window.onunload=saveswitchstate

/***********************************************
* Animated Collapsible DIV v2.4- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/

animatedcollapse.addDiv('v1999', 'speed=729,group=goda,hide=1,fade=1,persist=1');
animatedcollapse.addDiv('v2003', 'speed=729,group=goda,hide=1,fade=1');
animatedcollapse.addDiv('v2004', 'speed=729,group=goda,hide=1,fade=1');
animatedcollapse.addDiv('v2005', 'speed=729,group=goda,hide=1,fade=1');
animatedcollapse.addDiv('v2007', 'speed=729,group=goda,hide=1,fade=1');

animatedcollapse.addDiv('vcities', 'speed=729,group=atelier,hide=1,fade=1,persist=1');
animatedcollapse.addDiv('vnatura', 'speed=729,group=atelier,hide=1,fade=1');
animatedcollapse.addDiv('vabstrakt', 'speed=729,group=atelier,hide=1,fade=1');

animatedcollapse.ontoggle=function($, divobj, state){ //fires each time a DIV is expanded/contracted
	//$: Access to jQuery
	//divobj: DOM reference to DIV being expanded/ collapsed. Use "divobj.id" to get its ID
	//state: "block" or "none", depending on state
}

animatedcollapse.init();

//-->