function toggle()
{
	var chevron = event.srcElement;
	var menubar = chevron.parentElement.parentElement;
	var menucontent = chevron.parentElement.parentElement.parentElement.rows[1];
	var collapsed = ( (menucontent.style.display == "none") ? true : false);
	var tab1 = menubar.cells[0];
	var tab2 = menubar.cells[1];
	var tab3 = menubar.cells[2];
	var grip = tab1.children[0];

	if (collapsed == true)
	{
		menucontent.style.display = "";
		chevron.src = "images/chevronblue.gif";
		tab1.style.backgroundColor="#6699cc";
		tab1.style.borderBottom="1px solid #6699cc";
		tab2.style.backgroundColor="#6699cc";
		tab2.style.borderTop="1px solid #6699cc";
		tab2.style.borderBottom="1px solid #6699cc";
		tab3.style.backgroundColor="#6699cc";
		tab3.style.borderBottom="1px solid #6699cc";
		grip.src = "images/gripblue.gif";
	}
	else
	{
		menucontent.style.display = "none";
		chevron.src = "images/chevrongray.gif";
		tab1.style.backgroundColor="#cccccc";
		tab1.style.borderBottom="1px solid #aaaaaa";
		tab2.style.backgroundColor="#cccccc";
		tab2.style.borderTop="1px solid #aaaaaa";
		tab2.style.borderBottom="1px solid #aaaaaa";
		tab3.style.backgroundColor="#cccccc";
		tab3.style.borderBottom="1px solid #aaaaaa";
		grip.src = "images/gripgray.gif";
	}
}

function mOvr(src) { if (!src.contains(event.fromElement)) {src.bgColor = '#0099FF'}}
function mOut(src) { if (!src.contains(event.toElement))   {src.bgColor = '#FFFFFF'}}

function initial ()
{
menu_off("dress");l
menu_off("oporod");l
menu_off("standart");l
menu_off("veter");l
menu_off("pups");l
menu_off("exibit");l
menu_off("galler");l

}

function menu_off(chevron)
{
	var menubar = chevron.parentElement.parentElement;
	var menucontent = chevron.parentElement.parentElement.parentElement.rows[1];
	var collapsed = ( (menucontent.style.display == "none") ? true : false);
	var tab1 = menubar.cells[0];
	var tab2 = menubar.cells[1];
	var tab3 = menubar.cells[2];
	var grip = tab1.children[0];

		menucontent.style.display = "none";
		chevron.src = "images/chevrongray.gif";
		grip.src = "images/gripgray.gif";
		tab1.style.backgroundColor="#cccccc";
		tab1.style.borderBottom="1px solid #aaaaaa";
		tab2.style.backgroundColor="#cccccc";
		tab2.style.borderTop="1px solid #aaaaaa";
		tab2.style.borderBottom="1px solid #aaaaaa";
		tab3.style.backgroundColor="#cccccc";
		tab3.style.borderBottom="1px solid #aaaaaa";
}

function goHoroscope(){
if (document.all.hday.value>29&document.all.hmonth.value==3){
 alert("Такого дня в марте нет.");
 return;
 }
if (document.all.hmonth.value==3&document.all.hday.value>20){
 horOven();
 return;
 }
if (document.all.hmonth.value==4&document.all.hday.value<21){
 horOven();
 return;
 }
if (document.all.hmonth.value==4&document.all.hday.value>20){
 horTelec();
 return;
 }
if (document.all.hmonth.value==5&document.all.hday.value<22){
 horTelec();
 return;
 }

if (document.all.hmonth.value==5&document.all.hday.value>21){
 horBliz();
 return;
 }
if (document.all.hmonth.value==6&document.all.hday.value<22){
 horBliz();
 return;
 }

if (document.all.hmonth.value==6&document.all.hday.value>21){
 horRak();
 return;
 }
if (document.all.hmonth.value==7&document.all.hday.value<23){
 horRak();
 return;
 }

if (document.all.hmonth.value==7&document.all.hday.value>22){
 horLev();
 return;
 }
if (document.all.hmonth.value==8&document.all.hday.value<24){
 horLev();
 return;
 }

if (document.all.hmonth.value==8&document.all.hday.value>23){
 horDeva();
 return;
 }
if (document.all.hmonth.value==9&document.all.hday.value<24){
 horDeva();
 return;
 }

if (document.all.hmonth.value==9&document.all.hday.value>23){
 horVesy();
 return;
 }
if (document.all.hmonth.value==10&document.all.hday.value<24){
 horVesy();
 return;
 }

if (document.all.hmonth.value==10&document.all.hday.value>23){
 horScor();
 return;
 }
if (document.all.hmonth.value==11&document.all.hday.value<23){
 horScor();
 return;
 }

if (document.all.hmonth.value==11&document.all.hday.value>22){
 horStrel();
 return;
 }
if (document.all.hmonth.value==12&document.all.hday.value<22){
 horStrel();
 return;
 }

if (document.all.hmonth.value==12&document.all.hday.value>21){
 horKoz();
 return;
 }
if (document.all.hmonth.value==1&document.all.hday.value<21){
 horKoz();
 return;
 }

if (document.all.hmonth.value==1&document.all.hday.value>20){
 horVod();
 return;
 }
if (document.all.hmonth.value==2&document.all.hday.value<19){
 horVod();
 return;
 }

if (document.all.hmonth.value==2&document.all.hday.value>18){
 horRyb();
 return;
 }
if (document.all.hmonth.value==3&document.all.hday.value<21){
 horRyb();
 return;
 }

}

