// JavaScript Document

function nextDemo(current){nextDemo2(current,"");}

function nextDemo2(current, pathtove3d)
{ 
	demo = new Array("cc", "sunglasses","compact","bottle","mp3Player", "dice", "glass", "ring","counter","chair");
	for(i=0;i<demo.length;i++)
	if(demo[i] == current)
		break;
	//if(++i>=demo.length)
		//i=0;
		//document.write(current+" ; "+demo[i]);
	
	//document.write('<tr><td align="left" class="headertext"> Try these other demos:</td><td>');
	//document.write(pathtove3d+demo[0]);
	document.write('<tr> <td height="34" width="750"> <table width="750"> <tr> ');
    document.write('<td width="10" align="left" class="bodytext"></td><td align="center" width="750">');
		  
	for(j=0;j<demo.length;j++) 
	{
		border = 1;
		vspace = 2;
		if(j==i)
		{
			border =2;
			vspace =0
		}
		document.write('<a href="'+pathtove3d+demo[j]+'.php"><img src="'+pathtove3d+'images/demothumb/'+demo[j]+'.jpg" hspace="4" vspace="'+vspace+'" border="'+border+'"></a>');
	}
	document.write('</td></tr></table></td></tr>');
	//document.write(' </td></tr>');
}

function changeLevel(levelname)
{
	if(document.applets.ve3d)
		document.applets.ve3d.pjs(131074, levelname);//0x00020002
}



var VE3DWindow



function openAppletWin(w, h, m)
{
	iw=w
	ih=h
	
	screenw = window.screen.availWidth
	screenh = window.screen.availHeight
	if(screenw < 100)
	{
		screenw = 400
		screenh = 400
	}
			
	wn = w+8
	hn = h+55
	VE3DWindow = window.open('../ve3d/inpop.php?iw='+iw+'&ih='+ih+'&w='+screenw+'&h='+screenh+'&m='+m, 'VisionWeb3D',
		config='resizable=yes,width='+wn+',height='+hn+',scrollbars=no,toolbars=no,status=no,location=no')
	VE3DWindow.resizeTo(wn,hn)
	VE3DWindow.focus()
	VE3DWindow.zIndex = 0	
}


function launchAppletPatentWorkaround( string )
{
	document.write(string)
	/*
	document.write('<APPLET CODEBASE = "../" CODE = "rg.l.class" NAME = "ve3d"  ARCHIVE = "ve3d.jar, cc3d.jar, upload3d.jar, png.jar" WIDTH = "630" HEIGHT = "426" alt="3D image requires Java - visit java.com">')
	document.write('<PARAM NAME="query" VALUE="">')
	document.write('<PARAM NAME="file" VALUE="rg/model/cc/cc">')
	document.write('<PARAM NAME="emailform" VALUE="../php/email/capchaemailForm.php">')
	document.write('<PARAM NAME="JPEGScale" VALUE="0.90">')
	document.write('<PARAM NAME="JPEGQuality" VALUE="95">')
	document.write('<PARAM NAME="presetDesign_00" VALUE="cc_front45.gif">')
	document.write('<PARAM NAME="presetDesign_01" VALUE="cc_front.gif">')
	document.write('<PARAM NAME="presetDesign_02" VALUE="cc_frontrad.gif">')
	document.write('<PARAM NAME="presetDesign_03" VALUE="cc_frontblkbar.gif">')
	document.write('<br />')
	document.write('<a href="http://java.com" target="_blank"><img src="images/getJava/Get_Java_buttons/get_java_blue-button.gif"></a></br>')
	document.write('<a href="http://jdl.sun.com/webapps/getjava/BrowserRedirect?locale=en&host=java.com" target="_blank"><img src="../nojava/cc.jpg"></a>')
	document.write('</APPLET>')
	*/
}