// JavaScript Document



/******************** loading brightcove video *****************************************************/
var FlashObject = "<object width=\"WWW\" height=\"HHH\"><param name=\"movie\" value=\"AAA\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"BBB\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"425\" height=\"344\"></embed></object>"
var VideoObject =  "<object width=\"WWW\" height=\"HHH\" id=\"flashObj\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,47,0\">"
var VideoParam =   "<param name=\"flashVars\" value=\"AAA\" /><param name=\"movie\" value=\"http://c.brightcove.com/services/viewer/federated_f9/33238259001?isVid=1&publisherID=1079000770\" /><param name=\"bgcolor\" value=\"#FFFFFF\" /><param name=\"base\" value=\"http://admin.brightcove.com\" /><param name=\"seamlesstabbing\" value=\"false\" /><param name=\"allowFullScreen\" value=\"true\" /><param name=\"swLiveConnect\" value=\"true\" /><param name=\"allowScriptAccess\" value=\"always\" />"
var VideoEmbed =   "<embed width=\"WWW\" height=\"HHH\" flashvars=\"AAA\" bgcolor=\"#FFFFFF\" src=\"http://c.brightcove.com/services/viewer/federated_f9/33238259001?isVid=1&publisherID=1079000770\"  base=\"http://admin.brightcove.com\" name=\"flashObj\" seamlesstabbing=\"false\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" swliveconnect=\"true\" allowscriptaccess=\"always\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></embed></object>"

function LoadMusicVideo(FlashUrl, width, height,videoLabel )
{
  
	var FlashMov = FlashUrl;
	var FlashMovToPlayObject = VideoObject.replace("WWW", width).replace("HHH", height);
	var FlashMovToPlayParam = VideoParam.replace("AAA", FlashUrl);
	var FlashMovToPlayEmbed = VideoEmbed.replace("AAA", FlashUrl).replace("WWW", width).replace("HHH", height);
	//alert(FlashMovToPlayObject + '\n' + FlashMovToPlayParam + '\n' + FlashMovToPlayEmbed );
	document.getElementById('dv').innerHTML = FlashMovToPlayObject + FlashMovToPlayParam + FlashMovToPlayEmbed ;
	document.getElementById('dv').style.display = "block";
	//document.getElementById('dvFull').style.display = "none";
	if (document.getElementById('dvLabel'))
	    document.getElementById('dvLabel').innerHTML = videoLabel;
}
/********************** loading vevo video ***************************************************/
var VevoObject =  "<object width=\"WWW\" height=\"HHH\" >\n";
var VevoParam =   "<param name=\"movie\" value=\"http://www.vevo.com/VideoPlayer/Embedded?videoId=USUVAAA&playlist=false&autoplay=0&playerId=62FF0A5C-0D9E-4AC1-AF04-1D9E97EE3961&playerType=embedded\" ></param>\n";
    VevoParam +=  "<param name=\"allowFullScreen\" value=\"true\" ></param>\n<param name=\"allowScriptAccess\" value=\"always\" ></param>\n";
var VevoEmbed =   "<embed width=\"WWW\" height=\"HHH\"  src=\"http://www.vevo.com/VideoPlayer/Embedded?videoId=USUVAAA&playlist=false&autoplay=0&playerId=62FF0A5C-0D9E-4AC1-AF04-1D9E97EE3961&playerType=embedded\"  type=\"application/x-shockwave-flash\" allowfullscreen=\"true\"  allowscriptaccess=\"always\" </embed></object>\n";

