var remote=null;
function rs(u,n,h,w,s,ching){
if (remote !=null){
 if (!remote.closed){remote.close();}}
remote=window.open(u,n,'height='+h+',width='+w+',left=5,top=5,resizable=yes,scrollbars='+s);}


var remote2=null;
function rs2(u,n,h,w,s,ching){
if (remote2 !=null){
 if (!remote2.closed){remote2.close();}}
remote2=window.open(u,n,'height='+h+',width='+w+',left=5,top=5,resizable=yes,scrollbars='+s);}



	var bitput = "";
   var output = "<a href=javascript:rs('http://www.gootab.com/folder/guitar071208wspop.html','popguit',270,370,0);>Gootar Chords</a> | <A href=javascript:rs2('http://www.gootab.com/gootab.html','gootab',250,720,1);>Gootab Player</A>  &nbsp; ::: &nbsp; | ";	
	var descriptit = "Get tabs and hear them online";
	var keywordit = "guitar";

  function breadcrumbs(){
    sURL = new String;
    bits = new Object;
    var x = 0;
    var stop = 0;
    //output += "<A HREF=\"/\">Home</A> | ";
    bitput = "Gootab.com |";


    sURL = location.href;				//alert(sURL)
    sURL = sURL.slice(8,sURL.length);
    chunkStart = sURL.indexOf("/");
    sURL = sURL.slice(chunkStart+1,sURL.length);  

			
	  bitput = sURL.replace(/\//g," | ");  		//alert(sURL)
	//bitput = sURL.replace(/\\/g," | ");  
	bitput = bitput.replace(/_/g," "); 	
	bitput = bitput.replace(/-/g," "); 
	bitput = bitput.replace(/\./g," "); 
	bitput = bitput.replace(/%20/g," "); 
	bitput = bitput.replace(/php/g," "); 
	bitput = bitput.replace(/html/g," "); 


 	  bitput =  bitput + " guitar tab"; 		//alert(bitput)


    while(!stop){
      chunkStart = sURL.indexOf("/");
      if (chunkStart != -1){
        bits[x] = sURL.slice(0,chunkStart)
        sURL = sURL.slice(chunkStart+1,sURL.length);
      }else{
        stop = 1;
      }//
      x++;
    }//

	descriptit = "Get "+ bits[x-2] + " and other tabs and hear them online";
	keywordit = "guitar\, tabs\, tablature\, online\, player";


	//  alert(descriptit);   alert(keywordit)

     for(var i in bits){ 	//alert(bits[x-2])
      output += "<A HREF=\"";
      for(y=1;y<x-i;y++){
        output += "../";

      }
      output += bits[i] + "/\">" + bits[i] + "</A>  | ";	// bitput += bits[i]  + " | ";
    }
    
      //document.write(output);
 }

	breadcrumbs();


