﻿document.write("<script type='text/javascript' src='http://orchids.green-drop-home.com/src/vdownupjs_scrol.js'></script>");

// This function work in each html file in <body onload=alltostart>
function alltostart() 
{ 
	  start();
} 
window.onload = alltostart;
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

function headlines_selector(headlines_name)
{
	switch (headlines_name)
	{
		case "standart_r":
		    document.write("<p>");
		    document.write("<h2><b>Магазинные новости.</b></h2>");			
		    document.write("<h2><b>Появились на полках :</b></h2>");
		    document.write("</p>");	
		break;
		case "standart_e":
		    document.write("<p>");
		    document.write("<h2><b>Shop news.</b></h2>");			
		    document.write("<h2><b>Have appeared on shelves :</b></h2>");
		    document.write("</p>");				
		break;		
		default:
	}	
	
 	if (document.getElementById || document.all)
	{
		document.write('<span style="height:'+sheight+'px;"><div style="position:relative;overflow:hidden;width:'+swidth+'px;height:'+sheight+'px;" onMouseover="sspeed=0;" onMouseout="sspeed=rspeed"><div id="slider" style="position:relative;width:'+swidth+'px;"></div></div></span>');
	}
	
	switch (headlines_name)
	{
		case "standart_r":
		    document.write("<br/><p>");
			document.write("<h2>Метрические переводчики</h2>"); 
			document.write("Введите номер в любом текстовом окне, а затем кликните где-нибудь вне текстовых окон."); 
			document.write("<h2>F в C конвертер</h2>");			
			document.write("<FORM>F:&nbsp;<INPUT type=\"text\" name=\"F\" value=\"32\" onChange=\"C.value = 100/(212-32) * (this.value - 32 )\">"); 
			document.write("<BR/>C:&nbsp;<INPUT type=\"text\" name=\"C\" value=\"0\" onChange=\"F.value = (212-32)/100 * this.value + 32 \">");
			document.write("</FORM><br/>");
			document.write("<h2>CM в FEET в INCH конвертер</h2>"); 			
			document.write("<FORM>");
			document.write("cm&nbsp;&nbsp;:&nbsp;<INPUT onChange=\"feet.value=Math.round((this.value/30.84)*100)/100;inch.value=Math.round((this.value/2.54)*100)/100;\" value=2.54 name=cm><br/>");
			document.write("feet:&nbsp;<INPUT onChange=\"cm.value=Math.round((this.value*30.48)*100)/100;inch.value=Math.round((this.value*12)*100)/100;\" value=0 name=feet><br/>");
			document.write("inch:&nbsp;<INPUT onChange=\"cm.value = Math.round((this.value*2.54)*100)/100;feet.value=Math.round((this.value/12)*100)/100;\" value=1 name=inch>");
			document.write("</FORM>");			
		    document.write("</p><br/>");			

			// Forum
			//document.write("<p>");
			//document.write("<h2>Мы общаемся тут</h2>"); 			
			//document.write("<a href=\"http://www.orchidomania.ru\" target=\"_blank\">");
			//document.write("<img src=\"http://www.orchidomania.ru/images/orchidomania1.gif\" width=\"150\" height=\"60\" alt=\"orchidomania.ru\" border=\"0\″ />");			
			//document.write("</a>");
			//document.write("</p><br/>");
			
			// israel-catalog affill
	//		document.write("<br/><p>");
	//		document.write("<A href=\"http://israel-catalog.com?kbid=1887&img=TalShahar_general_120x60.gif\">");
	//		document.write("<img src=\"http://www.israel-catalog.com/files/banners/TalShahar_general_120x60.gif\" border=\"0\"></a>");
	//		document.write("<img src=\"http://www.myaffiliateprogram.com/u/talshaha/showban.asp?id=1887&img=TalShahar_general_120x60.gif\" border=\"0\">");
	//		document.write("</p><br/>");

                        // Netexchange.ru 
	//		document.write("<br/><p>");
	//		document.write("<a href=\"http://www.netexchange.ru/partner.asp?pid=672\" target=\"_blank\">");
	//		document.write("<img src=\"http://www.netexchange.ru/images/banners/100x100_n2.gif\" width=\"100\" height=\"100\" alt=\"Netexchange.ru\" border=\"0\">");
	//		document.write("</a>");
	//		document.write("</p><br/>");
		break;
		case "standart_e":
			document.write("<h2>Converters</h2>"); 	
			document.write("Enter a number in either field, then click outside the text box.&nbsp;");			
			document.write("<h2>Fahrenheit to Celsius Converter</h2>"); 			
			document.write("<FORM>F:&nbsp;<INPUT type=\"text\" name=\"F\" value=\"32\" onChange=\"C.value = 100/(212-32) * (this.value - 32 )\">"); 
			document.write("<BR>C:&nbsp;<INPUT type=\"text\" name=\"C\" value=\"0\" onChange=\"F.value = (212-32)/100 * this.value + 32 \">");
			document.write("</FORM>");
			document.write("<h2>CM to FEET to INCH Converter</h2>"); 			
			document.write("<FORM>");
			document.write("cm&nbsp;&nbsp;:&nbsp;<INPUT onChange=\"feet.value=Math.round((this.value/30.84)*100)/100;inch.value=Math.round((this.value/2.54)*100)/100;\" value=2.54 name=cm><br/>");
			document.write("feet:&nbsp;<INPUT onChange=\"cm.value=Math.round((this.value*30.48)*100)/100;inch.value=Math.round((this.value*12)*100)/100;\" value=0 name=feet><br/>");
			document.write("inch:&nbsp;<INPUT onChange=\"cm.value = Math.round((this.value*2.54)*100)/100;feet.value=Math.round((this.value/12)*100)/100;\" value=1 name=inch>");
			document.write("</FORM>");			
			
			// israel-catalog affill
	//		document.write("<br/><p>");			
	//		document.write("<A href=\"http://israel-catalog.com?kbid=1887&img=TalShahar_general_120x60.gif\">");
	//		document.write("<img src=\"http://www.israel-catalog.com/files/banners/TalShahar_general_120x60.gif\" border=\"0\"></a>");
	//		document.write("<img src=\"http://www.myaffiliateprogram.com/u/talshaha/showban.asp?id=1887&img=TalShahar_general_120x60.gif\" border=\"0\">");
	//		document.write("</p><br/>");

                        // Netexchange.ru 
	//		document.write("<br/><p>");
	//		document.write("<a href=\"http://www.netexchange.ru/partner.asp?pid=672\" target=\"_blank\">");
	//		document.write("<img src=\"http://www.netexchange.ru/images/banners/100x100_n2.gif\" width=\"100\" height=\"100\" alt=\"Netexchange.ru\" border=\"0\">");
	//		document.write("</a>");
	//		document.write("</p><br/>");

		break;		
		default:
	}
}

