
var detailsplit = pagedetails.split("&");
var temp;
var initvars=new Array();
var i;
initvars={};
for (i=0; i < detailsplit.length; i++) {
	temp=detailsplit[i].split('=');
	initvars[temp[0]]=temp[1];
}

//values to use, not on all pages:
//initvars['style'] --- for stylesheet stuff
//initvars['userid'] --- 
//initvars['folder_format'] --- sets folder style, same as folder border from main set
//initvars['folder_name'] --- the name of the folder you are currently in, no value if on top
//initvars['folder_is_root'] --- tells is this is the top
//initvars['fld_id##'] --- url of a folder where ## is the number of the folder, 0 is first/top
//initvars['fld_title##'] --- name of other folders, 0 is top
//initvars['fld_count'] --- how many (sub)folders deep you are

if ( 0 < initvars['fld_count']) {
	document.write("<a href='http://www.winkflash.com/photo/public.aspx?u=" + initvars['userid'] + "'>" + initvars['userid'] + "'s home</a>");
	}


var count;
var mapster = new Array();
mapster={};
for (count=1; count < initvars['fld_count']; count++) {
	mapster = initvars['fld_id' + count];
	mapster[count] = mapster;
	document.write(" >> <a href='http://www.winkflash.com/photo/public.aspx?u=" + initvars['userid'] + "&ic=" + mapster + "'>" + initvars['fld_title' + count] + "</a>");
	
}

if (initvars['style'] == "a")
{
document.body.style.backgroundColor = '#66CC00'; 
}

if (initvars['style'] == "b")
{
document.body.style.backgroundColor = '#000000'; 
}

if (initvars['style'] == "c")
{
document.body.style.backgroundColor = '#666666'; 
}

if (initvars['style'] == "d")
{
document.body.style.backgroundColor = '#003399'; 
}

if (initvars['style'] == "e")
{
document.body.style.backgroundColor = '#FF9999'; 
}

