function bookmark(){
	// Example:
	// var b = new BrowserInfo();
	// alert(b.version); 
	
	function BrowserInfo(){  this.name = navigator.appName; }
	
	var brwsr = new BrowserInfo();
	
	if(brwsr.name == "Netscape")
		alert("Netscape Navigator does not support this feature. Please press Control+D to add this web site to your Bookmarks.");
		
	window.external.addFavorite('http://www.sanavita.com/','SanaVita - Your best source for dermatitis and psoriasis treatments')
}

var wait_time = 300;
var levels = 2;
var num_sm_lvl = new Array(4,3);
var timers = new Array();
for (i = 0; i < levels; i++) {timers[i] = 0;}
function show_sm(level,sm_id){
	for (i = 0; i < levels; i++) {clearTimeout(timers[i]);}
	submenu = "sm"+eval(level)+"-"+eval(sm_id);
	if (document.getElementById) {document.getElementById(submenu).style.visibility = 'visible';}
	else if (document.all) {document.all[submenu].style.visibility = 'visible';}
}
function close_fast(){
	for(i = 0; i <= num_sm_lvl.length; i++)
		for(j = 1; j <= num_sm_lvl[i]; j++)
			hide_sm(i+1,j);
}
function close_wait(level,sm_id){
	lvl = eval(level);
	sm = eval(sm_id);
	timers[lvl-1] = setTimeout("hide_sm(lvl,sm)", wait_time);
}
function hide_sm(level,sm_id){
	submenu = "sm"+eval(level)+"-"+eval(sm_id);
	if (document.getElementById){document.getElementById(submenu).style.visibility = 'hidden';}
	else if (document.all) {document.all[submenu].style.visibility = 'hidden';}
}

function mark(td) {td.style.backgroundColor = "#FFFFFF";}
function unmark(td) {td.style.backgroundColor = "#E3E5E8";}

function showPrescription(){
	var parameters = "resizable='no', toobars='no', top='0', left='0'";
	var result = open('', 'result', parameters);
	
	result.document.writeln('<html>');
	result.document.writeln('<head>');
	result.document.writeln('<link rel="stylesheet" type="text/css" href="common/style.css">');
	result.document.writeln('<title>Prescription for DermaZinc&trade; Plus</title>');
	result.document.writeln('</head>');
	result.document.writeln('<body>');
	result.document.writeln('<p><img src="img/prescription.gif" alt="Prescription for DermaZinc&trade; Plus"></p>');
	result.document.writeln('<p align="center"><a href="#" onclick="print(); self.close()" class="reg">Print</a>&nbsp;&nbsp;&nbsp;<a href="#" onclick="self.close()" class="reg">Close</a></p>');
	result.document.writeln('</body></html>');
	result.document.close();
	result.focus();
}