<!--
function openPopUp(l, h, page, name, sb)
{
	var lt = (screen.Width - l)/2
	var tp = (screen.Height - h)/2
	var scrollBar = "scrollbars=no"
	if (sb == 1) {scrollBar = "scrollbars=yes"}
	features = "width=" + l + ",height=" + h + "," + scrollBar 
	features += ",toolbars=no,resizable=no,status=no" + ",top=" + tp + ", left=" + lt
	window.open(page, name, features);
}

function scheda(id)
{
	openPopUp(636, 630, "scheda.aspx?id=" + id, "schedaArt", 1)
}

function credits(c)
{	
	var page = "credits.htm"
	if (c == 1) {page = "../credits.htm"}
	openPopUp(250, 300, page, "credits", 0)
}

var months=new Array(13);
months[1] = "Gennaio";
months[2] = "Febbraio";
months[3] = "Marzo";
months[4] = "Aprile";
months[5] = "Maggio";
months[6] = "Giugno";
months[7] = "Luglio";
months[8] = "Agosto";
months[9] = "Settembre";
months[10] = "Ottobre";
months[11] = "Novembre";
months[12] = "Dicembre";
	
var days=new Array(8);
days[1] = "Domenica,";
days[2] = "Luned&igrave;,";
days[3] = "Marted&igrave;,";
days[4] = "Mercoled&igrave;,";
days[5] = "Gioved&igrave;,";
days[6] = "Venerd&igrave;,";
days[7] = "Sabato,";
	

function openWin(url, winName, width, height, features) 
{
	var left = (screen.Width - width - 10)/2;
	var top = (screen.Height - height - 40)/2;
	window.open(url, winName, features + ",width=" + width + ", height=" + height + ",top=" + top + ", left=" + left);
}

function calendario() 
{
	var dateObj=new Date()
	var wday=days[dateObj.getDay() + 1]
	var lmonth=months[dateObj.getMonth() + 1]
	var date=dateObj.getDate()
	var year=dateObj.getFullYear()
	var h=dateObj.getHours()
	var m=dateObj.getMinutes()
	if (m < 10) {m = "0" + m}
	if (h < 10) {h = "0" + h}
	document.write(wday + " " + date + " " + lmonth + " " + year + " ore " + h + ":" + m)
}

window.status="ChiRaku - Creazioni d'arte in ceramica Raku";

function pref()
{
	var url="http://www.chiraku.it" 
	var titolo="ChiRaku"
	if (document.all) {window.external.AddFavorite(url,titolo);}
} 

function OpenTab(id, n)
{
	if (document.getElementsByTagName && document.getElementById)
	{			
		for (i = 1; i <= n; i++)
		{
			var tab = document.getElementById('tab_' + i)
			var linkTab = document.getElementById('link_tab_' + i)				

			if (i == id)
				{
					tab.className = "";
					linkTab.className = "selected";			
				}
			else
				{
					tab.className = "hidden";
					linkTab.className = "";
				}
		}
	}
}
// -->
