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

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

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

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

link3='http://click.linksynergy.com/fs-bin/click?id=OXs4Pq*BkIA&offerid=78941.10001122&type=3&subid=0'; //iTunes U Click
link4='http://click.linksynergy.com/fs-bin/click?id=OXs4Pq*BkIA&offerid=78941.10001122&type=3&subid=0'; //iTunes U Click
link5='http://click.linksynergy.com/fs-bin/click?id=OXs4Pq*BkIA&offerid=78941.10001126&type=3&subid=0'; //iTunes Albums


link6='http://offers.thumbplay.com/offers/151/kramer?ptrx=toolbar-mp3&thpcampid=feed'; //Thumplay MP3
link7='http://offers.thumbplay.com/offers/151/st3real?ptrx=toolbar-new&thpcampid=feed'; //Thumplay MP3
link8='http://offers.thumbplay.com/offers/151/lefty?ptrx=toolbar-bonus&thpcampid=feed'; //Thumplay MP3



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 loadornot()
{
//	if (get_cookie('url2')=='')
//	{
//		loadpopunder(url2);
//		document.cookie="url2=yes"
//	}
//	else if (get_cookie('url3')=='')
//	{
//		loadpopunder(url3);
//		document.cookie="url3=yes"
//	}	
}

function loadf(artist)
{
//back-end

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

function loadI(artist)
{

//indexes

}

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 if (option=='2')
	{
	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")
	}
	else if (option=='3')
	{
	win3 = window.open(link3,"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 if (option=='4')
	{
	win3 = window.open(link4,"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 if (option=='5')
	{
	win3 = window.open(link5,"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 if (option=='6')
	{
	win3 = window.open(link6,"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 if (option=='7')
	{
	win3 = window.open(link7,"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 if (option=='8')
	{
	win3 = window.open(link8,"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()
}

function highlight(i)
{
    if (document.layers)
        window.document.layers['id' + i].bgColor = "#031765";     
    else if (document.all)
        window.document.all['id' + i].style.background = "#031765";
}
function unhighlight(i)
{
    if (document.layers)
        window.document.layers['id' + i].bgColor = "#A6B4E8";
    else if (document.all)
        window.document.all['id' + i].style.background = "#A6B4E8";
}

function addbookmark()
{ 
	title = "Lyrics On Demand - All the Lyrics for All your Favorite Artists!";  
	url = "http://www.lyricsondemand.com/";  
	var ua=navigator.userAgent.toLowerCase();
	var isKonq=(ua.indexOf('konqueror')!=-1);
	var isSafari=(ua.indexOf('webkit')!=-1);
	var isMac=(ua.indexOf('mac')!=-1);
	var modbutton=isMac?'Command':'Ctrl';
	
	if(window.home || isSafari) 
	{ // Firefox, Netscape, Safari, iCab
		alert('You Need to Press '+modbutton+' + D to Bookmark.');
	} 
	else if( window.external ) 
	{ // IE Favorite		
		window.external.AddFavorite( url, title); 
	}
	else if(window.opera) 
	{
		alert('You Need to Press '+modbutton+' + T to Bookmark.');
	} 
	else if(!window.print || isMac) 
	{ // IE5/Mac and Safari 1.0
		alert('You Need to Press '+modbutton+' + D to Bookmark.');
	} 
	else 
	{
		alert('You Need to Bookmark Lyrics On Demand' + '\n Manually Through Your Browser.');
	}

}