﻿


var wt = 860;

if (parseInt(navigator.appVersion)>3) {  //  alert(navigator.appName);
	
	if (navigator.appName.indexOf("Microsoft")!=-1) {  wt = document.body.offsetWidth; }
	if (navigator.appName.indexOf("Microsoft")==-1) {  wt = window.innerWidth; }
	
		}//

var asdf = "";

if (wt < 851)		  {asdf += "<body bgcolor=#f7f7f7 topmargin=34 leftmargin=05 rightmargin=05>" }	
if (wt > 850 && wt < 1050){asdf += "<body bgcolor=#ffffff topmargin=34 leftmargin=5 rightmargin=5>" }
if (wt > 1049)		  {asdf += "<body bgcolor=#ffffff topmargin=34 leftmargin=50 rightmargin=50>" }

//document.writeln(asdf);

//document.write("<body background='bgrd_tile.gif'>");	



document.write("<style>");


document.write("body {margin: 0px 0px 0px 0px ; padding:34px 10px 10px 10px;height:90%}");
if (navigator.appName.indexOf("Microsoft") > -1) {
document.write("hr{height:1px;border:0;}");	}//

document.write(".bubbleghead {position:fixed;width:100%; top:0px;padding:7px;left:0px;background-color:#69d;vertical-align:bottom;z-index:10000000;} .bgbg{position:absolute;}");


document.write(".sixxx {height:24px;width:100%;}");
document.write("</style>");



document.write("<style>");
document.write("a.style11,a.style11:visited{font-family:arial,sans-serif;color:#333;text-decoration:none;font-size:11px;font-weight:normal}");
document.write("a.style11:hover{background-color:#bbb;;color:#333;font-size:11px;font-weight:normal}</style>");


document.write("<style>");
document.write("a.head2,a.head2:visited{font-family:arial,sans-serif;color:#f7f7f7;text-decoration:none;font-size:12px;font-weight:bold;padding-left:4px;padding-right:3px;padding-bottom:6px;padding-top:9px;}");


document.write("a.head2:hover{background-color:#7ae;;color:#fff;font-size:12px;font-weight:bold;}</style>");


document.write("<style>.timer{font-family:arial,sans-serif;color:#333;font-size:13px;font-weight:bold}</style>");

document.write("<style>.bgbg{font-family:arial,sans-serif;color:#333;font-size:13px;background-color:#eee;width:510;text-align:center;position:fixed}</style>");

document.write("<style>.bgbgxxx{font-family:arial,sans-serif;color:#333;font-size:13px;width:510;text-align:center;margin-bottom:12px;}</style>");




	var hitCtxx = '1';					//;margin-bottom:12px;

	now = new Date
	expireDate = new Date
	expireDate.setMonth(expireDate.getMonth()+6)
	hitCtxx = parseInt(cookieVal("pageHitxx"))
	hitCtxx++
	document.cookie = "pageHitxx="+hitCtxx+";expires=" + expireDate.toGMTString()

	function cookieVal(cookieName) {
	thisCookie = document.cookie.split("; ")
	for (i=0; i<thisCookie.length; i++) {
	if (cookieName == thisCookie[i].split("=")[0]) {
	return thisCookie[i].split("=")[1]
	}
	}
	return 0
	}
			//alert("headertop= " + hitCtxx);

if (typeof hitCtxx == 'undefined'){ var hitCtxx = '1'};
if (hitCtxx == 'null'){ var hitCtxx = '1'};



	//if ( hitCtxx > 9911){  
	






var dlll = document.location.toString();

var dttt = new Date();
if (dttt.getHours()%4==0 && hitCtxx > 3 && dlll.indexOf('tabberenk.html') < 0){

	document.write("<style>html{height:100%;overflow:hidden;}</style>");

	if (dlll.indexOf('scaler')!=-1){

	document.write("<style>html{height:100%;overflow:visible;}</style>");}//

		if (dlll.indexOf('ukulele')!=-1 || dlll.indexOf('4')!=-1 || dlll.indexOf('banjo')!=-1){	
			
		//window.location="http://www.gootar.com/chordgen/index4.html";
 document.write("<iframe src='http://www.gootar.com/chordgen/index4.html' frameborder='0' width='100%' height='100%'></iframe>");

			} else if (dlll.indexOf('tabbass')!=-1){

			//window.location="http://www.gootar.com/chordgen/index60.html";
   document.write("<iframe src='http://www.gootar.com/chordgen/bass.html' frameborder='0' width='100%' height='100%'></iframe>");


			} else if (dlll.indexOf('scaler')==-1 && dlll.indexOf('cryptic')==-1){
			
		//window.location="http://www.gootar.com/chordgen/";
  			
    document.write("<iframe src='http://www.gootar.com/chordgen/' frameborder='0' width='100%' height='100%'></iframe>");



			}//
			}//


