/*
Данный скрипт-меню был разработан для сайта
компании Vending Solution 

18.04.06       © WebGhost (ICQ:201179716, WebGhost@mail.ru)
*/
function menu()
{
        document.write('<center>');
	document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" TYPE="application/x-shockwave-flash"');
	document.write('WIDTH="800" HEIGHT="60" CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0">');
	document.write('<PARAM NAME="MOVIE" VALUE="menu_new_2.swf">');
	document.write('<PARAM NAME="PLAY" VALUE="true">');
	document.write('<PARAM NAME="LOOP" VALUE="true">');
	document.write('<PARAM NAME="WMODE" VALUE="solid">');
	document.write('<PARAM NAME="QUALITY" VALUE="high">');
	document.write('<EMBED SRC="menu_new_2.swf" WIDTH="800" HEIGHT="60" PLAY="true" LOOP="true" WMODE="solid" QUALITY="high"');
	document.write('TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
	document.write('</EMBED>');
	document.write('</OBJECT>');
	document.write('</center>');
}

function logo()
{
	document.write('<DIV class=Logo>');
	document.write('<img src="Files/Logo.gif" width="280" height="110" border="0">');
	document.write('</DIV>');
}

function coffeeSellItem(title, price, packSize, imgHref, imgW, imgH, imgAlt, itemDescr)
{
	var priceInfo = 'ЦЕНА: <SPAN class = Price>' + price + '</SPAN><br>';
	var packInfo = 'УПАКОВКА: ' + packSize + '<br>';
	var href = '<img src="' + imgHref + '" border="0" width="'+ imgW + '" height="' + imgH + '" alt="' + imgAlt + '"';

	document.write('<tr>');
	document.write('<td width="100" valign="top">');
	document.write(href);
	document.write('</td>');
	document.write('<td width="600" valign="top">');
	document.write('<DIV class=Header>');
	document.write(title);
	document.write('</DIV>');
	document.write('<DIV class=Desc>');
	document.write(priceInfo);
	document.write(packInfo);
	document.write('<br>');
	document.write(itemDescr);
	document.write('<br><br>');
	document.write('Заказать данный продукт вы можете по телефонам: (044) 483-70-15, (044) 483-70-16 или отправив нам заказ через <a href="Feedback.html">связь с нами</a>');
	document.write('</DIV>');
	document.write('</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td colspan=2>');
	document.write('<br><br>');
	document.write('</td>');
	document.write('</tr>');
}

function ShowTime ()
{

	nowtime = new Date()

	if (parseInt(nowtime.getHours()) > 9) { var nowtimeHours = nowtime.getHours()} else { var nowtimeHours = '0' + nowtime.getHours() }
	if (parseInt(nowtime.getMinutes()) > 9) { var nowtimeMinutes = nowtime.getMinutes()} else { var nowtimeMinutes = '0' + nowtime.getMinutes() }
	if (parseInt(nowtime.getSeconds()) > 9) { var nowtimeSeconds = nowtime.getSeconds()} else { var nowtimeSeconds = '0' + nowtime.getSeconds() }

	if (parseInt(nowtime.getDate()) > 9) { var nowtimeDay = nowtime.getDate() } else { var nowtimeDay = '0' +(nowtime.getDate()) }
	if (parseInt(nowtime.getMonth() + 1) > 9) { var nowtimeMonth = nowtime.getMonth() + 1} else { var nowtimeMonth = '0' + (nowtime.getMonth() + 1) }

	var TimeString = '' + nowtimeHours + ':' + nowtimeMinutes + ':' + nowtimeSeconds + ' / ' + nowtimeDay + '.' + nowtimeMonth + '.' + nowtime.getFullYear();
	document.getElementById('ShowTime').innerHTML = TimeString;
	setTimeout("ShowTime()", 1000);
}

function mail()
{
	if (FMail.FSubject.value == "" || FMail.FUserName.value == "" || FMail.FMassage.value == "" || FMail.FContact.value == "")
	{
		alert('Пожалуйста заполните пустые поля соответствующей информацией');
		return false;
	}
	else
		return true;
}

function DownBar()
{
	document.write('<span class="DownInfo" >');
	document.write('Киев, ул. Дегтяревская 26а, (044) 483-70-15');
	document.write('</span>');
	document.write('<span class="DownTitle" >');
	document.write('Vending Solutions ©');
	document.write('</span>');
	document.write('<span class="CopyRight" >');
	document.write('<a href="mailto:WebGhost@mail.ru" Subject="From_www.VendingSolutions" title="Написать автору" class="CopyRight">WebGhost ©</a>');
	document.write('</span>');
	document.write('<!-- Mirolog Code START -->');
	document.write('<script language="JavaScript" type="text/javascript" src="mirolog.js"></script>');
	document.write('<noscript><img alt="" src="http://counter.mirohost.net/counter.php?id=vendingsolutions&st=img"></noscript>');
	document.write('<!-- Mirolog Code END -->');
}

var highlightcolor="#E7E7E7"
var ns6=document.getElementById&&!document.all
var previous=''
var eventobj
var intended=/INPUT|TEXTAREA|SELECT|OPTION/

function checkel(which)
{
	if (which.style&&intended.test(which.tagName))
	{
		if (ns6&&eventobj.nodeType==3)
		eventobj=eventobj.parentNode.parentNode
		return true
	}
	else
	return false
}

function highlight(e)
{
	eventobj=ns6? e.target : event.srcElement
	if (previous!='')
	{
		if (checkel(previous))
			previous.style.backgroundColor=''
		previous=eventobj
		if (checkel(eventobj))
			eventobj.style.backgroundColor=highlightcolor
	}
	else
	{
		if (checkel(eventobj))
			eventobj.style.backgroundColor=highlightcolor
		previous=eventobj
	}
}