function LoadMusicVevo(FlashUrl, width, height,videoLabel ){
	var vevoMov = FlashUrl;
	var vevoMovToPlayObject = VevoObject.replace("WWW", width).replace("HHH", height);
	var vevoMovToPlayParam = VevoParam.replace("AAA", FlashUrl);
	var vevoMovToPlayEmbed = VevoEmbed.replace("AAA", FlashUrl).replace("WWW", width).replace("HHH", height);
	//alert(vevoMovToPlayObject + '\n' + vevoMovToPlayParam + '\n' + vevoMovToPlayEmbed );
	document.getElementById('dvVevo').innerHTML = vevoMovToPlayObject + vevoMovToPlayParam + vevoMovToPlayEmbed ;
	document.getElementById('dvVevo').style.display = "block";
	document.getElementById('dvVevo').className = "";
	if (document.getElementById('dvLabelVevo'))
	    document.getElementById('dvLabelVevo').innerHTML = videoLabel;
}

/*********************** loading vevo video **************************************************/
var youtubeObject =  "<object width=\"WWW\" height=\"HHH\" >\n";
var youtubeParam =   "<param name=\"movie\" value=\"http://www.youtube.com/v/AAA&hl=en&fs=1&amp;rel=0\" ></param>\n";
    youtubeParam +=  "<param name=\"allowFullScreen\" value=\"true\" ></param>\n<param name=\"allowScriptAccess\" value=\"always\" ></param>\n";
var youtubeEmbed =   "<embed width=\"WWW\" height=\"HHH\"  src=\"http://www.youtube.com/v/AAA&hl=en&fs=1&amp;rel=0\"  type=\"application/x-shockwave-flash\" allowfullscreen=\"true\"  allowscriptaccess=\"always\" </embed></object>\n";

function LoadMusicyoutube(FlashUrl, width, height,videoLabel ){
	var youtubeMov = FlashUrl;
	var youtubeMovToPlayObject = youtubeObject.replace("WWW", width).replace("HHH", height);
	var youtubeMovToPlayParam = youtubeParam.replace("AAA", FlashUrl);
	var youtubeMovToPlayEmbed = youtubeEmbed.replace("AAA", FlashUrl).replace("WWW", width).replace("HHH", height);
	//alert(youtubeMovToPlayObject + '\n' + youtubeMovToPlayParam + '\n' + youtubeMovToPlayEmbed );
	document.getElementById('dvVevo').innerHTML = youtubeMovToPlayObject + youtubeMovToPlayParam + youtubeMovToPlayEmbed ;
	document.getElementById('dvVevo').style.display = "block";
	document.getElementById('dvVevo').className = "";
	if (document.getElementById('dvLabelVevo'))
	    document.getElementById('dvLabelVevo').innerHTML = videoLabel;
}




var dvHeight;
var tvembed =  new Array();