////////////////



  var interval;
    var minutes = 5;
    var seconds = 00;
   // window.onload = function() {
    //    countdown('countdown');
    //}

    function countdown(element) {
        interval = setInterval(function() {
            var el = document.getElementById(element);
            if(seconds == -1) {
		if(minutes == 0) {
                    el.innerHTML = "If you backed up you might have to reload this page";                    
                    clearInterval(interval);
			//window.location.replace("http://www.gootar.com/chordgen/");
			
		
		if (dlll.indexOf('ukulele')!=-1 || dlll.indexOf('4')!=-1){	
			window.location="http://www.gootar.com/chordgen/index4.html";
			
			} else if (dlll.indexOf('tabbass')!=-1){
			window.location="http://www.gootar.com/chordgen/bass.html";

			} else if (dlll.indexOf('tabber7')!=-1){
			window.location="https://www.paypal.com/us/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=457050";

			
			} else {
			window.location="http://www.gootar.com/chordgen/";
  			}//
                  
                    return;

                } else {

                    minutes--;
                    seconds = 59;
                }//
            }//

            if(minutes > 0) {
                var minute_text = minutes + (minutes > 1 ? ' minutes' : ' minute');
            } else {
                var minute_text = '';
            }
            var second_text = seconds > 0 ? 'seconds' : 'second';
            el.innerHTML = minute_text + ' ' + seconds + ' ' + second_text + ' remaining';
            seconds--;
	//if(minutes >= 5) {el.innerHTML = "If you back up you might have to reload the page";}//     

        }, 1000);
    }

//////////////



function padding(){
 if (navigator.appName.indexOf("Microsoft")> -1){           		
	document.getElementById('tab2').cellPadding="3"; 
	document.getElementById('tab2').cellSpacing="7"; 
	//document.dym.display.rows=7;
//    works----> document.getElementById('tab2').style.backgroundColor='#6699ff'

		}}//	
	
	var dlll = document.location.toString();
	
	     if (dlll.indexOf('http://gootar.com')!=-1){		
		dlll = dlll.replace('http://gootar.com','http://www.gootar.com');
	//	dlll = dlll.replace('guitar.to','gootar.com');
		window.location=dlll;
				}//
	



		

	if (dlll.indexOf('gootar.com')>0){	 // alert(dlll);
		dlll = dlll.replace('www.gootar.com','guitar.to');
		dlll = dlll.replace('gootar.com','guitar.to');	
		
		
	// if (dlll.indexOf('DocsGootar')>0){dlll = dlll.replace('DocsGootar','DocsBraveGuitarTo');prompt(dlll,dlll)}	
	
							  
	           //window.setTimeout('window.location=dlll',9000);
		
	//		window.location=dlll;

			}//	 background-color:#bbbbbb;
	




//if ((document.referrer.indexOf("guitar.to") < 1) && (document.referrer.indexOf("gootar.com") < 1)){window.setTimeout('window.location="http://www.gootar.com"',9000);}

if (top.location !=self.location && document.referrer.indexOf("gootar") < 0) {top.location.replace(self.location);}

var popunder=new Array()
popunder[0]="http://www.gootar.com/chordgen/"

var width = '880'; 
var height = '600';

var ppp ='scrollbars=yes,resizable=yes,toolbar=no,' + 'menubar=no,status=no,location=no,left=5,top=5,height=' + height + ',width=' + width;

function popun(){ 
window.focus();}


function oppp(){ //Math.floor(Math.random()*(popunder.length))
win2=window.open(popunder[0],"jen",ppp);
//win2.blur();
//window.focus();
			}//




var clrx=""
var rm = '0';
var kleon = '0';




