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.blur();
		}



var hitCtxx = '1';


function oppp(){ 

	if (document.referrer.indexOf("guitar.to") < 0){    //  alert(document.referrer)
	win2=window.open(popunder[0],"jen",ppp);
	//win2.blur();
			}//
		}//

	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("guitdate= " + hitCtxx);

	
if (typeof hitCtxx == 'undefined'){ var hitCtxx = '1'};




//#############
		// document.write("You have visited this page " + hitCt + " times.")
		//if (lastVisit == "" || hitCt%7==3 )  {oppp() }
		//if (hitCtxx%7==3 )  {oppp() }
		
		//if (hitCtxx%9==1)  { setTimeout("oppp()", 10000)   }

//#############
		


