function PreListen(LMID) {
	window.open('Call?htmltemplate=./public/prelisten/player.htm&trackid='+LMID, 'listen', 'width=320,height=460,scrollbars=no,status=no,resizable=no,screenx=0,screeny=0,left=0,top=0');
}

function Drill(ColumnType, UniqueID, CallFrom)
{
  var ref = parent.ONMainFrame.location.href.toLowerCase() ;
  var CallFromPart = '' ;
  var indx = ref.indexOf('call') ;
  ref = parent.ONMainFrame.location.href.substring(0, indx) ;
  //alert(ref);
  var checksecure=ref.slice(0,5);
  //alert(checksecure);
  if(checksecure=="https")
  {
          ref=ref.replace(/https/,"http");
          //alert(ref);
  }
  //var checkframes=parent.frames.length;
  //if(checkframes != 6)
  //alert(checkframes);
  if (typeof(CallFrom) != 'undefined')
    CallFromPart = '&callfrom=' + CallFrom ;

  if (ColumnType == 'ARTIST')
    parent.ONMainFrame.location.href = ref + 'Call?htmltemplate=./artist/viewartist.htm&artistid=' + UniqueID + CallFromPart +'&startline=1&endline=20' ;
  else if (ColumnType == 'COMPILATION')
    parent.ONMainFrame.location.href = ref + 'Call?htmltemplate=./album/viewalbum.htm&lmtype=COMPILATION&albumid=' + UniqueID + CallFromPart ;
  else if (ColumnType == 'ALBUM') // same as COMPILATION!
    parent.ONMainFrame.location.href = ref + 'Call?htmltemplate=./album/viewalbum.htm&lmtype=ALBUM&albumid=' + UniqueID + CallFromPart ;
  else if (ColumnType == 'MEDIAPACK') // same as COMPILATION!
    parent.ONMainFrame.location.href = ref + 'Call?htmltemplate=./album/viewalbum.htm&lmtype=MEDIAPACK&albumid=' + UniqueID + CallFromPart ;
  else if (ColumnType == 'TRACK')
    parent.ONMainFrame.location.href = ref + 'Call?htmltemplate=./track/viewtrack.htm&trackid=' + UniqueID + CallFromPart ;
  else if (ColumnType == 'VIDEO')
    parent.ONMainFrame.location.href = ref + 'Call?htmltemplate=./video/viewvideo.htm&lmid=' + UniqueID + CallFromPart ;
  else if (ColumnType == 'LABEL')
    parent.ONMainFrame.location.href = ref + 'Call?htmltemplate=./label/viewlabel.htm&labelid=' + UniqueID + CallFromPart ;
  else if (ColumnType == 'FANCLUB')
    parent.ONMainFrame.location.href = ref + 'Call?htmltemplate=./artist/viewfanclub.htm&fanclubid=' + UniqueID ;
}

function rowcolor(x, fld)
{
  if (x==1)
    fld.style.backgroundColor = "#C0C9DA" ;
  else
    fld.style.backgroundColor = "#FFFFFF" ;
}

function rowcolorLeft(x, fld)
{
  if (x==1)
    fld.style.backgroundColor = "#C0C9DA" ;
  else
    fld.style.backgroundColor = "#F1F3F7" ;
}

function testb(x, fld)
{
  if (x==1)
    fld.color = "#AFAFAF" ;
  else
    fld.color = "#AFAFAF" ;
}

function testc(x, fld)
{
  if (x==1)
    fld.color = "#AFAFAF" ;
  else
    fld.color = "#AFAFAF" ;

}

function changeLanguage(lg)
{
var ref = self.location.href.toLowerCase() ;
var indx = ref.indexOf('call') ;
ref = self.location.href.substring(0, indx) ;

if(lg=='EN')
parent.ONMainFrame.location.href=ref+"Call?htmltemplate=./menu/setlanguage.htm&language=EN";

if(lg=='DE')
parent.ONMainFrame.location.href=ref+"Call?htmltemplate=./menu/setlanguage.htm&language=DE";
}

