/* Author Joe McCormack.  Copyright 2005.  All Rights Reserved. joe@commerceweaverpro.com */
var basethumbpagepath = ""; /* Path to folder holding thumbnail content pages */
var orientation = "vertical"; /* Orientation for rendering and controlling scroller.  Either vertical or horizontal */
var scroller_width = 486; /* Width of scroller when horizontal.  Height of scroller when vertical.  */
var scroller_height = 80; /* Height of scroller when horizontal.  Width of scroller when vertical.  */
var thumb_img_container_width = 80; /* Width of container holding single thumbnail image */
var thumb_img_container_height = 82; /* Height of container holding single thumbnail image */
var thumb_img_width = 80; /* Width of perimeter thumbnail image */
var thumb_img_height = 80; /* Height of perimeter thumbnail image */
var scrollmsec = 25; /* Recursion Rate */
var steprate = 2; /* Pixel shift per iteration */
var img_over_opacity = 100; /* Opacity level of thumbnail image when mouse is over it */
var img_default_opacity = 50; /* Opacity level of thumbnail image when mouse is not over it */
var img_idprefix = "img"; /* ID prefix of each thumbnail image */
var basethumbimgext = ".jpg"; /* Extension of medium sized thumbnails */
var basethumbimgpath = "images/"; /* Path where images exist */
var basethumbmedium = "_medium"; /* Filename flag differenciating image from others */
var basethumblarge = "_large"; /* Filename flag differenciating image from others */
var dropshadowstate = 0; /* 0 = dropshadow off, 1 = dropshadow on */
var hidethescroller = 0; /* 0 = no, 1 = yes */
var slot_overstate = "template_images/gallery_circle-over.gif"; /* Location of slot over circle */
var slot_outstate = "template_images/gallery_circle.gif"; /* Location of slot out circle */
var background_icon_home = "template_images/backdrop_icon1.jpg"; /* Location of background home image */
var background_icon_bio = "template_images/backdrop_icon2.jpg"; /* Location of background bio image */
var background_icon_resume = "template_images/backdrop_icon3.jpg"; /* Location of background resume image */
/* Do not use */
scrolldata = new Array();
var thumbx = 0;
var thumby = 0;
var scrolldatasize = 0;
var halfpoint = 0;
var direction = 0;
var mx = 0, my = 0;
var spawned = 0;
var previous_direction = 0;
var net_browser = 0;
var browser_cramps = 0;
function query_element(actor, ox, oy) {
var x_posi = 0, y_posi = 0;
if (document.all) { actor = document.all[actor]; }
else { actor = document.getElementById(actor); }
while (actor != null) {
		       x_posi += actor.offsetLeft - actor.scrollLeft;
		       y_posi += actor.offsetTop - actor.scrollTop;
		       /* Recycle */
		       actor = actor.offsetParent;
		      }
return((x_posi + ox) + "," + (y_posi + oy));
}
function create_scroller() {
wbrowsertype();
startopacities();
var finished = 0;
var xypos = "";
var ntarget = "";
var ntargetstep = 0;
var offsetx_start = 0, offsety_start = 0;
var proceed_align = 0;
xypos = query_element("thumbscroller", 0, 0); last_pos = xypos.split(",");
thumbx = parseInt(last_pos[0]) + tparent_x; thumby = parseInt(last_pos[1]) + tparent_y;
document.getElementById("pleft").style.left = thumbx;
document.getElementById("pleft").style.top = thumby;
document.getElementById("thumbnail_background").style.left = thumbx;
document.getElementById("thumbnail_background").style.top = thumby;
if (orientation == "vertical") {
				document.getElementById("pright").style.left = thumbx;
				document.getElementById("pright").style.top = thumby + (scroller_width - thumb_img_height);
				halfpoint = thumby + parseInt(scroller_width / 2);
				document.getElementById("pvleft").style.left = thumbx - 5;
				document.getElementById("pvleft").style.top = thumby + thumb_img_height;
				document.getElementById("pvright").style.left = thumbx + scroller_height + 4;
				document.getElementById("pvright").style.top = thumby + thumb_img_height;
			       }
else {
      document.getElementById("pright").style.left = thumbx + (scroller_width - thumb_img_width);
      document.getElementById("pright").style.top = thumby;
      halfpoint = parseInt((thumbx + scroller_width) / 2);
     }
do {
    ntargetstep = ntargetstep + 1;
    ntarget = "tn" + ntargetstep;
    if (document.getElementById(ntarget)) {
					   scrolldatasize = scrolldatasize + 1; proceed_align = 0;
					   if (orientation == "vertical") {
					         			   offsetx_start = thumbx;
						 			   offsety_start = thumby + (thumb_img_container_height * ntargetstep);
					         			   if ((offsety_start + thumb_img_container_height) < (thumby + scroller_width)) { proceed_align = 1; }
									  }
					   else {
					         offsetx_start = thumbx + (thumb_img_container_width * ntargetstep);
						 offsety_start = thumby;
					         if ((offsetx_start + thumb_img_container_width) < (thumbx + scroller_width)) { proceed_align = 1; }
						}
					   scrolldata[scrolldatasize] = ntarget + "," + offsetx_start + "," + offsety_start;
					   if (proceed_align == 1) {
								    document.getElementById(ntarget).style.left = offsetx_start;
								    document.getElementById(ntarget).style.top = offsety_start;
								    document.getElementById(ntarget).style.visibility = "visible";
								   }
					  }
    else { finished = 1; }
   } while (finished != 1);
document.getElementById("pleft").style.visibility = "visible";
document.getElementById("pright").style.visibility = "visible";
document.getElementById("pvleft").style.visibility = "visible";
document.getElementById("pvright").style.visibility = "visible";
}
function scrollertrack(e) {
if (!e) { var e = window.event; }
if (e.pageX || e.pageY) { mx = e.pageX; my = e.pageY; }
else { mx = event.clientX; my = event.clientY; }
if (orientation == "vertical") {
      if ((my > thumby) && (my < (thumby + (scroller_width - thumb_img_container_height)))) {
	if ((mx > thumbx) && (mx < (thumbx + thumb_img_container_width))) {
		if (my > halfpoint) { direction = 1; scrollspawn(); }
		else { direction = -1; scrollspawn(); }
							       		  }
	else { scrollkill(); }
			    				     				    }
      else { scrollkill(); }
			       }
else {
      if ((my > thumby) && (my < (thumby + thumb_img_container_height))) {
	if ((mx > thumbx) && (mx < (thumbx + scroller_width))) {
		if (mx > halfpoint) { direction = 1; scrollspawn(); }
		else { direction = -1; scrollspawn(); }
							       }
	else { scrollkill(); }
			    					         }
      else { scrollkill(); }
     }
}
function scrollspawn() {
if (spawned == 0) {
		   spawned = 1;
		   spawntime = setTimeout("scrollermod()", scrollmsec);
		  }
		       }
