﻿

document.write("<style>");
document.write(".sixxx {height:24px;width:100%;}");
document.write("body {margin: 0px 0px 0px 0px ; padding:34px 10px 10px 10px;height:90%}");



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;}");

if (navigator.appName.indexOf("Microsoft") > -1) {
document.write("hr{height:1px;border:0;}");	}//

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


//document.write("<body topmargin='34'>");

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>.gooblue{ background-image:url('../gblue.gif');}</style>");

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

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

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


//if (navigator.appName.indexOf("Microsoft") > -1) { //alert();

//document.write("<style>body {margin: 0px 0px 0px 0px ;padding:34px 10px 10px 10px;;}</style>");

//document.write("<style>.bubbleg {position:absolute;width:102%;margin-bottom:12px;} .bgbg{position:absolute;} .bgbgxxx{}</style>");

//						}//



	var hitCtxx = '1'; //alert(document.cookie);
	
	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("header= " + hitCtxx);

	var agt=navigator.userAgent.toLowerCase();

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


var dlll = document.location.toString();

//alert(document.location);

var dttt = new Date();



//if (1==1){ && hitCtxx == 5


if (dttt.getHours()%4==0  && hitCtxx > 3 && dlll.indexOf('piano') < 0 && dlll.indexOf('drums') < 0 && dlll.indexOf('autoharp') < 0 && dlll.indexOf('trans.html') < 0){

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

	if (dlll.indexOf('guitar.to/ner/')!=-1 || dlll.indexOf('drum')!=-1){

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

if (dlll.indexOf('ukulele')!=-1 || dlll.indexOf('4')!=-1 || dlll.indexOf('ukescales')!=-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('bassscales')!=-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('piano')!=-1){

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

			} else if (dlll.indexOf('guitar.to/ner/')==-1 && dlll.indexOf('drum')==-1){

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

  			} 

			}//




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

//window.onbeforeunload = countdown.innerHTML = 'If you backed up you might have to reload this page';  ;  // alert("test")

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

    function countdown(element) {
        interval = setInterval(function() {
            var el = document.getElementById(element);
            if(seconds == -1) {
                if(minutes == 0) {
                    el.innerHTML = "If you back up you might have to reload the 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('bassscales')!=-1){
			window.location="http://www.gootar.com/chordgen/bass.html";

			} else if (dlll.indexOf('piano')!=-1){
			window.location="http://www.gootar.com/chordgen/index60.html";
			
			} 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';

	//if(minutes >= 5) {el.innerHTML = "If you back up you might have to reload the page";}//     

            seconds--;
        }, 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 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=0 leftmargin=0 rightmargin=05>" }	;
 if (wt > 850 && wt < 1050){asdf += "<body bgcolor=#ffffff topmargin=0 leftmargin=10 rightmargin=10>" };
             if (wt > 1049){asdf += "<body bgcolor=#ffffff topmargin=0 leftmargin=0 rightmargin=50>" };

//document.writeln(asdf);

//document.write("<body background='http://www.gootar.com/bgrd_tile.gif'>");
	
//document.write("<body topmargin='0'>");
	
	     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;
				}//
	

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


clrx = new Array('#cc99cc','#cc6699','#99aa99','#88bbbb','#99aabb','#99cc99','#5599ff','#aaaacc','#cc99aa','#cccccc','#aaaaaa');

rm = Math.floor ((Math.random() * clrx.length)); 
rm = '6';


  if (typeof mouser == 'undefined'){ var mouser = '1'};
//  if (typeof png60 == 'undefined'){ var png60 = 'http://www.gootar.com/guitar.gif';};
    if (typeof png60 == 'undefined'){ var png60 = 'http://www.gootar.com/gootar60.png';};


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

//bartwo='#99bbee';

/*
if (document.layers || navigator.appName=="Netscape"){var mouser='0';}

if (mouser =='1' || dlll.indexOf('piano')<=0){
	 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

*/

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

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='http://www.gootar.com/online.gif'};


if (dlll.indexOf('drumxxx')>0){
	

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=75%>");


		}//



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

document.write("<div style='float:left;width:30px;padding-top:0px;padding-left:4px;'><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='http://www.gootar.com/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=javascript:rs('http://www.gootar.com/lazyboy','exocomp',100,720,0); class='head2'>Exo-Comp</a>");	
document.write("<a href='http://classical.gootar.com'  class='head2'>Classical</a>");
document.write("<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('drums') < 0 && dlll.indexOf('autoharp') < 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' width='100%'>");
document.write("<tr><td align=left width=260px>")
document.write("<a href='http://www.gootar.com'><img src="+png60+" border=0 ></a>");

if (dlll.indexOf('piano')==-1 && dlll.indexOf('drums')==-1){
		document.write("</td><td align=left >")   }
	else{   document.write("</td><td align=left style='width:470' class='round fafafa'>")   }//


//document.write("</td><td align=left >")



if (dlll.indexOf('piano')==-1 && dlll.indexOf('drums')==-1){    // background='gripew.gif'

document.write("<table border=00 width=170 cellspacing=09 cellpadding=002 bgColor='#eeeeee'  background='../gripew.gif';><tr><td valign=top bgcolor='#e6e6e6' 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("</td><td align=center style='width:470px' class='round fafafa'>")

			}//




randomNum = Math.floor ((Math.random() * 5));
//randomNum = 724;

if (dlll.indexOf('guitarenk.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 (dlll.indexOf('guitar7')>0){randomNum = 13}


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='../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='http://www.gootar.com/tab2.gif' border='0'></a>")}

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

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

if(randomNum==13){ 
document.write("<a href='https://www.paypal.com/xclick/business=admin%40gootar.com&item_name=Generator+Seven+Pack&item_number=gen7pack&amount=19.95&no_shipping=1&return=http%3A//www.gootar.com/chordgen&cancel_return=http%3A//www.gootar.com/chordgen&no_note=1';><img  src='http://www.gootar.com/guitar7.gif' border='0'></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>");


if (dlll.indexOf('piano')!=-1 || dlll.indexOf('drums')!=-1){      // 
document.write("</td><td align=right width=190>")

document.write("<table border=00 width=170 cellspacing=09 cellpadding=002 bgColor='#eeeeee'  background='http://www.gootar.com/gripew.gif'; ><tr><td valign=top bgcolor='#e6e6e6' 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("<div style='width:140' class=greyadd>");
//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> --</div>");
	



	}//





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


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





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



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();
		}

	


	//if ( hitCtxx > 9911){  	
	
//document.write("</b><hr noshade size=1 color=#ddddee width=50%>")
document.write("</b><br>");
//document.write("<hr noshade style='width:100%; height:1px; background:#ddd'>")

//document.write("<br><div style='width:100%; height:2px; background:#ccc;border:1px solid;border-color:#fff;'></div>")


//document.write("<center><p class='qotw'>New! Now you can design chords and send them to your Android Phone and play it like a virtual gootar<b> <a href=http://www.gootar.com/chordgen/index.html#droid>Android Chords</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;</center>")}//

if((now.getDate()==17) && (now.getMonth()==1)){ 
document.write("<center>Happy Birthday Madelyn and Paris<br /><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('drums') < 0 && dlll.indexOf('autoharp') < 0){

countdown('countdown');

}//


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

////////////7==24 && 



//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)   };


//function waitit(){ setTimeout("itout()", 10000)      }//
//function itout() { rs('../reminder','110',250,300,0) }//


var timestamp = new Date();
if (timestamp.getHours()==100){

var _wau = _wau || []; _wau.push(["tab", "argbq429vb2n", "s96", "left-middle"]);
(function() { var s=document.createElement("script"); s.async=true; s.src="http://widgets.amung.us/tab.js";document.getElementsByTagName("head")[0].appendChild(s);})();
}//



			







	
	