function horOven(){
var horwin=window.open("horoscope/oven.htm","Window","width=550,height=600,status=no,toolbar=no,menubar=no");
}

function horTelec(){
var horwin=window.open("horoscope/telec.htm","Window","width=500,height=600,status=no,toolbar=no,menubar=no");
}

function horBliz(){
var horwin=window.open("horoscope/bliz.htm","Window","width=550,height=600,status=no,toolbar=no,menubar=no");
}

function horRak(){
var horwin=window.open("horoscope/rak.htm","Window","width=500,height=600,status=no,toolbar=no,menubar=no");
}

function horLev(){
var horwin=window.open("horoscope/lev.htm","Window","width=500,height=600,status=no,toolbar=no,menubar=no");
}

function horDeva(){
var horwin=window.open("horoscope/deva.htm","Window","width=500,height=600,status=no,toolbar=no,menubar=no");
}

function horVesy(){
var horwin=window.open("horoscope/vesy.htm","Window","width=500,height=600,status=no,toolbar=no,menubar=no");
}

function horScor(){
var horwin=window.open("horoscope/scor.htm","Window","width=500,height=600,status=no,toolbar=no,menubar=no");
}

function horStrel(){
var horwin=window.open("horoscope/strel.htm","Window","width=500,height=600,status=no,toolbar=no,menubar=no");
}

function horKoz(){
var horwin=window.open("horoscope/koz.htm","Window","width=500,height=600,status=no,toolbar=no,menubar=no");
}

function horVod(){
var horwin=window.open("horoscope/vod.htm","Window","width=500,height=600,status=no,toolbar=no,menubar=no");
}

function horRyb(){
var horwin=window.open("horoscope/ryb.htm","Window","width=500,height=600,status=no,toolbar=no,menubar=no");
}

function openHoroscope(){
var rty=window.open("horoscope.htm","trWindow","width=500,height=400,status=no,toolbar=no,menubar=no")
}

var prBPics = new Array ('Gallery/pets/szhan1.jpg','Gallery/pets/szhan2.jpg','Gallery/pets/szhan3.jpg');
var prPics = new Array ('Gallery/pets/Untitled-1.jpg','Gallery/pets/Untitled-2.jpg','Gallery/pets/Untitled-3.jpg');
var prPicIndex = -1;

function  MaxPr(){
var prMaxWin=window.open("","petsWindow","width=450,height=660,status=yes,toolbar=no,menubar=no");
prMaxWin.document.write("<title>Щенок</title>");
prMaxWin.document.write("<img src='");
prMaxWin.document.write(prBPics[prPicIndex]);
prMaxWin.document.write("'>");
}

function NextPr(){
if (prPicIndex==prPics.length-1)
{
prPicIndex=0;
}
 else
 {
prPicIndex++;
 }
document.all.prImage.src=prPics[prPicIndex];
}

function PrevPr(){
if (prPicIndex==0)
{
prPicIndex=prPics.length-1;
}
 else
 {
prPicIndex--;
 }
document.all.prImage.src=prPics[prPicIndex];
}

function OpenTr(){
trWin=window.open ('tr.htm', 'newWin', 'scrollbars=no,status=no,width=640,height=300');
}

function RecSplash(){
recWin=window.open ('rcrd2.htm', 'newWin2', 'menubar=no,titlebar=no,toolbar=no,scrollbars=no,status=no,alwaysRaised=yes,resizable=no,width=420,height=270');
}

function rec2(){
recWin=window.open ('2.php3', 'newWin3', 'menubar=no,titlebar=no,toolbar=no,scrollbars=yes,status=no,alwaysRaised=yes,resizable=yes');
}