
function addBookmark(title,url) {
		if (window.sidebar) {
		    window.sidebar.addPanel(title, url,"");
		} else if( document.all ) {
		    window.external.AddFavorite( url, title);
		} else if( window.opera && window.print ) {
		    return true;
		}
	}


// PRINT
function printWindow(){
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print()
}

//CENTERED WINDOW
function openCenteredWindow(url, w, h) {
	var screenWidth  = screen.availWidth;
   	var screenHeight = screen.availHeight;

	var left = (screenWidth - w)/2;
	var top = (screenHeight - h)/2;

	var winName = Math.round(Math.random() * 10000000);

	window.open(url,winName,"toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width="+w+",height="+h+",left="+left+",top="+top)
}


		function openCenteredFlash(url, width, height, title) {
			var screenWidth  = screen.availWidth;
			var screenHeight = screen.availHeight;
			var left = (screenWidth - width)/2;
			var top = (screenHeight - height)/2;
			si_window=window.open('', "_blank", "width="+width+", height="+height+",left="+left+",top="+top);
			si_window.document.open();
			si_window.document.writeln('<html><head><title>' + title + '</title>');
			si_window.document.writeln('<style type="text/css" media="screen">');
			si_window.document.writeln('<!--');
			si_window.document.writeln('  body { margin: 0px; padding: 0px; }');
			si_window.document.writeln('-->');
			si_window.document.writeln('</style>');
			si_window.document.writeln('</head><body">');
			si_window.document.writeln('<object width="' + width + '" height="' + height + '"><param name="movie" value="' + url + '"></param><param name="wmode"></param><embed src="' + url + '" type="application/x-shockwave-flash" wmode="transparent" width="' + width + '" height="' + height + '"></embed></object>');
			si_window.document.writeln('</body></html>');
			si_window.document.close();
}
