/* gallery stuff *///find the x of the scroller for returnfunction settheX(){		var mydiv = document.getElementById("thumbs");	var curr_width = parseInt(mydiv.offsetWidth);	document.x.page2.value = curr_width;//tell the page what the div width is	var gotoPos = curr_width + document.myx;//when the page is scrolled tell it the offset		document.x.diff.value = gotoPos;		//document.x.xpos.value = document.myx;//set the form fields	}function delineate2(thex){	splitme = thex.lastIndexOf("-");	return(thex.substring(splitme+1,thex.length));}//set up the initial vars / check for vars setfunction checkPosition(){		var mydiv = document.getElementById("thumbs");	var curr_width = parseInt(mydiv.offsetWidth);	//set the page size for the initial variable	document.myx = 0;	document.x.diff.value = curr_width;		var locate = window.location;//get the url encoding	document.x.holder.value = locate;	var text = document.x.holder.value;//translate it to the page		var zork = delineate2(text);	//check to make sure it's not just the url	if(zork.length < 10){		document.x.newX.value = zork;				P7_HScroller('thumbs','Right',0, zork ,'Warp');//Run the function		P7_HScroller('thumbs','Stop',0,0,'Warp');//stop the function			}else{		document.x.newX.value = 0;	}}//onClick functionfunction addtoURL(b){	var c = b + "&newXPos-"+ document.x.diff.value;	window.location = c;}/*Gallery Stuff*/// JavaScript Document<!--/*Open pop up window*/function MM_openBrWindow(theURL,winName,features) { //v2.0  window.open(theURL,winName,features);}//message from the buttonschosen=1;function nowchosen(y){	if(y == 1){		chosen = 1;	}else{		chosen = 2;	}}function imageover(x){	if(chosen == 1){		document.sub1.src = 'images/interface/full_line.gif';		document.sub2.src = 'images/interface/part_line.gif';	}else{		document.sub2.src = 'images/interface/full_line.gif';		document.sub1.src = 'images/interface/part_line.gif';	}}function imageback(x){	if(chosen == 1){		document.sub1.src = 'images/interface/part_line.gif';		document.sub2.src = 'images/interface/part_line.gif';		//P7_HScroller('ContainLayer','Stop',0,0,'Medium');	}else{		document.sub2.src = 'images/interface/part_line.gif';		document.sub1.src = 'images/interface/part_line.gif';		//P7_HScroller('ContainLayer','Stop',0,0,'Medium');	}}//find positionfunction findPosX(obj){   var curleft = 0;   if(obj.offsetParent)       while(1)        {         curleft += obj.offsetLeft;         if(!obj.offsetParent)           break;         obj = obj.offsetParent;       }   else if(obj.x)       curleft += obj.x;   return curleft; }	/*adjust resized page*/function MM_reloadPage(init) {  //reloads the window if Nav4 resized  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}MM_reloadPage(true);/*scrolling script*/function MM_findObj(n, d) { //v4.01  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && d.getElementById) x=d.getElementById(n); return x;}function P7_HScroller(el,dr,tx,ox,spd) { //v1.7 by PVII var g,gg,fr,sp,pa='',slw=true,m=false,w,ww,lx,rx;tx=parseInt(tx); if((g=MM_findObj(el))!=null){gg=(document.layers)?g:g.style;}else{return;} if(dr=="Stop"){if(g.toMove){clearTimeout(g.p7Magic);}g.toMove=false;} if((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1)&& !window.opera){pa="px";} if(navigator.userAgent.indexOf("NT")>-1 || navigator.userAgent.indexOf("Windows 2000")>-1){slw=false;} if(spd=="Slow"){sp=(slw)?2:1;fr=(slw)?40:30;}else if(spd=="Medium"){sp=(slw)?4:1;fr=(slw)?40:10; }else{sp=(slw)?8:4;fr=(slw)?40:10;}if(spd=="Warp"){sp=5000;}var xx = parseInt(gg.left);if(isNaN(xx)){ if(g.currentStyle){xx=parseInt(g.currentStyle.left);}else if(document.defaultView&&document.defaultView.getComputedStyle){ xx=parseInt(document.defaultView.getComputedStyle(g,"").getPropertyValue("left"));}else{xx=0;}} if(document.all || document.getElementById){w=parseInt(g.offsetWidth);if(!w){w=parseInt(g.style.pixelWidth);} if(g.hasChildNodes){for(wx=0;wx<g.childNodes.length;wx++){ww=parseInt(g.childNodes[wx].offsetWidth); if(ww>w){w=ww;}}}}else if(document.layers){w=parseInt(g.clip.width);}lx=tx-w+parseInt(ox);rx=tx; if(dr=="Right"){if(xx>lx){m=true;xx-=sp;if(xx<lx){xx=lx;}}} if(dr=="Left"){if(xx<rx){m=true;xx+=sp;if(xx>rx){xx=rx;}}} if(dr=="Reset"){gg.left=tx+pa;if(g.toMove){clearTimeout(g.p7Magic);}g.toMove=false;} if(m){gg.left=xx+pa;if(g.toMove){clearTimeout(g.p7Magic);}g.toMove=true;  eval("g.p7Magic=setTimeout(\"P7_HScroller('"+el+"','"+dr+"',"+tx+","+ox+",'"+spd+"')\","+fr+")"); }else{g.toMove=false;} document.myx = xx; //find the scroller x at all time settheX();}//-->