function changeCMenu(num)
{
	if (num)
	{
		changeCMenu(0);
		if (document.images['cat_menu'+num]) document.images['cat_menu'+num].src='/images/structure/to_'+num+'.gif';
		if (document.images['cat_tmenu'+num]) document.images['cat_tmenu'+num].src='/images/structure/over_'+num+'.gif';
	}
	else
	{
		for (i=1;i<=7;i++)
		{
			if (document.images['cat_menu'+i]) document.images['cat_menu'+i].src='/images/structure/t_'+i+'.gif';
			if (document.images['cat_tmenu'+i]) document.images['cat_tmenu'+i].src='/images/structure/pic_'+i+'.gif';
		}
	}
}


// -- // -- // -- // -- // -- // -- // -- // -- // -- // -- // -- // -- //


function changeCSubMenu(num,obj,pos)
{
	if (pos)
      obj.firstChild.src = '/images/structure/over_'+num+'.gif';
    else
      obj.firstChild.src = '/images/structure/pic_'+num+'.gif';
}


// -- // -- // -- // -- // -- // -- // -- // -- // -- // -- // -- // -- //


function viewfoto(obj,title)
{

if (typeof obj == "object") {
  path = obj.firstChild.src.substring(0,obj.firstChild.src.lastIndexOf('/')+1);
  fname = obj.firstChild.src.substring(obj.firstChild.src.lastIndexOf('/')+1,obj.firstChild.src.length);
  url = path+'big'+fname;
  title = 'Viconte';
} else {
  url = obj;
}

var bigpic;
bigpic=window.open("", "", 'menubar=no,directories=no,location=no,resizable=no,scrollbars=no,width=10,height=10');
bigpic.document.open();
bigpic.document.write('<html><head><title>' + title + '</title></head><body marginwidth=0 marginheight=0 topmargin=0 leftmargin=0 onLoad="self.resizeTo(document.model.width + 30,document.model.height + 50); self.moveTo((screen.width - document.model.width) / 2,(screen.height - document.model.height) / 2);">');
bigpic.document.write('<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align=center valign=middle><img name="model" src="' + url + '" border=0></td></tr></table>');
bigpic.document.write('</body></html>');
bigpic.document.close();
}


// -- // -- // -- // -- // -- // -- // -- // -- // -- // -- // -- // -- //


//function viewfoto(url,title)
//{
//var bigpic;
//bigpic=window.open("", "", 'menubar=no,directories=no,location=no,resizable=no,scrollbars=no,width=10,height=10');
//bigpic.document.open();
//bigpic.document.write('<html><head><title>' + title + '</title></head><body marginwidth=0 marginheight=0 topmargin=0 leftmargin=0 onLoad="self.resizeTo(document.model.width + 30,document.model.height + 50); self.moveTo((screen.width - document.model.width) / 2,(screen.height - document.model.height) / 2);">');
//bigpic.document.write('<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align=center valign=middle><img name="model" src="' + url + '" border=0></td></tr></table>');
//bigpic.document.write('</body></html>');
//bigpic.document.close();
//}

function viewNewsImage(href,title) {
  title = 'Viconte';
  url = href;


  var bigpic;
  bigpic=window.open("", "", 'menubar=no,directories=no,location=no,resizable=no,scrollbars=no,width=10,height=10');
  bigpic.document.open();
  bigpic.document.write('<html><head><title>' + title + '</title></head><body marginwidth=0 marginheight=0 topmargin=0 leftmargin=0 onLoad="self.resizeTo(document.model.width + 30,document.model.height + 50); self.moveTo((screen.width - document.model.width) / 2,(screen.height - document.model.height) / 2);">');
  bigpic.document.write('<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align=center valign=middle><img name="model" src="' + url + '" border=0></td></tr></table>');
  bigpic.document.write('</body></html>');
  bigpic.document.close();
}