dvHeight = 360;
tvembed[0] = "<object width='512' height='322'><param name='movie' value='http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46' /><param name='allowFullScreen' value='true' /><param name='AllowScriptAccess' VALUE='always' /><param name='bgcolor' value='#000000' /><param name='flashVars' value='id=5863012&vid=1766617&lang=en-us&intl=us&thumbUrl=http%3A//l.yimg.com/a/p/i/bcst/videosearch/1122/54238004.jpeg&embed=1' /><embed src='http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46' type='application/x-shockwave-flash' width='512' height='322' allowFullScreen='true' AllowScriptAccess='always' bgcolor='#000000' flashVars='id=5863012&vid=1766617&lang=en-us&intl=us&thumbUrl=http%3A//l.yimg.com/a/p/i/bcst/videosearch/1122/54238004.jpeg&embed=1' ></embed></object>";
tvembed[1] = "<embed src='http://blip.tv/play/gqt6pZk5Ag%2Em4v' type='application/x-shockwave-flash' width='480' height='298' allowscriptaccess='always' allowfullscreen='true'></embed>";
tvembed[2] = "<object width='480' height='295'><param name='movie' value='http://www.youtube.com/v/s6Oy41IyzDg&hl=en&fs=1&'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/s6Oy41IyzDg&hl=en&fs=1&' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='295'></embed></object>";
tvembed[3] = "<object width='425' height='344'><param name='movie' value='http://www.youtube.com/v/4OhrQMnOYOQ&hl=en&fs=1&'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/4OhrQMnOYOQ&hl=en&fs=1&' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='425' height='344'></embed></object>";
tvembed[4] = "<object width='480' height='295'><param name='movie' value='http://www.youtube.com/v/swY_L-vAgNk&hl=en&fs=1&'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/swY_L-vAgNk&hl=en&fs=1&' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='295'></embed></object>";
tvembed[5] = "<embed src='http://media.mtvnservices.com/mgid:uma:video:mtv.com:266199' width='512' height='319' type='application/x-shockwave-flash' flashVars='configParams=vid%3D266199%26uri%3Dmgid%3Auma%3Avideo%3Amtv.com%3A266199%26startUri={startUri}' allowFullScreen='true' allowScriptAccess='always' base='.'></embed><div style='margin:0;text-align:center;width:500px;font-family:Arial,sans-serif;font-size:12px;'><a href='http://www.mtv.com/ontv/' style='color:#439CD8;' target='_blank'>MTV Shows</a></div>";
tvembed[6] = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0' width='425' height='319' id='qikPlayer' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='allowFullScreen' value='true' /><param name='movie' value='http://qik.com/swfs/qikPlayer4.swf' /><param name='quality' value='high' /><param name='bgcolor' value='#333333' /><param name='FlashVars' value='rssURL=http://qik.com/video/7917ab0e0d874544873f8261a2f99498.rss&autoPlay=false' /><embed src='http://qik.com/swfs/qikPlayer4.swf' quality='high' bgcolor='#333333' width='425' height='319' name='qikPlayer' align='middle' allowScriptAccess='sameDomain' allowFullScreen='true' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' FlashVars='rssURL=http://qik.com/video/7917ab0e0d874544873f8261a2f99498.rss&autoPlay=false'></embed></object>";
tvembed[7] = "<object width='480' height='295'><param name='movie' value='http://www.youtube.com/v/sI5t0Xv5iJE&hl=en_US&fs=1&rel=0&autoplay=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/sI5t0Xv5iJE&hl=en_US&fs=1&rel=0&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='295' ></embed></object>";
tvembed[8] = "<object width='480' height='295'><param name='movie' value='http://www.youtube.com/v/9bNBba4hIy4&hl=en_US&fs=1&rel=0&autoplay=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/9bNBba4hIy4&hl=en_US&fs=1&rel=0&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='295'></embed></object>";
tvembed[9] = "<object width='480' height='295'><param name='movie' value='http://www.youtube.com/v/LGHDhJpvCc0&hl=en_US&fs=1&rel=0&autoplay=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/LGHDhJpvCc0&hl=en_US&fs=1&rel=0&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='295'></embed></object>";
tvembed[10] = "<object width='480' height='295'><param name='movie' value='http://www.youtube.com/v/vQsdr6DRPAY&hl=en_US&fs=1&rel=0&autoplay=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/vQsdr6DRPAY&hl=en_US&fs=1&rel=0&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='295'></embed></object>";
tvembed[11] = "<object width='480' height='295'><param name='movie' value='http://www.youtube.com/v/CNN5H35uUhE&hl=en_US&fs=1&rel=0&autoplay=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/CNN5H35uUhE&hl=en_US&fs=1&rel=0&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='295'></embed></object>";
tvembed[12] = "<object width='560' height='340'><param name='movie' value='http://www.youtube.com/v/W4GMYQx58OE&hl=en_US&fs=1&rel=0&autoplay=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/W4GMYQx58OE&hl=en_US&fs=1&rel=0&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='560' height='340'></embed></object>";

tvembed[13] = "<object width='480' height='295'><param name='movie' value='http://www.youtube.com/v/AknDcqbrx3A&hl=en_US&fs=1&rel=0&autoplay=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/AknDcqbrx3A&hl=en_US&fs=1&rel=0&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='295'></embed></object>";
tvembed[14] = "<object width='480' height='295'><param name='movie' value='http://www.youtube.com/v/mT0ajKsbutU&hl=en_US&fs=1&rel=0&autoplay=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/mT0ajKsbutU&hl=en_US&fs=1&rel=0&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='295'></embed></object>";
tvembed[15] = "<object width='480' height='295'><param name='movie' value='http://www.youtube.com/v/wuDkszkosM0&hl=en_US&fs=1&rel=0&autoplay=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/wuDkszkosM0&hl=en_US&fs=1&rel=0&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='480' height='295'></embed></object>";

