
/*********** BEGIN BOOKMARK FUNCTIONS **************************/


/* Add to Favorites / Bookmarks or Sidebar Script. v1.0
Copyright (c) 2003 dazdezines.com. All rights reserved.
This script may be used freely as long as this
copyright message is left unchanged.

If you use Dreamweaver - get the Free DW Extension @
http://www.dazdezines.com/mme.

This script automatically adds a link to do the following:
Internet Explorer 4+ - Add this page to favorites list
Opera 6+ - Add this page to bookmarks/Hostlist
Netscape 6+ - Add sidebar to My Sidebar
Netscape 4x - Alert prompt telling user to press CTL+D to add bookmark */

var ns6LnkText = "BOOKMARK THIS PAGE"; //ns6+
var ie4LnkText = "BOOKMARK THIS PAGE"; //ie4+
var op6LnkText = "BOOKMARK THIS PAGE"; //op6+
var ns4LnkText = "BOOKMARK THIS PAGE"; //ns4+
var LinkURL = "javascript:;";
var linkSidebar = "/js/favoritos.asp" //ns6+
var titleText = document.title; //ie4+ & op6+ 
//var titleText = "www.prous.com"
if (typeof window.sidebar == "object" /* NS6+ */ ) { linkText = ns6LnkText; }
else if (window.external /* IE4+ */ ) { linkText = ie4LnkText; }
else if (window.opera /* OP6+ */ ) { linkText = op6LnkText; }
else { linkText = ns4LnkText ; /* NS4+ & Unknown */ }
if (window.opera) { lnkURL = document.location.href;
} else { lnkURL = LinkURL; }

//Do not modify past this point.
function dd_uniBookmark() { //v1.0 www.dazdezines.com/mme
	if ((typeof window.sidebar == 'object') && (typeof window.sidebar.addPanel == 'function')) {
    window.sidebar.addPanel ( document.title,'http://'+linkSidebar,'');
    /* Gecko (Netscape 6 etc.) - add to Sidebar */
	} else if( window.external && navigator.platform == 'Win32' ) {
    /* IE Win32 - checking for Favorites produces errors for no good reason,
    so we use a platform detect. Adds the current page as a favorite; if 
	this is unwanted, simply write the desired page in here instead of 'location.href' */
    window.external.AddFavorite( location.href, titleText );
	} else if( window.opera && window.print ) {
    /* Opera 6+ - add as sidebar panel to Hotlist */
	return true;
	} else if( document.layers ) {
    /* NS4 & Escape - tell them how to add a bookmark quickly (adds current page, not target page) */
    window.alert( 'Please click OK then press Ctrl+D to create a bookmark.' );
	} else {
    /* other browsers - tell them to add a bookmark (adds current page, not target page) */
    window.alert( 'your Browser is not supported' );
	}
  return false;
}

function printbookmark(){
	document.write('<a href="'+lnkURL+'" title="'+titleText+'" rel="sidebar" onClick="dd_uniBookmark();" onMouseOver="window.status=\''+linkText+'\'; return true;" onMouseOut="window.status=\'\';">'+linkText+'</a>');
}

/*********** END BOOKMARK FUNCTIONS **************************/
