function switches() { 
	var arg = switches.arguments;
	var argquant = arg.length;
	var str_loc = " " + top.location;

    if (navigator.appName == 'Netscape')
     { back_home_ = document.getElementById('back_home');
     } else { back_home_ = back_home; }

	if ((self==parent)||(str_loc.indexOf('sminko')<0)||(str_loc.indexOf('sminko')>50)) 
	{
	 window.name = "lone";
	 var str_self = " " + self.location;
	 var new_loc = "";
	 if (str_self.indexOf('smart_materials.html') < 0) {new_loc = '?' + str_self.substr(str_self.indexOf('sminko')+7,str_self.indexOf('html')-str_self.indexOf('sminko')-3);}
	 back_home_.innerHTML = '<a href=\"http://people.clarkson.edu/~sminko/' + new_loc + '\" target=\"_top\">Click here for this page at <b>NanoStructured Materials Group</b> complete website</a>'
	}
	else {
	 var sm_loc = " " + parent.smenu.document.location;
	 if ((arg[0]=='hmenu') && (sm_loc.indexOf('hmenu')>0)) return;
	 if (argquant==1) {parent.smenu.document.location.replace("sm-menu/" + arg[0] + ".html");}
	 else {parent.smenu.document.location.replace(arg[0] + arg[1] + ".html");}
	}

}

function operbuttons(a,b,c) {

 var str_loc = " " + parent.location;

 if ((self!=parent)&&(str_loc.indexOf('sminko')>0)&&(str_loc.indexOf('sminko')<50)) { 
   clearTimeout(parent.timer);
   if (parent.topfrm.loaded) { parent.topfrm.Roll(a,b,c); parent.datafrm.focus();}
   else {
     parent.timer_string = "parent.datafrm.operbuttons(\'" + a + "\', \'" + b + "\', " + c + ")";
     parent.timer = setTimeout(parent.timer_string, 500);
   }
 }
}