function addBookmark(url, title) 
{ 
  if (!url) url = location.href; 
  if (!title) title = document.title; 
  
  //Gecko 
  if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) window.sidebar.addPanel ("HomePornBay.com - Tons of homemade videos", "http://www.homepornbay.com/", ""); 
  //IE4+ 
  else if (typeof window.external == "object") window.external.AddFavorite("http://www.homepornbay.com/", "HomePornBay.com - Tons of homemade videos"); 
  //Opera7+ 
  else if (window.opera && document.createElement) 
  { 
    var a = document.createElement('A'); 
    if (!a) return false; //IF Opera 6 
    a.setAttribute('rel','sidebar'); 
    a.setAttribute('href',url); 
    a.setAttribute('title',title); 
    a.click(); 
  } 
  else {
	alert("To bookmark HomePornBay.com, simply press the CTRL key and the D key (CTRL+D) at the same time. Visit us later!");
	return false;
  }

return true;
} 

function submit_searchForm(){

    var form_url = $("#search_box").attr("action");
	var type = $("#type").val();
	var search_val = $("#search_value").val();

	if(search_val == '' || search_val == 'Search...') return false;

		switch (type) 
		{
        case '1':
    		$("#search_box").attr("action","/search/");
        break;
        case '2':
    		$("#search_box").attr("action","/albums/search/");
        break;
        case '3':
    		$("#search_box").attr("action","/members/");
        break;
        default:
    		$("#search_box").attr("action","/search/");
        }

    $("#search_box").submit();
}