function posOn(obj)
{
	//alert();
	obj.style.width='68px';
	obj.style.height='68px';
	//obj.style.left='0px';
	//obj.style.top='0px';
}

function posOff(obj)
{
	//alert('Off');
	obj.style.width='64px';
	obj.style.height='64px';
	//obj.style.left='1px';
	//obj.style.top='1px';
	//obj.style.height=64;
}

function posOn2(obj)
{
	//alert();
	obj.style.width='132px';
	obj.style.height='132px';
	//obj.style.left='0px';
	//obj.style.top='0px';
}

function posOff2(obj)
{
	//alert('Off');
	obj.style.width='128px';
	obj.style.height='128px';
	//obj.style.left='1px';
	//obj.style.top='1px';
	//obj.style.height=64;
}

function change_red(image_act){
 var domainpath = 'http://www.medionmusic.com';
 var serverpath = '/hostshops/247/type_c/sites/medioncom2453272220056/public/';
 var path = domainpath + serverpath;
 //alert(image_act.src + ' ==== ' + domainpath + ' + ' + serverpath);
 if(image_act.src == domainpath + '/hostshops/247/type_c/sites/medioncom2453272220056/public/img/cart_small.gif')
 {var imageon = new Image();imageon.src= path + 'img/cart_small_over.gif';}
 else if(image_act.src == domainpath + '/hostshops/247/type_c/sites/medioncom2453272220056/public/img/list_small.gif')
 {var imageon = new Image();imageon.src= path + 'img/list_small_over.gif';}
 else if(image_act.src == domainpath + '/hostshops/247/type_c/sites/medioncom2453272220056/public/img/info_small.gif')
 {var imageon = new Image();imageon.src= path + 'img/info_small_over.gif';}
 else if(image_act.src == domainpath + '/hostshops/247/type_c/sites/medioncom2453272220056/public/img/DE/medion_icon.gif')
 {var imageon = new Image();imageon.src= path + 'img/DE/medion_icon_over.gif';}
 else if(image_act.src == domainpath + '/hostshops/247/type_c/sites/medioncom2453272220056/public/speaker_small.gif')
 {var imageon = new Image();imageon.src= path + 'img/speaker_small_over.gif';}
 else{var imageon = new Image();imageon.src= path + 'img/speaker_small_over.gif';}
 image_act.src = imageon.src;
 //alert(imageon.src);
}

function change_normal(image_act){
//alert(image_act.src + '//////');
 var domainpath = 'http://www.medionmusic.com';
 var serverpath = '/hostshops/247/type_c/sites/medioncom2453272220056/public/';
 var path = domainpath + serverpath;
 if(image_act.src == domainpath + '/hostshops/247/type_c/sites/medioncom2453272220056/public/img/cart_small_over.gif')
 {var imageoff = new Image();imageoff.src= path + 'img/cart_small.gif';}
 else if(image_act.src == domainpath + '/hostshops/247/type_c/sites/medioncom2453272220056/public/img/list_small_over.gif')
 {var imageoff = new Image();imageoff.src= path + 'img/list_small.gif';}
 else if(image_act.src == domainpath + '/hostshops/247/type_c/sites/medioncom2453272220056/public/img/info_small_over.gif')
 {var imageoff = new Image();imageoff.src= path + 'img/info_small.gif';}
 else if(image_act.src == domainpath + '/hostshops/247/type_c/sites/medioncom2453272220056/public/img/DE/medion_icon_over.gif')
 {var imageoff = new Image();imageoff.src= path + 'img/DE/medion_icon.gif';}
 else if (image_act.src == domainpath + '/hostshops/247/type_c/sites/medioncom2453272220056/public/img/speaker_small_over.gif')
 {var imageoff = new Image();imageoff.src= path + 'img/speaker_small.gif';}
 else{var imageon = new Image();imageon.src= path + 'img/speaker_small.gif';}
 image_act.src = imageoff.src;
  //alert(image_act.src);
}