/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url) {
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	 _proxy_jslib_handle(elem, 'setAttribute', '', 1, 0)('href',url);
	 _proxy_jslib_handle(elem, 'setAttribute', '', 1, 0)('title',title);
	 _proxy_jslib_handle(elem, 'setAttribute', '', 1, 0)('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}


function getCookie(name) {
    var idx, idx_end;
    
    if ( _proxy_jslib_handle(document, 'cookie', '', 0, 0).length>0) {
        idx = _proxy_jslib_handle(document, 'cookie', '', 0, 0).indexOf(name + "=");
        
        if (idx!=-1) { 
            idx = idx + name.length + 1;             
            idx_end =  _proxy_jslib_handle(document, 'cookie', '', 0, 0).indexOf(";", idx);
            
            if (idx_end == -1) 
                idx_end =  _proxy_jslib_handle(document, 'cookie', '', 0, 0).length;
                
            return unescape( _proxy_jslib_handle(document, 'cookie', '', 0, 0).substring(idx, idx_end));
        } 
    }
    
    return "";
}

 ;
_proxy_jslib_flush_write_buffers() ;