function LoadTvVideo(id, embed, width, height )
{
  var padd;
  padd =  parseInt(((dvHeight - height)/2));
	document.getElementById('dv' + id).innerHTML = tvembed[embed] ;
	document.getElementById('dv' + id).style.height = height + "px";
	document.getElementById('dv' + id).style.width = width + "px";
	document.getElementById('dvContainer' + id).style.paddingTop = padd + "px";
	document.getElementById('dvContainer' + id).style.height = (dvHeight - padd) + "px";
}

function changeClass(obj,state){
	var thumb = document.getElementById(obj.id);
	if(state)
		thumb.className  = "thumbover";
	else
		thumb.className  = "thumb";
}

function loadProductPicture(imgsrc){
  var fulldiv = document.getElementById("dvFull");
  var fullimg;
  for (var i = 0;i<fulldiv.childNodes.length;i++){
    if (fulldiv.childNodes[i].nodeName == "IMG"){
      fullimg = fulldiv.childNodes[i].src = imgsrc;
      break;
    }
  }
}

var pic = new Array(36);
for (var i=0 ; i < 36 ; i++){
    pic[i] = new Array(2);
}
pic[0][0] = "/images/artist/lady-gaga.jpg";
pic[0][1] = "Lady Gaga";
pic[1][0] = "/images/artist/gwen-Stefani.jpg";
pic[1][1] = "Gwen Stefani";
pic[2][0] = "/images/artist/pharell-william.jpg";
pic[2][1] = "Pharrell Williams";
pic[3][0] = "/images/artist/paris-hilton.jpg";
pic[3][1] = "Paris Hilton";
pic[4][0] = "/images/artist/kelly-clarkson.jpg";
pic[4][1] = "Kelly Clarkson";
pic[5][0] = "/images/artist/william.jpg";
pic[5][1] = "Will I. Am";
pic[6][0] = "/images/artist/kanye-west.jpg";
pic[6][1] = "Kanye West";
pic[7][0] = "/images/artist/thomas-gibson.jpg";
pic[7][1] = "Thomas Gibson";
pic[8][0] = "/images/artist/eminem.jpg";
pic[8][1] = "Eminem";
pic[9][0] = "/images/artist/soulja-boy.jpg";
pic[9][1] = "Soulja Boy";
pic[10][0] = "/images/artist/keri-hilson.jpg";
pic[10][1] = "Keri Hilson";
pic[11][0] = "/images/artist/levar-burton.jpg";
pic[11][1] = "Levar Burton";
pic[12][0] = "/images/artist/florida.jpg";
pic[12][1] = "FloRida";
pic[13][0] = "/images/artist/david-banner.jpg";
pic[13][1] = "David Banner";
pic[14][0] = "/images/artist/khaled.jpg";
pic[14][1] = "DJ Khaled";
pic[15][0] = "/images/artist/tiger_jk.jpg";
pic[15][1] = "Tiger JK, THE KING OF HIP HOP, KOREA";
pic[16][0] = "/images/artist/Vito_snow.jpg";
pic[16][1] = "Snowboarder Vito runing ear buds. On podium grand prix!!";
pic[17][0] = "/images/artist/Diddybeats.jpg";
pic[17][1] = "Diddy with Diddybeats";
pic[18][0] = "/images/artist/Pharrell.jpg";
pic[18][1] = "Pharrell with Diddybeats";
pic[19][0] = "/images/artist/ellen.jpg";
pic[19][1] = "Solo HD (PRODUCT)RED Special Edition on The Ellen Show";
pic[20][0] = "/images/artist/kobe-rajon.jpg";
pic[20][1] = "Kobe Bryant #24 of the Los Angeles Lakers greets Rajon Rondo #9 of the Boston Celtics after practice in preparation for Game One of the NBA Finals at Staples Center on June 2, 2010 in Los Angeles, California";

