
	heightOfApplet = 25;
	widthOfApplet = 100;
	numberOfTabs = 6;
	srch = this.location.search.toString().toLowerCase();

	function writeTabs(www)
	{
		widthOfApplet = www;
		output = "";	
		if (navigator.appName=="Netscape")
		{ 
			top.location = "srch";
		}
		else
		{
			h = document.body.clientHeight - heightOfApplet;
			w = document.body.clientWidth - widthOfApplet;
			if (w>820) w = 821;
			ht = "height=" + h + ";";
			wt = "width=" + w + "; "; 
			tp = "top:" + heightOfApplet + ";";
			left = (document.body.clientWidth - 820 - widthOfApplet)/2;
			if (left<0) left = 0;
			left += widthOfApplet;
			for (i=0; i<numberOfTabs; i++)
			{
				src = "src=" + srch.substring(1); 
				if (srch.length<2) src = "src=index.html";
				if (i==4) src = "src=demos/index.html";
				if (i==3) src = "src=buy.php";
				if (i==2) src = "src=register.htm";
				if (i==1) src = "src=support/sp000.htm";
				if (i==0) src = "src=index.html";
				id = " id=tab" + i;
				name = " name=frame" + i;
				style = " style='position:absolute; " + tp + " visibility:visible; left=" + left + "; " + wt + ht + "'";
				output += "<div " + id + style + ">";
				output += "<iframe " + src + name + " left=" + left + " align=top " + wt + ht + " frameborder=no></iframe>";
				output += "</div>";	
			}
		}
		document.write(output);
	}

	function resize()
	{
		ycb = "main.html" + srch;
		document.location = ycb;
	}
	


	function lp(page,frame)
	{
		tab0.style.visibility = (frame==0) ? "visible" : "hidden";	
		tab1.style.visibility = (frame==1) ? "visible" : "hidden";	
		tab2.style.visibility = (frame==2) ? "visible" : "hidden";	
		tab3.style.visibility = (frame==3) ? "visible" : "hidden";	
		tab4.style.visibility = (frame==4) ? "visible" : "hidden";	
		tab5.style.visibility = (frame==5) ? "visible" : "hidden";

		if (frame==0) frame0.document.location = page;	
		if (frame==1) frame1.document.location = page;	
		if (frame==2) frame2.document.location = page;	
		if (frame==3) frame3.document.location = page;	
		if (frame==4) frame4.document.location = page;	
		if (frame==5) frame5.document.location = page;	
	
		document.tabmenu.setTab(frame);
	}




	function newsletter(id,email)
	{
		page = "http://www.imint.com/cgi-bin/subscribe.pl?Email=";
		page += email;
		lp(page,5);
	}


