/* Add to Favorites / Bookmarks or Sidebar Script. v1.0
Copyright (c) 2003 dazdezines.com. All rights reserved.
This script can 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 to favourites
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 */

//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( 'Please use your browser\'s bookmarking facility to create a bookmark\r\rPlease email dwsupport@dazdezines.com telling us your\rbrowser type and version so that we can update this script\rto add support for your browser.\r\rThankyou for your support and help.' );
	}
  return false;
}
