function breadcrumbs () {
	var sURL   = window.location.href;
	var sURLen = sURL.length;
	var aURL   = new Array();
	var aURLoc = new Array();
	var aURLen = 0;
	var letter = '';
	var word   = '';
	var theend = 'default.aspx'; 
	//var begin  = '192.168.10.10';
	var begin = getDomain(location.href);
	var now    = (theend != '') ? 0 : 1;
	var sl     = '/';
	var output = '<div class="breadcrumbstext">::&nbsp; <a href="http://' + begin + '">Home</a>&nbsp; :&nbsp; ';	
	//var output = '<div class="breadcrumbstext">::&nbsp; ';	
	var home   = 'nullvectorus';
	//var home   = '192.168.10.10';

    /*document.write(sURL.charAt(sURL.length-1));*/

    if (sURL.indexOf("translate") == -1)
    {
    
	    if (sURL.indexOf("?") > -1)
	    {
		    sURL = sURL.substring(0,sURL.indexOf("?")-1);
	    }
	    
		if (sURL.charAt(sURL.length-1) == sl)
			{
			sURL = sURL + theend;
			sURLen = sURL.length;
			//document.write(sURL);
			} 
	
		
		for (i=0; i < sURLen; i++) {
			justbeforeme = sURLen - i;
			fromme       = justbeforeme - 1;
			letter       = sURL.substring(fromme,justbeforeme);
	
			if (letter != sl) word = letter + word;
			if (((letter == sl) || (i == sURLen-1)) && (word != '')) {
				aURL[aURLen]   = word;
				aURLoc[aURLen] = sURL.substring(0,justbeforeme) + word;
				word = '';
				aURLen++;
			}
			
		}
	
		for (i=aURLen-1; i > 0; i--) {
			word = aURL[i];
			loc  = aURLoc[i];
			if (word == theend) now = 0;
			if (now  == 1) {
				if (word == home )
					output = output + '<a href="' + loc + '">home</a>' + ' &gt; ';
				else
					output = output + '<a href="' + loc + '">' + word.replace(/%20/g,' ') + '</a>' + ' &nbsp;:&nbsp; ';
			}
			if (word == begin)  now = 1;
		}
		document.write(output + 'here</div>');
	}
}
function getDomain(str)
{
   var i;
   
   //if it is empty, don't bother
   if (str == null || str.length == 0)
      return "";
         
   //remove the http://, if it is there   
   i = str.indexOf("//");
   if (i > -1)
      str = str.substring(i+2); //, str.length - i);
      
   //now, if there is a slash in the url, take everything before it. 
   i = str.indexOf("/");
   if (i > -1)
      str = str.substring(0, i);
      
   return str; 
}


function bookmark_us(url, title){

if (window.sidebar) // firefox
    window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
    var elem = document.createElement('a');
    elem.setAttribute('href',url);
    elem.setAttribute('title',title);
    elem.setAttribute('rel','sidebar');
    elem.click();
}
else if(document.all)// ie
    window.external.AddFavorite(url, title);
}