pic[21][0] = "/images/artist/worldcup1.jpg";
pic[21][1] = "Germany's defender Jerome Boateng and team arrive at South Africa's South Tyrol Training Camp. (Getty Images)";
pic[22][0] = "/images/artist/worldcup2.jpg";
pic[22][1] = "USA national soccer team players' arrival in South Africa. (Getty Images)";
pic[23][0] = "/images/artist/worldcup3.jpg";
pic[23][1] = "French forward Thierry Henry arrives in South Africa. (Getty Images)";
pic[24][0] = "/images/artist/worldcup4.jpg";
pic[24][1] = "Henry at team practice in South Africa. (Getty Images)";
pic[25][0] = "/images/artist/worldcup5.jpg";
pic[25][1] = "Germany's defender Jerome Boateng. (Getty Images)";
pic[26][0] = "/images/artist/worldcup6.jpg";
pic[26][1] = "Germany's striker Lukas Podolski. (Getty Images)";
pic[27][0] = "/images/artist/worldcup7.jpg";
pic[27][1] = "Germany's midfielder Mesut Oezil arrives in South Africa. (Getty Images)";
pic[28][0] = "/images/artist/worldcup8.jpg";
pic[28][1] = "Mexico's national football team player Carlos Vela arrives at the O.R Tambo airport in Johannesburg.  (Getty Images)";
pic[29][0] = "/images/artist/worldcup9.jpg";
pic[29][1] = "Mexico's national football team players Francisco Rodriguez (left) and Hector Moreno (right) arrive at the O.R Tambo airport in Johannesburg.  (Getty Images)";

pic[30][0] = "/images/artist/knaan.jpg";
pic[30][1] = "K'Naan";

pic[31][0] = "/images/artist/worldcup10.jpg";
pic[31][1] = "Members of Switzerland's football team";
pic[32][0] = "/images/artist/worldcup11.jpg";
pic[32][1] = "Switzerland's midfielder Valon Behrami";
pic[33][0] = "/images/artist/Lance_Beats.jpg";
pic[33][1] = "@lancearmstrong : We're trying out some new race radio earpieces today... Man, I dunno.";
pic[34][0] = "/images/artist/tim-howard.jpg";
pic[34][1] = "US soccer team goalkeeper Tim Howard";

pic[35][0] = "/images/artist/diddy.jpg";
pic[35][1] = "Diddy with Diddybeats";

function changePicsTab(group, tab, totTab){
    for (var i =1 ;i <= totTab; i++  ){
        if(document.getElementById("displayPics" + group + i))document.getElementById("displayPics" + group + i).style.display = "none";
        if(document.getElementById("buttonPics" + group + i))document.getElementById("buttonPics" + group + i).className = "";    
        if(document.getElementById("buttonPicsL" + group + i)) document.getElementById("buttonPicsL" + group + i).src = "/images/background/button-left-off.gif";    
        if(document.getElementById("buttonPicsR" + group + i))document.getElementById("buttonPicsR" + group + i).src = "/images/background/button-right-off.gif";    
        if(document.getElementById("buttonPicsBG" + group + i))document.getElementById("buttonPicsBG" + group + i).style.backgroundColor = "#1a1a1a";
        
            
    }
    if(document.getElementById("displayPics" + group + tab))document.getElementById("displayPics" + group + tab).style.display = "block";
    if(document.getElementById("buttonPics" + group + tab))document.getElementById("buttonPics" + group + tab).className = "red";
    if(document.getElementById("buttonPicsL" + group + tab)) document.getElementById("buttonPicsL" + group + tab).src = "/images/background/button-left.gif";
    if(document.getElementById("buttonPicsR" + group + tab))document.getElementById("buttonPicsR" + group + tab).src = "/images/background/button-right.gif";
    if(document.getElementById("buttonPicsBG" + group + tab))document.getElementById("buttonPicsBG" + group + tab).style.backgroundColor = "#222222";
    
}

