	    var qsParm = new Array();
		 function qs() {
				 var query = window.location.search.substring(1);
				 var parms = query.split('&');     
			 for (var i=0; i< parms.length;i++){
				  var pos = parms[i].indexOf('=');
            
            if (pos > 0) {
                var key = parms[i].substring(0,pos);
                var val = parms[i].substring(pos+1);
                qsParm[key]=val;
                }
                
             }

        }
       
    //default setting which specifies the channel
    qsParm['uri'] = "channels/40334/517964";
    qsParm['showId'] = null;
    qs();


function changecolor(thecell)
 {
 	
       document.getElementById("cellOne").style.backgroundColor = "";
       document.getElementById("cellTwo").style.backgroundColor = "";
       document.getElementById("cellThree").style.backgroundColor = "";
       document.getElementById("cellFour").style.backgroundColor = "";
       document.getElementById("cellFive").style.backgroundColor = "";
       document.getElementById("cellSix").style.backgroundColor = "";
       document.getElementById(thecell).style.backgroundColor = "#000000";
 }
 
function bgcolor(thecell)
 {

 	document.getElementById(thecell).style.backgroundImage = "url(http://www.kyte.com/assets/blackbg.png)";
 	
 }
 
 
function clearcolor(thecell)
 {

 	document.getElementById(thecell).style.backgroundImage = "url(http://www.kyte.com/assets/clearbg.png)";
 	
 }
 
function redirectHash()
{
	var hash = location.hash;
	if (hash){
		hash = hash.replace('#share', '?uri=');
		location.href = hash;
	}
}
	
redirectHash();
