// JavaScript Document
   window.defaultStatus = 'Medavita';
   
<!-- Oggetti Flash -->
function embedObject(x,y,path,nome) {
	x = escape(x);
	y = escape(y);
	var querystring = location.search;
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+x+'" height="'+y+'">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="'+path+'" />');
	document.write('<param name="loop" value="false" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="bgcolor" value="#999999" />');
	document.write('<embed src="'+path+'" loop="false" menu="false" quality="high" wmode="transparent" bgcolor="#999999" width="'+x+'"');
	document.write('height="'+y+'" name="'+nome+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

<!-- Immagini sezione storia -->
function Apri1(){
	window.open('HTML/1.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=450, height=430');
}	
function Apri2(){
	window.open('HTML/2.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=460, height=537');
}
function Apri3(){
	window.open('HTML/3.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=370, height=430');
}	
function Apri4(){
	window.open('HTML/4.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=537, height=314');
}
function Apri5(){
	window.open('HTML/5.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=538, height=380');
}
function Apri6(){
	window.open('HTML/6.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=550, height=435');
}
function Apri7(){
	window.open('HTML/7.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=520, height=480');
}
function Apri8(){
	window.open('HTML/8.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=434, height=547');
}
function Apri9(){
	window.open('HTML/9.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=434, height=571');
}
function Apri10(){
	window.open('HTML/10.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=600, height=433');
}
function Apri11(){
	window.open('HTML/11.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=599, height=692');
}
function Apri12(){
	window.open('HTML/12.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=300, height=450');
}
function Apri13(){
	window.open('HTML/13.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=550, height=379');
}
function Apri14(){
	window.open('HTML/14.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=491, height=530');
}
function Apri15(){
	window.open('HTML/15.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=585, height=360');
}
function Apri16(){
	window.open('HTML/16.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=365, height=460');
}
function Apri17(){
	window.open('HTML/17.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=419, height=398');
}
function Apri18(){
	window.open('HTML/18.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=434, height=495');
}
function Apri19(){
	window.open('HTML/19.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=365, height=460');
}
function Apri20(){
	window.open('HTML/20.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=730, height=410');
}
function Apri21(){
	window.open('HTML/21.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=730, height=563');
}
function Apri22(){
	window.open('HTML/22.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=356, height=580');
}
function Apri23(){
	window.open('HTML/23.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=531, height=553');
}
function Apri24(){
	window.open('HTML/24.html', 'html', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=600, height=328');
}

function apriSTR(url, name, height, width) {
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width;

  if (window.screen) {
    var ah = screen.availHeight - 30;
    var aw = screen.availWidth - 10;

    var xc = (aw - width) / 2;
    var yc = (ah - height) / 2;

    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  }
 window.open(url, name, str);

}

//-------------------------------------------------------------------------------------------

var popUpWin=0;
function popUp(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr,'popUpWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
//-------------------------------------------------------------------------------------------
function popAH(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  top = screen.height - (height + 70);
  left = screen.width - (width + 20);
  popUpWin = open(URLStr,'popUpWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
function Primo(){

		if ((document.body.clientWidth - 800) > 0)	{
			document.all.Tutto.style.left = (document.body.clientWidth - 800) / 2;
			document.all.Tutto.style.top = (document.body.clientHeight - 600) / 2;
	}
		
		else	{
		
			document.all.Tutto.style.left = 0;
	
				}
				popUp('colorday.html', 10,30, 531, 354);
				//apriSTR('popshampoo.html', 'shampoo', 430, 400);
		}
//-------------------------------------------------------------------------------------------
    // This is only needed for Netscape browsers.
    function flashGetHref() { return location.href; }
    function flashPutHref(href) { location.href = href; }
    function flashGetTitle() { return document.title; }
    function flashPutTitle(title) { document.title = title; }
//-------------------------------------------------------------------------------------------