function LoadPictureFromArray(id,ind){
    var fullimg = document.getElementById("img" + id + "Full");
    var fulldivlabel = document.getElementById("Label" + id + "Full");
    fullimg.src = pic[ind][0] ;
    fullimg.alt = pic[ind][1] ;
    fulldivlabel.innerHTML = pic[ind][1] ;
}

function LoadPicture(img,thumb){
  var fulldiv = document.getElementById("dvFull");
  var fullimg = document.getElementById("imgFull");
  var thumbimg = document.getElementById(thumb);
  fullimg.src = "/images/artist/" +img + ".jpg";
  thumbimg.className  = "thumbover";
}

function LoadPictureLink( img,width,height,obj ){
  var artistLink = document.getElementById(obj.id);
  var fulldiv = document.getElementById("dvFull");
  var fulldivlabel = document.getElementById("dvFullLabel");
  var fullimg = document.getElementById("imgFull");
  /*
  for (var i = 0;i<fulldiv.childNodes.length;i++){
    if (fulldiv.childNodes[i].nodeName == "IMG"){
      fullimg = fulldiv.childNodes[i];
      break;
    }
  } 
  */ 
  fullimg.src = "/images/artist/" +img + ".jpg";
  document.getElementById(fullimg.id).style.width = width + "px";
  document.getElementById(fullimg.id).style.height = height + "px";
  fullimg.alt = artistLink.innerHTML;
  fulldivlabel.innerHTML = artistLink.innerHTML;
  
  
  
  if(fulldivlabel.innerHTML == "Tiger JK")
    fulldivlabel.innerHTML = "Tiger JK, THE KING OF HIP HOP, KOREA";
  if(fulldivlabel.innerHTML == "Vito")
    fulldivlabel.innerHTML = "Snowboarder Vito runing ear buds. On podium grand prix!!";   
  if(fulldivlabel.innerHTML == "Diddy")
    fulldivlabel.innerHTML = "Diddy with Diddybeats";   
  if(fulldivlabel.innerHTML == "Pharrell")
    fulldivlabel.innerHTML = "Pharrell with Diddybeats";
  if(fulldivlabel.innerHTML == "Ellen Show")
    fulldivlabel.innerHTML = "Solo HD (PRODUCT)RED Special Edition on The Ellen Show";         
  if(fulldivlabel.innerHTML == "Kobe Bryant &amp; Rajon Rondo")
    fulldivlabel.innerHTML = "Kobe Bryant #24 of the Los Angeles Lakers greets Rajon Rondo #9 of the Boston Celtics after practice in preparation for Game One of the NBA Finals at Staples Center on June 2, 2010 in Los Angeles, California";
}


function swapImage(obj,state){
	if(state)
		obj.src = obj.src.replace("_off","_on");	
	else	
		obj.src = obj.src.replace("_on","_off");	
}

function swapAPP(state){
	var appEuId= document.getElementById("appleEU");
	var appUsId=document.getElementById("appleUS");
	if (state){
	appEuId.src = appEuId.src.replace("_off","_on");
	appUsId.src = appUsId.src.replace("_off","_on");	
	}else{
	appEuId.src = appEuId.src.replace("_on","_off");
	appUsId.src = appUsId.src.replace("_on","_off");	
	
	}
}

function MM_effectGrowShrink(targetElement, duration, from, to, toggle, referHeight, growFromCenter)
{
	Spry.Effect.DoGrow(targetElement, {duration: duration, from: from, to: to, toggle: toggle, referHeight: referHeight, growCenter: growFromCenter});
}