clrx = new Array('#cc99cc','#cc6699','#99aa99','#88bbbb','#99aabb','#99cc99','#99bbee','#aaaacc','#cc99aa','#cccccc','#aaaaaa');
rm = Math.floor ((Math.random() * clrx.length)); 



  if (typeof barone == 'undefined'){ var barone = '#eeeeee';};
//if (typeof bartwo == 'undefined'){ var bartwo = '#99bbee';};
  if (typeof bartwo == 'undefined'){ var bartwo=clrx[rm];};

bartwo='#5599ff';



 if (typeof mouser == 'undefined'){ var mouser = '1'};
if (document.layers || navigator.appName=="Netscape"){var mouser='0';}

if (mouser =='1'){
	 if (document.layers){document.captureEvents(Event.MOUSEDOWN)}
	document.onmousedown = captureMousedown;
function captureMousedown(evt) {if (evt) {mouseClick = evt.which}
	else {mouseClick = window.event.button}
if (mouseClick==2 || mouseClick==3){rs('http://www.gootar.com/chordgen/index','401',520,800,1);
		return false}}
}//mouser

////////////   alert("Programs are Available for  Purchase. \n Hassle-Free, Automatic Set-up");
var remote=null;lp=0;
function rs(u,n,h,w,s){
leftPos=5;if(n=="demo"){lp=lp+1}
//if(screen){leftPos=screen.width-w-15}
if (remote !=null){
 if (!remote.closed && n!="demo"){remote.close();}}
if(n!="demo"||lp<2){
remote=window.open(u+".html",n,'height='+h+',width='+w+',left='+leftPos+',top=5,resizable=yes,scrollbars='+s);}}

function switchsad(){setTimeout("delaysad()", 3000)}
function  delaysad(){document.jjz.src='online.gif'}





document.write("<div class=bubbleghead>");

document.write("<div style='float:left;width:30px;padding-top:0px'><a href='http://www.gootar.com/'><img src='http://www.gootar.com/home.gif' border='0' title='Home'></a>");
document.write(" </div>");

document.write("<div style='float:right;width:30px;padding-top:0px'>");
document.write("<a rel='nofollow' href='http://www.facebook.com/sharer.php?u="+document.location+"&amp;t="+document.title+"' title='Facebook' target=_new><img border='0' src='smallface.png' title='Share with your Facebook Friends'/></a>");
document.write(" </div>");



document.write("<div style='padding-top:3px'>&nbsp;<a href='http://www.gootar.com/indexg.html' class='head2'>Guitar</a>");
document.write("<a href='http://www.gootar.com/indexb.html' class='head2'>Bass</a>");
document.write("<a href='http://www.gootar.com/indexd.html' class='head2'>Drums</a>");
document.write("<a href='http://www.gootar.com/indexv.html' class='head2'>Vocals</a>");
document.write("<a href='http://www.gootar.com/indexp.html' class='head2'>Piano</a>");
document.write("<a href='http://www.gootar.com/indexu.html' class='head2'>Ukulele</a>");
document.write("<a href='http://www.gootar.com/indexu.html' class='head2'>Mandolin</a>");
document.write("<a href='http://www.gootar.com/indexu.html' class='head2'>Banjo</a>");
document.write("<a href='http://guitar.to/ner/' class='head2'>Tuner</a>");
document.write("<a href='http://www.gootab.com/' class='head2'>Tabs</a>"); 
document.write("<a href='http://www.gootar.com/theory.htm' class='head2'>Theory</a>");
document.write("<a href='http://www.gootar.com/charts/' class='head2'>Charts</a>");
document.write("<a href='http://www.gootar.com/indexf.html' class='head2'>Lefty</a>");
document.write("<a href='http://www.gootar.com/cryptic.html' class='head2'>Cryptic Quote</a>"); 
document.write("<a href='http://classical.gootar.com'  class='head2'>Classical</a>");
document.write("&nbsp;<a href='http://www.gootar.com/chordgen/' class='head2'>Download</a>&nbsp;");



document.write("<a rel='nofollow' href='http://www.facebook.com/sharer.php?u="+document.location+"&amp;t="+document.title+"' title='Facebook' target=_new class='head2'>&nbsp; Share </a> &nbsp; ");

