var sito_title = 'Allevamento Schnauzer Nuovi Ussari Neri'
var sito_url = 'http://www.nuoviussarineri.it'

// defult status
defaultStatus = sito_title

// variabile random
var numero_random = (Math.random()*1000);

// tira fuori dal frameset
if (window != top) top.location = location;

// javascript:PopUPThis('imm/1.jpg');
function PopUPThis(img) {
	var fpop = window.open("","nome","width=100,height=100,menubar=no,toolbar=no,resizable=no,scrollbars=no");
	fpop.document.write('<html>\n');
	fpop.document.write('<head>\n');
	fpop.document.write('<title>' + sito_title + '</title>\n');  
	fpop.document.write('</head>\n');
	fpop.document.write('<script language=\'JavaScript\' type="text/javascript">\n');  
	fpop.document.write('function fitPic() {\n');  
	fpop.document.write('	var NS = (navigator.appName=="Netscape")?true:false;\n');
	fpop.document.write('	iWidth  = (NS)?window.innerWidth:document.body.clientWidth;\n');
	fpop.document.write('	iHeight = (NS)?window.innerHeight:document.body.clientHeight;\n');  
	fpop.document.write('\n');
	fpop.document.write('	var l = Math.floor((screen.availWidth  - document.images[0].width)/2);\n');
	fpop.document.write('	var a = Math.floor((screen.availHeight - document.images[0].height)/2);\n');
	fpop.document.write('\n');
	fpop.document.write('	iWidth  = document.images[0].width  - iWidth;\n');
	fpop.document.write('	iHeight = document.images[0].height - iHeight;\n');
	fpop.document.write('	window.resizeBy(iWidth, iHeight-1);\n');
	fpop.document.write('\n');
	fpop.document.write('	window.moveTo(l, a);\n');
	fpop.document.write('\n');
	fpop.document.write('	self.focus();\n');
	fpop.document.write('}\n');	
	fpop.document.write('</script>\n');
	fpop.document.write('<body style="margin:0px;" onLoad="fitPic();">\n');  
	fpop.document.write('<a href="javascript:self.close()"><img src="' + img + '" border="0" galleryimg="no" alt="Close"></a>\n');  
	fpop.document.write('</body>\n');
	fpop.document.write('</html>\n');
	fpop.document.close();
}

// pop up NO SCROLL
function winnoscroll(pag,w,h,nome) {
  var l = Math.floor((screen.availWidth-w)/2); 
  var a = Math.floor((screen.availHeight-h)/2);
  fin = window.open(pag,nome,"width="+w+",height="+h+",menubar=no,toolbar=no,resizable=no,scrollbars=no,left=" + l + ",top=" + a);
}

// pop up CON SCROLL
function winscroll(pag,w,h,nome) {
  var l = Math.floor((screen.availWidth-w)/2); 
  var a = Math.floor((screen.availHeight-h)/2);
  fin = window.open(pag,nome,"width="+w+",height="+h+",menubar=no,toolbar=no,resizable=no,scrollbars=yes,left=" + l + ",top=" + a);
}

// funzione per scopri copri pezzi di codice
function scopri(a) {
	if(document.getElementById(a).style.display != 'block') {
		document.getElementById(a).style.display = 'block';
	} else {
		document.getElementById(a).style.display = 'none';
	}
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//Bookmark Page

//
isIE = isIE4 = isIE5 = isIE6 = isIE7 = isNS = isNS4 = isNS6 = isNS7 = isNS8 = isFlash5 = isFlashMX = false;

// Browser Detection
if(navigator.appName.indexOf('Netscape') == 0) isNS = true;
if(navigator.appName.indexOf('Microsoft') == 0) isIE = true;
isUNIX = (window.navigator.appVersion.indexOf("X11") != -1) ||
         (window.navigator.appVersion.indexOf("Linux") != -1) ||
         (window.navigator.appVersion.indexOf("SunOS") != -1) ||
         (window.navigator.appVersion.indexOf("IRIX") != -1) ||
         (window.navigator.appVersion.indexOf("HP-UX") != -1);
isMac = (window.navigator.appVersion.indexOf("Mac") != -1);
isWindows = navigator.userAgent.indexOf("Windows 95") != -1 ||
            navigator.userAgent.indexOf("Windows 98") != -1 ||
            navigator.userAgent.indexOf("Windows NT") != -1;
isMacIE = (isMac && isIE);

// Netscape Version
if(isNS) {
  v = parseInt(navigator.appVersion);
  if(v == 4) {
    isNS4 = true;
  } else if(v == 5) {
    p = navigator.userAgent.lastIndexOf('/');
    v = parseInt(navigator.userAgent.substr(p+1));
    eval("isNS" + v + " = true");
  }
}

// Internet Explorer Version
if(isIE) {
  v = parseInt(navigator.appVersion.substr(navigator.appVersion.indexOf("MSIE")+5));
  eval("isIE" + v + " = true");
}


//Bookmark Page

function addbookmark() { 
  var bookmarktitle = sito_title;
  var bookmarkurl = sito_url;
  var netscape
  var macintosh
  netscape="Attenzione! Per aggiungere questa pagina ai Preferiti premere CTRL+D.\n\nPer aggiungere questa pagina alla Sidebar di Netscape, premi OK alla schermata successiva.\n\nAttention! To Bookmark this page please click the page you would like to bookmark and press CTRL+D. If you would like to add this page to your Netscape Sidebar, please click OK on the next window which appears.";
  macintosh="Attenzione! Per aggiungere ai Preferiti questa pagina premere CTRL+D.\n\nAttention! To Bookmark this page please click the page you would like to bookmark and press CTRL+D.";

  if (window.sidebar&&window.sidebar.addPanel) { 
    alert(netscape);
    window.sidebar.addPanel(bookmarktitle, bookmarkurl,""); 
  } else if (isMac) {
    alert(macintosh);
  } else if (document.all) {
    window.external.AddFavorite(bookmarkurl, bookmarktitle);
  } else if (window.opera && window.print) {
    return true;
  }
}


/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////



function apriBlank (indirizzo){
	window.open(indirizzo,'blank','');
	}
