/*

 File di configurazione menupro.js
 (C) 2003 Verbasoft - Developed by Daniele Piselli

*/

//keywords
var code="code";var url="url";var sub="sub";
var BLANK_IMAGE="assets/templates/oldsite/img/b.gif";

//styles
var color_1 = {"border":"#000000", "shadow":"#000000", "bgON":"#999999","bgOVER":"#80C9BE"};
var color_2 = {"border":"#000000", "shadow":"#000000", "bgON":"#FFFFFF","bgOVER":"#80C9BE"};
var css_1 = {"ON":"clsCMOn", "OVER":"clsCMOver"};
var css_2 = {"ON":"clsCMOn2", "OVER":"clsCMOver2"};
var STYLE_1 = {"border":1, "shadow":0, "color":color_1, "css":css_1, "arrow":"assets/templates/oldsite/img/arr1.gif", "oarrow":"assets/templates/oldsite/img/arr1_o.gif"};
var STYLE_2 = {"border":1, "shadow":0, "color":color_2, "css":css_2, "arrow":"assets/templates/oldsite/img/arr1.gif", "oarrow":"assets/templates/oldsite/img/arr1_o.gif"};
var STYLE_3 = {"border":1, "shadow":2, "color":color_2, "css":css_2, "arrow":"assets/templates/oldsite/img/arr1.gif", "oarrow":"assets/templates/oldsite/img/arr1_o.gif"};


// MENU PRINCIPALE
var MENU_MAIN =
[
	{"pos":"relative", "itemoff":[0,134], "leveloff":[0,0], "size":[24,135], "style":STYLE_1},
	{code:"Azienda", "format":{"arrow":"assets/templates/oldsite/img/arr1.gif", "oarrow":"assets/templates/oldsite/img/arr1_o.gif", "arrsize":[7,10]},
		sub:[
			{"itemoff":[23,0], "leveloff":[23,0], "size":[25,135], "style":STYLE_2},
			{code:"Profilo", url:"index.php?id=11"},
			{code:"Tecnologia", url:"index.php?id=12"},
			{code:"Partners", url:"index.php?id=13"},
			{code:"Contatti", url:"index.php?id=14"},
			{code:"Web Gallery", url:"index.php?id=15"},
		]
	},
	{code:"Abbonamenti Internet", "format":{"arrow":"assets/templates/oldsite/img/arr1.gif", "oarrow":"assets/templates/oldsite/img/arr1_o.gif", "arrsize":[7,10]},
		sub:[
			{"itemoff":[23,0], "leveloff":[23,0], "size":[24,135], "style":STYLE_2},
			{code:"Professional", url:"index.php?id=16"},
			{code:"FreeNet", url:"index.php?id=17"},
			{code:"FLAT", url:"index.php?id=18"},
			{code:"ADSL", url:"index.php?id=19"},
			{code:"SAT", url:"index.php?id=20"},
			{code:"WI-FI", url:"index.php?id=21"},
			{code:"Virtual ISP", url:"index.php?id=22"},
		]
	},
	{code:"Servizi Internet", "format":{"arrow":"assets/templates/oldsite/img/arr1.gif", "oarrow":"assets/templates/oldsite/img/arr1_o.gif", "arrsize":[7,10]},
		sub:[
			{"itemoff":[23,0], "leveloff":[23,0], "size":[24,135], "style":STYLE_2},
			{code:"Reg. Domini", url:"index.php?id=23"},
			{code:"Hosting", url:"index.php?id=24"},
			{code:"Housing", url:"index.php?id=25"},
			{code:"Web Design", url:"index.php?id=26"},
			{code:"Web Developed", url:"index.php?id=27"},
			{code:"SQL Database", url:"index.php?id=28"},
			{code:"SMS Gateway", url:"index.php?id=29"},
			{code:"E-Commerce", url:"index.php?id=30"},
			{code:"Web Marketing", url:"index.php?id=31"},
		]
	},
	{code:"Soluzioni Informatiche", "format":{"arrow":"assets/templates/oldsite/img/arr1.gif", "oarrow":"assets/templates/oldsite/img/arr1_o.gif", "arrsize":[7,10]},
		sub:[
			{"itemoff":[23,0], "leveloff":[23,0], "size":[24,135], "style":STYLE_2},
			{code:"Sviluppo Software", url:"index.php?id=32"},
			{code:"Hardware & Periferiche", url:"index.php?id=33"},
			{code:"Network & Reti", url:"index.php?id=34"},
			{code:"Sicurezza & Virus", url:"index.php?id=35"},
			{code:"Multimedia", url:"index.php?id=36"},
			{code:"Consulenza", url:"index.php?id=37"},
			{code:"Assistenza", url:"index.php?id=38"},
		]
	},
	{code:"Supporto Online", "format":{"arrow":"assets/templates/oldsite/img/arr1.gif", "oarrow":"assets/templates/oldsite/img/arr1_o.gif", "arrsize":[7,10]},
		sub:[
			{"itemoff":[23,0], "leveloff":[23,0], "size":[24,135], "style":STYLE_2},
			{code:"Helpdesk", url:"index.php?id=39"},
			{code:"Faq", url:"index.php?id=40"},
			{code:"Download", url:"index.php?id=41"},
			{code:"Tools",
				sub:[
					{"itemoff":[23,0], "leveloff":[4,132], "size":[24,132], "style":STYLE_2},
					{code:"Cerca POP", url:"javascript:openWin('cercapop.htm', 450, 260)"},
					{code:"Copertura ADSL", url:"javascript:openWin('copertura_640.htm', 460, 300)"},
					{code:"Copertura ADSLx", url:"javascript:openWin('copertura_320.htm', 460, 300)"},
					{code:"Copertura VOCE", url:"javascript:openWin('copertura_ull.htm', 460, 300)"},
//					{code:"Controlla Dominio", url:"javascript:openWin('whois.htm', 480, 350)"},
//					{code:"Pagamenti Online", url:"ecomm"},
				]
			},
			{code:"Lettura Posta Web", url:"http://mail.verbasoft.net/webmail.php", "target":"_blank"},
			{code:"Pannello Mail", url:"http://mail.verbasoft.net/mailadmin.htm", "target":"_blank"},
		]
	},

];


