///////////////////////////////////////////////////////////
// Author   : Viget Labs - TL
// Created  : 
// Revised  :
// Notes    : key javascript files
///////////////////////////////////////////////////////////

function popupPrivacy()
{
  window.open("legal-privacy.php",
              "windowLegal",
              "width=500,height=400,status=yes,menubar=no,toolbar=no,scrollbars=yes,resizable=yes");
}

function popupFeedback()
{
  window.open("http://www.usersknow.com/active/TakeSurvey.asp?SurveyID=mML4m3LL8p8KG",
              "windowFeedback",
              "width=680,height=500,status=yes,menubar=no,toolbar=no,scrollbars=yes,resizable=yes");
}

function popupMailer()
{
  window.open("http://www.supertell.com/supertell.php?sid=833204111A3B6C1325D825928F2D1C1E",
              "windowECard",
              "width=680,height=450,status=yes,menubar=no,toolbar=no,scrollbars=yes,resizable=yes");
}

function popupJoin()
{
  window.open("http://www.rickjames.com/elist.php",
              "windowJoin",
              "width=550,height=450,status=yes,menubar=no,toolbar=no,scrollbars=yes,resizable=yes");
}

function popupForum()
{
  window.open("http://www.rickjames.com/forum/index.php",
              "windowForum",
              "width=770,height=500,status=yes,menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes");
}


function popupStore()
{
  window.open("http://rickjames.shop.musictoday.com",
              "windowStore",
              "width=770,height=500,status=yes,menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes");
}


function popupMySpace()
{
  window.open("http://www.myspace.com/rickjames",
              "windowMySpace",
              "width=770,height=500,status=yes,menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes");
}


function popupBuy(album)
{
	albumpath="http://www.amazon.com/exec/obidos/redirect?tag=kingoffunk-20&path=ASIN/";

	var strASIN;
	switch (album)
{
	case "deeperStill":
		strASIN ="B000OMCHXM"
	break	
	case "anthology":
		strASIN ="B000068FTL"
	break
	case "urbanrap":
		strASIN ="B000001DSV"
	break
	case "bustin2":
		strASIN ="B000001EIY"
	break
	case "wonderful":
		strASIN ="B000008GYU"
	break
	case "reflections":
		strASIN ="B000008GYR"
	break
	case "cold":
		strASIN ="B000008GYQ"
	break
	case "street":
		strASIN ="B000001AHX"
	break
	case "bustin1":
		strASIN ="B000001AM7"
	break
	case "come":
		strASIN ="B000001AFF"
	break
}
	albumpath = albumpath + strASIN;

  window.open(albumpath,
              "windowShop",
              "width=700,height=600,status=yes,menubar=yes,location=yes, toolbar=yes,scrollbars=yes,resizable=yes");
}

function popupPhoto(strImage, iWidth, iHeight, strCaption)
{
  wWidth = iWidth + 60;

  if (iHeight > 500)
  {
  	strScrollBars = "yes"
	strScrollable = "yes"
  }
  else
  {
  	strScrollBars = "no"
	strScrollable = "no"
  }
  strUrl  = "popup-photo.php?image=" + strImage + "&width=" + wWidth + "&height=" + iHeight + "&caption=" + strCaption;
  oWindow = window.open(strUrl,'winPhoto','width=575,height=600,status=no,menubar=no,toolbar=no,scrollable=' + strScrollable + ',scrollbars=' + strScrollBars + ',resizable=yes');
  oWindow.resizeTo(575,590);
  oWindow.focus();
}

function readNews()
{
  window.open("news.php",
              "windowNews",
              "width=500,height=500,status=yes,menubar=no,toolbar=no,scrollbars=yes,resizable=yes");
}