
url1='http://www.qksrv.net/click-1172380-8229808';

url2='http://www.lyricattack.com/ebay.html';

url3='http://www.lyricattack.com/rhapsody.html';

link1='http://www.qksrv.net/click-1117534-10301042';
link2='http://www.qksrv.net/click-1117534-10304323';

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}


//load pop-under only once per session
function xxyyzz()
{
//	if (get_cookie('url2')=='')
//	{
//		loadpopunder(url2);
//		document.cookie="url2==yes"
//	}
//	else if (get_cookie('url3')=='')
//	{
//		loadpopunder(url3);
//		document.cookie="url3=yes"
//	}	
}

function xy(artist)
{
//	ebayurl= 'http://www.lyricattack.com/ebay.php?artist=' + artist;
//	if (get_cookie('ebayurl')=='')
//	{
//		loadpopunder(ebayurl);
//		document.cookie="ebayurl==yes"
//	}
}


function nw(option)
{
var windowW=800;// wide
var windowH=500; // high

var windowX = (screen.width/2)-(windowW/2);
var windowY = (screen.height/2)-(windowH/2);

	if (option=='1')
	{
	win3 = window.open(link1,"new_win",
	"toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,height=400, width=800, left=210,top=160")
	}
	else
	{
	win3 = window.open(link2,"new_win",
	"toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,height=400, width=800, left=210,top=160")
	}

}

//pop under shows up
function loadpopunder(url){
var random=Math.floor(Math.random()*101);
win2 = window.open(url,random, 
"toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,height=400, width=650, left=210,top=160")
win2.blur()
window.focus()
}