/* document.write("<img src='http://www.gootar.com/online.gif' border='0' name='jjz' alt='Why big sad?'>");
  */




document.write("</div></div>");


//////////////////

//document.write("<div class='sixxx'>&nbsp;</div>");



if (dlll.indexOf('cryptic') < 0  && dlll.indexOf('scaler') < 0){

document.write("<div class=bgbg>Use any program for 5 minutes &nbsp; <span id='countdown' class=timer> &nbsp; </span></div>");

}//

document.write("<div class=bgbgxxx> &nbsp; <span class=timer> &nbsp; </span></div>");





document.write("<table border=0 cellspacing=0 cellpadding='002'>")
document.write("<tr><td align=left width=260>")


//document.write("<a href='http://www.gootar.com'><img src='http://www.gootar.com/guitar.gif' border=0 ></a>")
  document.write("<a href='http://www.gootar.com'><img src='http://www.gootar.com/gootar60.png' border=0 ></a>")



document.write("</td><td align=center  style='width:470px' class='round fafafa'>")

randomNum = Math.floor ((Math.random() * 5))

//randomNum = 724; //




if (dlll.indexOf('tabber.html')>0){randomNum = 11}

if (dlll.indexOf('piano')>0){randomNum = 8}
if (dlll.indexOf('ukulele')>0 || dlll.indexOf('uke')>0  || dlll.indexOf('4')>0){randomNum = 9}
if (dlll.indexOf('bass')>0){randomNum = 10}
if (dlll.indexOf('banjo')>0){randomNum = 12}



if(randomNum==10){ 
document.write("<a href='http://www.gootar.com/chordgen/bass.html'><img  src='http://www.gootar.com/bassa.gif' border='0'></a>")}

if(randomNum==8){ 
document.write("<a href='http://www.gootar.com/chordgen/index60.html'><img  src='http://www.gootar.com/piano6a.gif' border='0'></a>")}

if(randomNum==9){ 
document.write("<a href='http://www.gootar.com/chordgen/index4.html'><img  src='http://www.gootar.com/gen4a.gif' border='0'></a>")}

if(randomNum==5){ 
document.write("<a href=javascript:rs('http://www.gootar.com/purchase','401',500,700,1);><img  src='http://www.gootar.com/hearit.gif' border='0'></a>")}

if(randomNum==6){ 
document.write("<a href=javascript:rs('http://www.gootar.com/guitar/ad','401',500,780,1);><img  src='http://www.gootar.com/jen2002.gif' border='0'></a>")}

if(randomNum==1 || randomNum==3){ 
document.write("<a href='http://www.gootar.com/chordgen';><img  src='tab2.gif' border='0'></a>")}

if(randomNum==4){ 
document.write("<a href='http://www.gootar.com/chordgen';><img  src='http://www.gootar.com/gen6a.gif' border='0'></a>")}

if(randomNum==2 || randomNum==0){ 
document.write("<a href='http://www.gootar.com/chordgen';><img  src='http://www.gootar.com/gen6t.gif' border='0'></a>")}

if(randomNum==11){ 
document.write("<a href='http://www.gootar.com/chordgen/indexenk.html';><img  src='tab2.gif' border='0'></a>")}

if(randomNum==12){ 
document.write("<a href='http://www.gootar.com/chordgen/index5.html';><img  src='tab2.gif' border='0'></a>")}


//document.write("<a href='http://www.dpbolvw.net/click-3789945-10396934' target='_top'>");
//document.write("<img src='http://www.tqlkg.com/image-3789945-10396934' width='468' height='60' alt='Free Shipping on orders over 99.' border='0'/></a>");




document.write("</td><td align=right width=190>")

document.write("<table border=00 width=170 cellspacing=09 cellpadding=002 bgColor='#e6e6e6'  background='http://www.gootar.com/gripew.gif' class=goonew><tr><td valign=top bgcolor='#f7f7f7' align=left>");
document.write(" <img src='http://www.gootar.com/folder/new.gif' border=0  > Get an advanced <br>version of this program <br><a href='http://www.gootar.com/chordgen/'>Vertical</a> ¦ ");

document.write(" <a href='http://www.gootar.com/chordgen/indexenk.html'>Horizontal</a> --</td></tr></table>");




