/*function print_hor(){

strmenu=new String
strmenu+="<tr height='30'><td bgcolor='#FFD780' width='100%' colspan='3' align='center'><table>"
menu=new Array("Главная", "О нас", "Рецепты индийской кухни", "Пряности и травы", "Натуральные масла", "Аюрведа", "Галерея", "Рестораны и кафе", "Адреса магазинов")
pages=new Array("#", "#", "#", "#", "#", "#", "#", "#", "#")
for (i=0; i<menu.length; i++) {
 strmenu+="<td><a href='"+pages[i]+"' class='hormenu'>&nbsp;"+menu[i]+"&nbsp;</a>&nbsp;</td>"
 }
strmenu+="</table></td></tr>";
document.write(strmenu)

};*/

function open_tov_photo(x){
var wp="top=0, left=0, menubar=no, location=no, width=1024, height=900, resizable=yes, scrollbars=yes"
var cp=window.open(x, "Photo", wp)
};

function open_tov_photo_map(x){
var wp="top=0, left=0, menubar=no, location=no, width=1280, height=1024, resizable=yes, scrollbars=yes"
var cp=window.open(x, "Photo", wp)
};

function open_photo(x){
var wp="top=100, left=100, menubar=no, location=no, width=600, height=600, resizable=yes"
var cp=window.open(x, "Photo", wp)
};

function open_music(x){
var wp="top=0, left=0, menubar=no, location=no, width=180, height=100, resize=no, scrollbars=no "
var cp=window.open(x, "Music", wp)
};

function changemenu(x){
var wp="top=100, left=100, menubar=no, location=no, width=600, height=600, resizable=yes"
var cp=location.href='admin/map.php';
};

function showinfo(x){
var wp="top=30, left=30, menubar=no, location=no, width=300, height=500, resize=no, scrollbars=yes "
var cp=window.open(x, "info", wp)
};



function info(t){
			createRequest();
			url="showInfo2.php";
			request.open("POST", url, true);
			request.onreadystatechange=updatePage;
			request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
			request.send("id="+t);
}

function updatePage() {
    if (request.readyState == 4) {
		if(request.status==200){
		var response = request.responseText;
		var oldcontEl=document.getElementById("infoselect");
		oldcontEl.className="infoShow";
		oldcontEl.innerHTML=response;
		}
	}
}

/*
function contact(){
var wp="top=100, left=30, menubar=no, location=no, width=500, height=210"
var cp=window.open("contact.html", "Turcoffee_Blues", wp)
}

function header(){
strmenu=new String
strmenu+="<table height='95%'><tr valign='top'><td><h1>Фотографии Ламы Оле и его учеников из поездок по России</h1><p class='nav'>"
menu=new Array("Главная", "План Ламы", "Фотографии", "Поучения", "Пришлите фото")
pages=new Array("index.html", "plan.html", "foto.html", "teaching.html", "prish.html")
for (i=0; i<menu.length; i++) {
 strmenu+="<a href='"+pages[i]+"' class='ss'>&nbsp;"+menu[i]+"&nbsp;</a>&nbsp;"
 }
strmenu+="</p>"
document.write(strmenu)
}

function footer(){
strfoot=new String
strfoot+="</td></tr></table><table height='5%'><tr><td class='cr' onclick='contact()'>"
strfoot+="Copyright&nbsp;©&nbsp;2006&nbsp;Turcoffee&nbsp;Blues</td><td align='right'><!--Rating@Mail.ru COUNTEr--><a target=_top href='http://top.mail.ru/jump?from=858710'><img src='http://da.c1.bd.a0.top.list.ru/counter?id=858710;t=251' border=0 height=31 width=88 alt='Рейтинг@Mail.ru'/></a><!--/COUNTER--></td></tr></table>"
document.write(strfoot)
}

function chas(){
var ng=new Date(2006,01,16)
var now=new Date()
day=(ng-now)/(1000*60*60*24)
oday=Math.floor(day)
hou=(day-oday)*24
ohou=Math.floor(hou)
mii=(hou-ohou)*60
omii=Math.floor(mii)
sek=Math.ceil((mii-omii)*60)
document.all.timeole.innerHTML=" <font color=#b02739>"+oday+" дн. "+ohou+" ч. "+omii+" мин. "+sek+" сек."+"</font>"
}*/