// MOUSE CLICK DESTRO
var MENU_MOUSE =
[
	{"popup":1, "popupoff":[0,0], "pos":[0,0], "size":[24,135], "itemoff":[23,0], "leveloff":[10,135], "delay":500, "style":STYLE_3},
		{code:"Helpdesk", url:"helpdesk.htm"},
		{code:"Faq", url:"faq.htm"},
		{code:"Download", url:"download.htm"},
		{code:"Tools",
			sub:[
				{"itemoff":[23,0], "leveloff":[4,132], "size":[24,132], "style":STYLE_3},
				{code:"Cerca POP", url:"cercapop.htm"},
				{code:"Copertura ADSL", url:"testADSL.htm"},
				{code:"Copertura Voce", url:"testULL.htm"},
				{code:"Controlla Dominio", url:"whois.htm"},
				{code:"Pagamenti Online", url:"ecomm"},
			]
		},
		{code:"Webmail", url:"webmail.htm", "target":"_top"},
		{code:"MailAdmin", url:"mailadmin.htm", "target":"_top"},
];


// Handle myWin
var myWin = null;

// Openwin function
function openWin(page, myW, myH) {

  var params  = "";
  params += "toolbar=0,";
  params += "location=0,";
  params += "directories=0,";
  params += "status=0,";
  params += "menubar=0,";
  params += "scrollbars=0,";
  params += "resizable=0,";
  params += "width=" + myW + ",";
  params += "height=" + myH + ",";
  params += "top=120,";
  params += "left=40";

  if (!window.myWin || myWin.closed) {
     myWin = window.open(page, 'openwin', params);
  } else {
        myWin.location.href = page;
        myWin.focus();
//		myWin.moveTo(100, 100);
		myWin.resizeTo(myW, myH);
  }
	
}