function scrollkill() {
direction = 0; spawned = 0;
try {
     startopacities();
     clearTimeout(spawntime);
    } catch(onerror) { /* Not Yet Spawned */ }
		      }
function scrollermod() {
clearTimeout(spawntime);
if (browser_cramps == 1) {
var x = 0; var augment = 0;
var startx = 0, starty = 0;
var endx = 0, endy = 0;
var offsetx_start = 0, offsety_start = 0;
var passed = 0;
var proceed_align = 0;
if (direction == 1) { augment = 1 * steprate; }
else { augment = -1 * steprate; }
try {
tbit = scrolldata[1].split(",");
startx = parseInt(tbit[1]); starty = parseInt(tbit[2]);
tbit = scrolldata[scrolldatasize].split(",");
endx = parseInt(tbit[1]); endy = parseInt(tbit[2]);
if (orientation == "vertical") {
				if ((starty - 1) >= (thumby + thumb_img_container_height)) { augment = 0; }
				if (endy <= ((thumby + scroller_width) - (thumb_img_container_height * 2))) { augment = 0; }
			       }
else {
      if ((startx - 1) >= (thumbx + thumb_img_container_width)) { augment = 0; }
      if (endx <= (scroller_width - (thumb_img_container_width * 2))) { augment = 0; }
     }
if (previous_direction != direction) {
				      if (direction == 1) { augment = 1 * steprate; }
				      else { augment = -1 * steprate; }
				     }
for (x = 1; x <= scrolldatasize; x++) {
				       tbit = scrolldata[x].split(","); proceed_align = 0;
				       if (orientation == "vertical") {
								       offsetx_start = tbit[1]; offsety_start = parseInt(tbit[2]) + augment;
								       scrolldata[x] = tbit[0] + "," + offsetx_start + "," + offsety_start;
								       if ((offsety_start > thumby) && ((offsety_start + thumb_img_container_height) < (thumby + scroller_width))) { proceed_align = 1; }
								      }
				       else {
				             offsetx_start = parseInt(tbit[1]) + augment; offsety_start = tbit[2];
				             scrolldata[x] = tbit[0] + "," + offsetx_start + "," + offsety_start;
				             if ((offsetx_start > thumbx) && ((offsetx_start + thumb_img_container_width) < (thumbx + scroller_width))) { proceed_align = 1; }
					    }
				       if (proceed_align == 1) {
								document.getElementById(tbit[0]).style.left = offsetx_start;
								document.getElementById(tbit[0]).style.top = offsety_start;
								document.getElementById(tbit[0]).style.visibility = "visible";
							 	if (orientation == "vertical") { mouse_img_coorelation(x, parseInt(tbit[1]), parseInt(tbit[2])); }
								else { mouse_img_coorelation(x, parseInt(tbit[1]), parseInt(tbit[2])); }
							       }
				       else {
					     document.getElementById(tbit[0]).style.visibility = "hidden";
					    }
				      }
previous_direction = direction;
spawned = 0; scrollspawn();
}
catch(onerror) { /* Bypass Error */ }
		} //End if
}
function mouse_img_coorelation(target, x, y) {
var x_left = 0, x_right = 0, y_top = 0, y_btm = 0;
var net_target = img_idprefix + target;
if (orientation == "vertical") {
				x_left = thumbx; x_right = thumbx + thumb_img_container_width;
				y_top = y; y_btm = y + thumb_img_container_height;
			       }
else {
      x_left = x; x_right = x + thumb_img_container_width;
      y_top = thumby; y_btm = thumby + thumb_img_container_height;
     }
if ((mx > x_left) && (mx < x_right)) {
	if ((my > y_top) && (my < y_btm)) {
		thumb_over(net_target);
					  }
	else { thumb_out(net_target); }
				     }
else { thumb_out(net_target); }
}
function wbrowsertype() {
/*
__ net_browser flag values based on OS/Browser __
	0 = Undetermined OS / Browser
	17 = Undetermined OS / Browser
MAC OS:
	2 = Unknown Browser
	3 = Internet Explorer
	4 = Safari
	5 = Firefox
	6 = Netscape
	7 = Opera
	8 = Camino
	9 = Firebird
WINDOWS OS:
	10 = Unknown Browser
	11 = Internet Explorer
	12 = Firefox
	13 = Netscape
	14 = Opera
	15 = Camino
	16 = Firebird
UNKNOWN OS:
	17 = Unknown Browser
	18 = Safari
	19 = Internet Explorer
	20 = Firefox
	21 = Netscape
	22 = Opera
	23 = Camino
	24 = Firebird
*/
var btfound = 0; browser_detect = navigator.userAgent.toLowerCase();
if ((browser_detect.indexOf("konqueror") + 1)) { btfound = 1; net_browser = 1; }
if ((browser_detect.indexOf("mac_powerpc") + 1)) { btfound = 1; net_browser = 3; }
if (btfound == 0) {
	// MAC OS
	if ((browser_detect.indexOf("macintosh") + 1)) {
		if ((browser_detect.indexOf("safari") + 1)) { btfound = 1; net_browser = 4; }
		else if ((browser_detect.indexOf("firefox") + 1)) { btfound = 1; net_browser = 5; }
		else if ((browser_detect.indexOf("netscape") + 1)) { btfound = 1; net_browser = 6; }
		else if ((browser_detect.indexOf("opera") + 1)) { btfound = 1; net_browser = 7; }
		else if ((browser_detect.indexOf("camino") + 1)) { btfound = 1; net_browser = 8; }
		else if ((browser_detect.indexOf("firebird") + 1)) { btfound = 1; net_browser = 9; }
		else { btfound = 1; net_browser = 2; }
						       }
	// Windows OS
	if ((browser_detect.indexOf("windows") + 1) && btfound == 0) {
		if ((browser_detect.indexOf("msie") + 1)) { btfound = 1; net_browser = 11; }
		else if ((browser_detect.indexOf("firefox") + 1)) { btfound = 1; net_browser = 12; }
		else if ((browser_detect.indexOf("netscape") + 1)) { btfound = 1; net_browser = 13; }
		else if ((browser_detect.indexOf("opera") + 1)) { btfound = 1; net_browser = 14; }
		else if ((browser_detect.indexOf("camino") + 1)) { btfound = 1; net_browser = 15; }
		else if ((browser_detect.indexOf("firebird") + 1)) { btfound = 1; net_browser = 16; }
		else { btfound = 1; net_browser = 10; }
						     		     }
	// Unknown OS
	if (btfound == 0) {
		if ((browser_detect.indexOf("safari") + 1)) { net_browser = 18; }
		else if ((browser_detect.indexOf("msie") + 1)) { net_browser = 19; }
		else if ((browser_detect.indexOf("firefox") + 1)) { net_browser = 20; }
		else if ((browser_detect.indexOf("netscape") + 1)) { net_browser = 21; }
		else if ((browser_detect.indexOf("opera") + 1)) { net_browser = 22; }
		else if ((browser_detect.indexOf("camino") + 1)) { net_browser = 23; }
		else if ((browser_detect.indexOf("firebird") + 1)) { net_browser = 24; }
		else { net_browser = 17; }
			  }
		  }
}
function startopacities() {
var finished = 0, ntargetstep = 0, ntarget = "";
do {
    ntargetstep = ntargetstep + 1;
    ntarget = "img" + ntargetstep;
    if (document.getElementById(ntarget)) { thumb_out(ntarget); }
    else { finished = 1; }
   } while (finished != 1);
}
function thumb_over(target) {
if (net_browser == 3 || net_browser == 11 || net_browser == 19) { /*IE*/ document.getElementById(target).filters.alpha.opacity = img_over_opacity; }
else if (net_browser == 5 || net_browser == 12 || net_browser == 20) { /*FF*/ document.getElementById(target).style.MozOpacity = img_over_opacity / 100; }
else { /*W3C*/ document.getElementById(target).opacity = img_over_opacity / 100; }
}
function thumb_out(target) {
if (net_browser == 3 || net_browser == 11 || net_browser == 19) { /*IE*/ document.getElementById(target).filters.alpha.opacity = img_default_opacity; }
else if (net_browser == 5 || net_browser == 12 || net_browser == 20) { /*FF*/ document.getElementById(target).style.MozOpacity = img_default_opacity / 100; }
else { /*W3C*/ document.getElementById(target).opacity = img_default_opacity / 100; }
}
document.onmousemove = scrollertrack;
/* PANES CONTROLLER */
var pane_top_offset = -60; /* Y Offset from position of main block content area to place panes */
var pane_left_offset = 0; /* X Offset from position of main block content area to place panes */
var tparent_x = 460; /* X Offset from position of main block content area to place scroller */
var tparent_y = -20; /* Y Offset from position of main block content area to place scroller */
var dropshadow_x_offset = 3; /* X Offset for dropshadow box */
var dropshadow_y_offset = 3; /* Y Offset for dropshadow box */
/* Do Not Use */
var pane_x = 0, pane_y = 0;
var all_loaded = 0;
function pos_elements() {
wbrowsertype();
if (net_browser != 3 && net_browser != 11 && net_browser != 19) {
	document.getElementById("static_pos").style.paddingTop = 45;
	document.getElementById("tab_one").style.top = 0;
	document.getElementById("tab_two").style.top = 0;
	document.getElementById("tab_three").style.top = 0;
	document.getElementById("ff_buffer").style.paddingTop = 5;
								}
}
function showhome() {
hide_all_panes(); query_default();
document.getElementById("home").style.left = pane_x;
document.getElementById("home").style.top = pane_y;
document.getElementById("home").style.visibility = "visible";
document.getElementById("static_back").src = background_icon_home;
showscroller();
}
function showgallery() {
showscroller();
thumbpagename(3,1,'illustration_boy_thumb.html');
}
function showbio() {
hide_all_panes(); query_default();
document.getElementById("static_back").src = background_icon_bio;
document.getElementById("dropshadow_bio").style.left = pane_x + dropshadow_x_offset + pane_left_offset;
document.getElementById("dropshadow_bio").style.top = pane_y + dropshadow_y_offset + pane_top_offset;
document.getElementById("bio").style.left = pane_x + pane_left_offset;
document.getElementById("bio").style.top = pane_y + pane_top_offset;
document.getElementById("ietweek_bio").style.left = pane_x + pane_left_offset;
document.getElementById("ietweek_bio").style.top = pane_y + pane_top_offset;
document.getElementById("ietweek_bio").style.visibility = "visible";
if (dropshadowstate == 1) { document.getElementById("dropshadow_bio").style.visibility = "visible"; }
document.getElementById("bio").style.visibility = "visible";
document.getElementById("static_pic").style.visibility = "visible";
showscroller();
}
function showresume() {
hide_all_panes(); query_default();
document.getElementById("static_back").src = background_icon_resume;
document.getElementById("dropshadow_resume").style.left = pane_x + dropshadow_x_offset + pane_left_offset;
document.getElementById("dropshadow_resume").style.top = pane_y + dropshadow_y_offset + pane_top_offset;
document.getElementById("resume").style.left = pane_x + pane_left_offset;
document.getElementById("resume").style.top = pane_y + pane_top_offset;
document.getElementById("ietweek_resume").style.left = pane_x + pane_left_offset;
document.getElementById("ietweek_resume").style.top = pane_y + pane_top_offset;
document.getElementById("ietweek_resume").style.visibility = "visible";
if (dropshadowstate == 1) { document.getElementById("dropshadow_resume").style.visibility = "visible"; }
document.getElementById("resume").style.visibility = "visible";
document.getElementById("static_pic").style.visibility = "visible";
showscroller();
}
function showcontact() {
hide_all_panes(); query_default();
document.getElementById("static_back").src = background_icon_home;
document.getElementById("dropshadow_contact").style.left = pane_x + dropshadow_x_offset + pane_left_offset;
document.getElementById("dropshadow_contact").style.top = pane_y + dropshadow_y_offset + pane_top_offset;
document.getElementById("contact").style.left = pane_x + pane_left_offset;
document.getElementById("contact").style.top = pane_y + pane_top_offset;
if (dropshadowstate == 1) { document.getElementById("dropshadow_contact").style.visibility = "visible"; }
document.getElementById("contact").style.visibility = "visible";
document.getElementById("static_pic").style.visibility = "visible";
showscroller();
}
function showscroller() {
//hide_all_panes();
document.getElementById("pvleft").style.visibility = "visible";
document.getElementById("pvright").style.visibility = "visible";
query_default(); browser_cramps = 1;
tparent_x = tparent_x + pane_x;
tparent_y = tparent_y + pane_y;
if (all_loaded == 0) { all_loaded = 1; create_scroller(); }
else {
      var finished = 0, ntargetstep = 0, ntarget = "";
      do {
          ntargetstep = ntargetstep + 1;
          ntarget = "tn" + ntargetstep;
          if (document.getElementById(ntarget)) {
						 var startx = parseInt(document.getElementById(ntarget).style.left);
						 if (startx > 0) { document.getElementById(ntarget).style.visibility = "visible"; }
						}
          else { finished = 1; }
         } while (finished != 1);
     }
//document.getElementById("static_pic").style.visibility = "hidden";
document.getElementById("thumbnail_background").style.visibility = "visible";
}
function thumbpagename(gallery, item, target) {
hide_all_panes(); query_default();
document.getElementById("dropshadow_thumbnail_pane").style.left = pane_x + dropshadow_x_offset + pane_left_offset;
document.getElementById("dropshadow_thumbnail_pane").style.top = pane_y + dropshadow_y_offset + pane_top_offset + 28;
document.getElementById("thumbnail_pane").style.left = pane_x + pane_left_offset;
document.getElementById("thumbnail_pane").style.top = pane_y + pane_top_offset;
document.getElementById("ietweek_thumbnail").style.left = pane_x + pane_left_offset;
document.getElementById("ietweek_thumbnail").style.top = pane_y + pane_top_offset;
if (currentslottarget > 1) {
			    try {
			    var prev_slot = "slot" + currentslottarget;
			    document.getElementById(prev_slot).style.backgroundColor = slotbackground_default;
			    prev_slot = "slotlink" + currentslottarget;
			    document.getElementById(prev_slot).style.visibility = "hidden";
			    prev_slot = "slot" + currentslottarget;
			    document.getElementById(prev_slot).style.backgroundColor = "";
				}
			    catch(onerror) { /* Out of synch events */ }
	      		   }
currentslottarget = item;
swap_header(gallery);
}
function swap_header_start(gallery) {
if (currentslottarget > 1) {
			    try {
			    var prev_slot = "slot" + currentslottarget;
			    document.getElementById(prev_slot).style.backgroundColor = slotbackground_default;
			    prev_slot = "slotlink" + currentslottarget;
			    document.getElementById(prev_slot).style.visibility = "hidden";
			    prev_slot = "slot" + currentslottarget;
			    document.getElementById(prev_slot).style.backgroundColor = "";
				}
			    catch(onerror) { /* Out of synch events */ }
			   }
currentslottarget = 1;
swap_header(gallery);
}
function swap_header(gallery) {
if (gallery == 1) {
		   document.getElementById("gallery_header").src = galleryconcept_image;
		   for (x = 1; x < concept_data.length; x++) {
				var current_slot = "slot" + x;
				pieces = concept_data[x].split(",");
				var filename = pieces[0]; var linktitle = pieces[1]; var subtitle = pieces[2]; var clienttitle = pieces[3];
				if (x == currentslottarget) {
							     document.getElementById(current_slot).style.backgroundColor = slotbackground;
							     filenamecut = pieces[0].split(".");
							     // Populate thumbnail_image
							     var cutimage = basethumbimgpath + filenamecut[0] + basethumbmedium + basethumbimgext;
							     document.getElementById("thumbnail_image").src = cutimage;
							     // Populate thumbcontent
							     document.getElementById("thumbcontent").src = pieces[0];
							    }
				var compiler = "";
				if (currentslottarget == x) {
							     compiler = "<img id=\"slotimg"+x+"\" src=\""+slot_overstate+"\" border=\"0\" alt=\"\" align=\"right\" />";
							    }
				else {
				      compiler = "<img id=\"slotimg"+x+"\" src=\""+slot_outstate+"\" border=\"0\" alt=\"\" align=\"right\" onmouseover=\"slotimgover("+x+");\" onmouseout=\"slotimgout("+x+");\" onmousedown=\"activate_item("+gallery+","+x+");\" />";
				     }
				compiler = compiler + "&nbsp;&nbsp;<a id=\"slotlink"+x+"\" href=\"javascript:void(0);\" onmousedown=\"activate_item("+gallery+","+x+");\" class=\"slotstyle\">"+linktitle+"</a>";
				document.getElementById(current_slot).innerHTML = compiler;
				if (currentslottarget == x) {
							     document.getElementById("slotlink"+x).style.visibility = "visible";
							    }
				else { document.getElementById(current_slot).style.backgroundColor = ""; }
							     }
		  }
if (gallery == 2) {
		   document.getElementById("gallery_header").src = gallerypainting_image;
		   for (x = 1; x < painting_data.length; x++) {
				var current_slot = "slot" + x;
				pieces = painting_data[x].split(",");
				var filename = pieces[0]; var linktitle = pieces[1]; var subtitle = pieces[2]; var clienttitle = pieces[3];
				if (x == currentslottarget) {
							     document.getElementById(current_slot).style.backgroundColor = slotbackground;
							     filenamecut = pieces[0].split(".");
							     // Populate thumbnail_image
							     var cutimage = basethumbimgpath + filenamecut[0] + basethumbmedium + basethumbimgext;
							     document.getElementById("thumbnail_image").src = cutimage;
							     // Populate thumbcontent
							     document.getElementById("thumbcontent").src = pieces[0];
							    }
				var compiler = "";
				if (currentslottarget == x) {
							     compiler = "<img id=\"slotimg"+x+"\" src=\""+slot_overstate+"\" border=\"0\" alt=\"\" align=\"right\" />";
							    }
				else {
				      compiler = "<img id=\"slotimg"+x+"\" src=\""+slot_outstate+"\" border=\"0\" alt=\"\" align=\"right\" onmouseover=\"slotimgover("+x+");\" onmouseout=\"slotimgout("+x+");\" onmousedown=\"activate_item("+gallery+","+x+");\" />";
				     }
				compiler = compiler + "&nbsp;&nbsp;<a id=\"slotlink"+x+"\" href=\"javascript:void(0);\" onmousedown=\"activate_item("+gallery+","+x+");\" class=\"slotstyle\">"+linktitle+"</a>";
				document.getElementById(current_slot).innerHTML = compiler;
				if (currentslottarget == x) {
							     document.getElementById("slotlink"+x).style.visibility = "visible";
							    }
				else { document.getElementById(current_slot).style.backgroundColor = ""; }
							      }
		  }
if (gallery == 3) {
		   document.getElementById("gallery_header").src = galleryillustration_image;
		   for (x = 1; x < illustration_data.length; x++) {
				var current_slot = "slot" + x;
				pieces = illustration_data[x].split(",");
				var filename = pieces[0]; var linktitle = pieces[1]; var subtitle = pieces[2]; var clienttitle = pieces[3];
				if (x == currentslottarget) {
							     document.getElementById(current_slot).style.backgroundColor = slotbackground;
							     filenamecut = pieces[0].split(".");
							     // Populate thumbnail_image
							     var cutimage = basethumbimgpath + filenamecut[0] + basethumbmedium + basethumbimgext;
							     document.getElementById("thumbnail_image").src = cutimage;
							     // Populate thumbcontent
							     document.getElementById("thumbcontent").src = pieces[0];
							    }
				var compiler = "";
				if (currentslottarget == x) {
							     compiler = "<img id=\"slotimg"+x+"\" src=\""+slot_overstate+"\" border=\"0\" alt=\"\" align=\"right\" />";
							    }
				else {
				      compiler = "<img id=\"slotimg"+x+"\" src=\""+slot_outstate+"\" border=\"0\" alt=\"\" align=\"right\" onmouseover=\"slotimgover("+x+");\" onmouseout=\"slotimgout("+x+");\" onmousedown=\"activate_item("+gallery+","+x+");\" />";
				     }
				compiler = compiler + "&nbsp;&nbsp;<a id=\"slotlink"+x+"\" href=\"javascript:void(0);\" onmousedown=\"activate_item("+gallery+","+x+");\" class=\"slotstyle\">"+linktitle+"</a>";
				document.getElementById(current_slot).innerHTML = compiler;
				if (currentslottarget == x) {
							     document.getElementById("slotlink"+x).style.visibility = "visible";
							    }
				else { document.getElementById(current_slot).style.backgroundColor = ""; }
								   }
		  }
currentslottarget = gallery;
document.getElementById("thumbnail_pane").style.visibility = "visible";
document.getElementById("ietweek_thumbnail").style.visibility = "visible";
}
function slotimgover(target) {
var slotid = "slotimg" + target;
document.getElementById(slotid).src = slot_overstate;
slotid = "slotlink" + target;
document.getElementById(slotid).style.visibility = "visible";
self.focus();
}
function slotimgout(target) {
var slotid = "slotimg" + target;
document.getElementById(slotid).src = slot_outstate;
slotid = "slotlink" + target;
document.getElementById(slotid).style.visibility = "hidden";
self.focus();
}
function activate_item(gallery, item) {
var prev_slot = "slot" + currentslottarget;
currentslottarget = item;
document.getElementById(prev_slot).style.backgroundColor = slotbackground_default;
swap_header(gallery);
}
function query_default() {
var xypos = "";
xypos = query_element("probe", 0, 0); last_pos = xypos.split(",");
pane_x = parseInt(last_pos[0]); pane_y = parseInt(last_pos[1]);
}
function hide_all_panes() {
browser_cramps = 0;
document.getElementById("thumbnail_background").style.visibility = "hidden";
document.getElementById("ietweek_thumbnail").style.visibility = "hidden";
document.getElementById("dropshadow_bio").style.visibility = "hidden";
document.getElementById("bio").style.visibility = "hidden";
document.getElementById("dropshadow_resume").style.visibility = "hidden";
document.getElementById("resume").style.visibility = "hidden";
document.getElementById("dropshadow_contact").style.visibility = "hidden";
document.getElementById("contact").style.visibility = "hidden";
document.getElementById("thumbnail_pane").style.visibility = "hidden";
document.getElementById("dropshadow_thumbnail_pane").style.visibility = "hidden";
document.getElementById("home").style.visibility = "hidden";
document.getElementById("pvleft").style.visibility = "hidden";
document.getElementById("pvright").style.visibility = "hidden";
document.getElementById("ietweek_bio").style.visibility = "hidden";
document.getElementById("ietweek_resume").style.visibility = "hidden";
document.getElementById("slot1").innerHTML = "";
document.getElementById("slot2").innerHTML = "";
document.getElementById("slot3").innerHTML = "";
document.getElementById("slot4").innerHTML = "";
document.getElementById("slot5").innerHTML = "";
document.getElementById("slot6").innerHTML = "";
document.getElementById("slot7").innerHTML = "";
document.getElementById("slot8").innerHTML = "";
document.getElementById("slot9").innerHTML = "";
document.getElementById("slot10").innerHTML = "";
if (all_loaded == 1) {
      var finished = 0, ntargetstep = 0, ntarget = "";
      do {
          ntargetstep = ntargetstep + 1;
          ntarget = "tn" + ntargetstep;
          if (document.getElementById(ntarget)) { document.getElementById(ntarget).style.visibility = "hidden"; }
          else { finished = 1; }
         } while (finished != 1);
		     }
}
