
function changeURL(winName, newURL) {
  win = window.open("", winName);
  win.location.href = newURL;
}

function load1(form)
	{
     var url = form.Llist_1.options[form.Llist_1.selectedIndex].value;
     location.href = url
     return false;
	}
	
function popUp(url, width, height)
{
	if (window.popwin) {popwin.close();}
	popwin=window.open(url,'popup', "width="+width+",height="+height+",scrollbars=1,resizable=1,toolbar=0");
	if (window.focus) {popwin.focus();}
}  

function NewWindow(u,n,w,h,f,p,x,y){
/*	Copyright Eric King : http://www.ericking.us/ - © 2000 - 2005
	This script is free to use for any non profit website as long as this info is left in  */
	var ws=window.screen?1:0,m=Math,C='center',R='random',M='custom',sw=screen.availWidth,sh=screen.availHeight,W=(w)?w:sw,H=(h)?h:sh,T=(p==C&&ws||!p)?(sh-H)/2:(p==R&&ws)?(m.floor(m.random()*(sh-H))):(p==M&&h!=sh)?y:0,L=(p==C&&ws||!p)?(sw-W)/2:(p==R&&ws)?(m.floor(m.random()*(sw-W))):(p==M&&w!=sw)?x:0,s='width='+W+',height='+H+',top='+T+',screeny='+T+',left='+L+',screenx='+L;s+=(!f||f=='')?'':','+f;
	var win=window.open((u)?u:'http://www.ericking.us/',(n)?n:'',s);
	if(win && !win.closed){win.focus();return win;}
	if(!win)document.location=u;
	return null;
}
	
function hideAllButFirst() {
			for(i=2; i<=25; i++) {
				if(document.layers) {
				}
				else {
					if(document.getElementById("tab"+i)) {  // IF THIS TAB WAS FOUND IN THE DOCUMENT...
					var divDhtml = document.getElementById("tab"+i);
						divDhtml.style.display = "None" ; // HIDE THIS TAB
					}
				}
			}
	}

function showTab(t) {
		// LOOP THROUGH 25 POSSIBLE TABS AND HIDE ALL
		var divDhtml, i;
		for(i=1; i<=25; i++) {
			if(document.getElementById("tab"+i)) {  // IF THIS TAB WAS FOUND IN THE DOCUMENT...
				divDhtml = document.getElementById("tab"+i);
				divDhtml.style.display = "None" ; // HIDE THIS TAB
			}
		}
		// SHOW REQUESTED TAB
		if(document.getElementById("tab"+t)) {  // IF THIS TAB WAS FOUND IN THE DOCUMENT...
			divDhtml = document.getElementById("tab"+t);
			divDhtml.style.display = "" ; // SHOW THIS TAB
		}
	}
	/*
function hide_all_but(exception) {


	var sections, i; 		
	sections = document.getElementsByTagName('div');
	
	for(i=0; i<=sections.length; i++){
	  if ((mid = sections[i].getAttribute('id'))&&(mid != exception))
				
		alert (mid);
		//sections[i].style.display='None';
		sections[i].style.color='cccccc';
	}//end for
		
			for(i=0; i<=5; i++) {
				if(document.layers) {
				}
				else {
					if((document.getElementById(sections[i]))&&(id != sections[i])) {  // IF THIS TAB WAS FOUND IN THE DOCUMENT...
					var divDhtml = document.getElementById(sections[i]);					
						divDhtml.style.display = "None" ; // HIDE THIS TAB
					}
				}
			} 
	}*/

function hide (hidden){
	var i;
	for (i = 0; i <= hidden.length; i++){
		if(document.getElementById(hidden[i])) {  // IF THIS TAB WAS FOUND IN THE DOCUMENT...
			divDhtml = document.getElementById(hidden[i]);
			alert(hidden[i]);
			divDhtml.style.display = "None" ; // HIDE THIS TAB
		}
	}
}

function show_tab(id) {
	
		var divDhtml, i;
		var sections = new Array(6) 
		sections[0]="overview";
		sections[1]="features"; 		 
		sections[2]="contents"; 
		sections[3]="gallery"; 
		sections[4]="reviews"; 
		sections[5]="specifications"; 
		sections[6]="photofinale";
		sections[7]="silverwire";
		sections[8]="fuji";
		
		// LOOP THROUGH TABS 
		for(i=0; i<=8; i++) {
			if(document.getElementById(sections[i])) {  // IF THIS TAB WAS FOUND IN THE DOCUMENT...
				divDhtml = document.getElementById(sections[i]);
				if (id != 'all'){
					//alert(id);
					divDhtml.style.display = "None" ; // HIDE THIS TAB
				} else
					divDhtml.style.display = "" ; // SHOW THIS TAB
			}
		}
		// SHOW REQUESTED TAB
		if(document.getElementById(id)) {  // IF THIS TAB WAS FOUND IN THE DOCUMENT...
			divDhtml = document.getElementById(id);
			divDhtml.style.display = "" ; // SHOW THIS TAB
		}
	}