// JavaScript Document
function atf(){
	var sURL = location;
	var sTitle = "cvc forged steel valves";
	if(document.all)
		window.external.AddFavorite(sURL, sTitle); 
	else
		window.sidebar.addPanel(sTitle, sURL, "");	
}

function hp(){
	var sURL = "http://www.cvcvalve.com";
	var sTitle = "cvc forged steel valves";
	if (document.all){
			document.body.style.behavior='url(#default#homepage)';
	  		document.body.setHomePage(sURL);
		}
	else if (window.sidebar){
		if(window.netscape){
			try{  
				netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");  
			}  
			catch (e){  
				alert( "" );  
			}
		} 
		var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);
		prefs.setCharPref('browser.startup.homepage',sURL);
	 }
}
function disable()
{
	window.event.returnValue=false;
}
var url = location.href; 
var pn = url.substr(url.lastIndexOf("/")+1,1);
if(pn=="p"){
	/*document.oncontextmenu=disable;
	document.onselectstart=disable;
	document.ondragstart=disable;*/
}