function change(obj){

	var imgSRC = document.getElementById(obj.id).src;
	if (imgSRC.indexOf("full") < 0 )
		document.getElementById(obj.id).src = imgSRC.replace("thumb","full");
	else
		document.getElementById(obj.id).src = imgSRC.replace("full","thumb");
}
function playVideo(){
  var video = ""
	var innerHtml ;
  innerHtml = "<object width=\"425\" height=\"385\" data=\"http://play.dipdive.com/i/28427\"><param name=\"movie\" value=\"http://play.dipdive.com/i/28427\"></param><param name=\"allowfullscreen\" value=\"true\"></param><embed src=\"http://play.dipdive.com/i/28427\" type=\"application/x-shockwave-flash\" allowFullScreen=\"true\" width=\"425\" height=\"385\" /></object>";
  innerHtml = "<param name=\"movie\" value=\"http://play.dipdive.com/i/28427\"></param><param name=\"allowfullscreen\" value=\"true\"></param><embed src=\"http://play.dipdive.com/i/28427\" type=\"application/x-shockwave-flash\" allowFullScreen=\"true\" width=\"425\" height=\"385\" />";
//	innerHtml = "<span style='color:#ffffff;'>dslkfjsdlkfjslkjdf</span>";
	document.getElementById("dv").innerHTML = innerHtml;	
	//alert(document.getElementById("dv").innerHTML);
}


function showCountryList(view){
    var divList = document.getElementById("dvCountry");
    if (view == true){
	    divList.style.display = "block";
	    showCountry(10);
    }
    else{
        divList.style.display = "none";
    }
}

var timeout;

function appear(view,arrItem){
    var divList = document.getElementById("divList");
    if (view == true){
    	divList.style.display = "block";
    	showCountry(10,arrItem);
    }else
	    divList.style.display = "none";
	document.getElementById("divListInner").innerHTML ="";
	document.getElementById("divLogo").innerHTML = "";
}

function showCountry(iter,arrItem){
	
	if (iter == 10){
       // document.getElementById("dvCountryInner").innerHTML = countryList;
	}
	iter--;
	if (iter >= 3){
		timeout = setTimeout("showCountry(" + iter + ")", 20);	
		//document.getElementById("dvCountryInner").innerHTML = countryList;
		document.getElementById("dvCountry").className = "countryList opcity" + iter;
	}else{
		clearTimeout(timeout);
	}
}

/*code ot make appear a banner from right to left */
var bannertimeout;
var bannerLeftPos = 650;
var bannerMoveIter = 25;
var bannerIncrement = (bannerLeftPos/bannerMoveIter);
function appearBanner(){
    bannertimeout = setTimeout("moveBanner(" + bannerMoveIter + ")",2000);
}

function moveBanner(iter){
    var rotateBanner = document.getElementById("BannerRotate");
    bannerLeftPos = bannerLeftPos - bannerIncrement;
    iter--;
    if(iter >=0){
        bannertimeout = setTimeout("moveBanner(" + iter + ")", 20)
        rotateBanner.style.left =  bannerLeftPos + "px";
    }else{
        clearTimeout(bannertimeout);
    }

}

//Press page functions

  function WriteVideoToPlayer(divId){
  //
  //var t = setTimeout( "so.write('player')",750);
  so.write('player');
 }
  function movePicture(pic){
    visibleImg = visibleImg + pic;
    
    if(visibleImg >= totalGagaImg){
      visibleImg = totalGagaImg;
      document.getElementById("arrowNext").style.display = "none";
    }else{
      document.getElementById("arrowNext").style.display = "block";
    }
    if (visibleImg <= 1){
      visibleImg = 1;
      document.getElementById("arrowPrev").style.display = "none";
    }else{
      document.getElementById("arrowPrev").style.display = "block";
    }
    var gagaimg =  document.getElementById("gagaImg");
    gagaimg.src = "/images/gaga/" + visibleImg + ".jpg";
  }
 function changeIframe(objID,objSrc)
 {
    document.getElementById(objID).src = objSrc;
 }  
 function changeIframeLbl(objID,objSrc, objLabel)
 {
	document.getElementById('VideoContent' + objID).src = objSrc;
	document.getElementById('Video'+ objID + 'label').innerHTML = objLabel;
 }
 