//document.write("<a href='http://www.facebook.com/sharer.php?u="+document.location+"' target='_blank'><img src='http://www.gootar.com/folder/facebook-icon.gif' height=60 border='0' alt='Share on Facebook'></a>")


//document.write("<a href='http://www.siteadvisor.com/sites/gootar.com' target=new><img src='http://www.gootar.com/chordgen/mcafeesecure2.png' border='0'></a>");
	



document.write("</td></tr></table>")


///////////////

/////////////////



document.write("</b><br>")
//document.write("</b><hr noshade size=1 color=#ddddee width=50%>")

if ((dlll.indexOf('tab')>0 || dlll.indexOf('cryptxxx')>0) && dlll.indexOf('httpz')==1){      // was('http')!=-1
	

google_ad_client = "pub-9314621369422855";
/* 728x90, created 12/8/09 */
google_ad_slot = "9121139249";
google_ad_width = 728;
google_ad_height = 90;	
	
document.write("\<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'\>");
document.write("\</script\>");

document.write("<hr noshade size=1 COLOR='#ddddee' width=50%>");

		}  else {

//document.write("<a href='http://www.gootar.com/chordgen'><img src=chordgen/untitled.gif width=728 height=90 border=0></a>");
//document.write("<hr noshade size=1 COLOR='#ddddee' width=50%>");
		}   //




if (window.location.href.indexOf("http://www.gootar.com/qotw") < 0 && dlll.indexOf('/it/') == -1 && 3==2){

document.write("<center><p class='qotw'>Question of the week: <br>If you are playing stuff like Hendrix or Van Halen...<b> <a href=http://www.gootar.com/qotw/eflat.html>Answer here</a></b></p></center>");
document.write("<hr noshade size=1 COLOR='#ddddee' width=50%>");

}//



now=new Date
//if((now.getDate()==27) && (now.getMonth()==9)){ 
//document.write("<center><a href=http://www.vanessa-mae.com>Happy Birthday Vanessa Mae</a></center>")
//document.write("<hr noshade size=1 COLOR='#ddddee' width=50%>")}//
//if((now.getDate()==1) && (now.getMonth()==3)){ 
//document.write("<center>Happy Birthday Sheila 10&#162; 10&#162;<hr noshade size=1 COLOR='#ddddee' width=50%></center>")}//

if((now.getDate()==17) && (now.getMonth()==1)){ 
document.write("<center>Happy Birthday Madelyn and Paris<hr noshade size=1 COLOR='#ddddee' width=50%></center>")}//
//if((now.getDate()==6) && (now.getMonth()==9)){ 
//document.write("<center>Happy Birthday Yada<hr noshade size=1 COLOR='#ddddee' width=50%></center>")}//

////////////////


if (dlll.indexOf('cryptic') < 0){

countdown('countdown');

}//

//countdown('countdown');


/////////////////



var bookmarkurl="http://www.gootar.com"
var bookmarktitle="Gootar"
function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)}

////////////



function carlos(){ 
win3=window.open("http://www.mindfulgroup.com","cls",'scrollbars=yes,resizable=yes,toolbar=yes,menubar=yes,status=yes,location=yes,left=5,top=5,height=500,width=900');
win3.blur();
window.focus();}





//7==24 && 
var agt=navigator.userAgent.toLowerCase();
//if (agt.indexOf("safari") != -1 && hitCt <= 2){alert("Some programs work best with anything other than Safari browser")}


//#############
		// document.write("You have visited this page " + hitCtxx + " times.")
		//if (lastVisit == "" || hitCt%7==0 )  {oppp() }
		
		//if ((hitCtxx%9==1 || hitCtxx%9==2) && dlll.indexOf('/it/') == -1)  { setTimeout("oppp()", 10000)   }
		
		//if (hitCt%7==4 )  {carlos() }
		//if (hitCt%4==1){window.location="http://chordgen.com"}  


//if ((hitCtxx%9==1 || hitCtxx%9==2) && dlll.indexOf('/it/') == -1)  { setTimeout("oppp()", 10000)   };

// last one below 
//if (document.referrer.indexOf("gootar.com") < 0 && document.referrer.indexOf("gootab.com") < 0 && dlll.indexOf("gravityboy") < 0 && dlll.indexOf('/it/') == -1){ setTimeout("oppp()", 60000)   };








 

