vgReferrer='ASTRA WIDGET';
tvgBranding='Astra';
tvgRegion='London';
tvgClockStyle='ampm';
tvgFirstChannelNumber=70;
tvgLastChannelNumber=899;
tvgEPGNumberChannels =5;
tvgEPGNumberHours =1;
tvgListingsAreaWidth=250;
tvgChannelColumnWidth=0;
tvgShowChannelLogo="Yes";
tvgChannelLogoURL="http://c1944642.cdn.cloudfiles.rackspacecloud.com/";
tvgEncoding='UTF-8';
tvgIgnoreFavouriteChannels='Yes';
tvgShowDetailsUrl='http://dev.tvgenius.net/astra/dev/'; //Update to live site address
tvgShowDetailsTarget='_blank';
tvgCookiePrecedence='None';
tvgListingsViewStyle='EPG';

function randomNumber(){
	var rand_no = Math.random();
	rand_no = rand_no * 200 + 1;
	tvgFirstChannelNumber=Math.floor(rand_no);
}

function reloadDiv(){
	var listingsDiv = document.getElementById('tvgListingComp');
	fade('tvgListingComp');	
	randomNumber();
	setTimeout(tvgLoadComponents, 1000);
	setTimeout(function(){appear('tvgListingComp')}, 2000);
}

function setOpacity(domId, val) {
	obj = document.getElementById(domId);
	obj.style.MozOpacity = val;
	obj.style.opacity = val/10;
	obj.style.filter = 'alpha(opacity=' + val*10 + ')';
};

function fade(domId){
	obj = document.getElementById(domId); 
	
	var alpha = 10; 
	function f(){ 
		
		alpha--; 
		setOpacity(domId, alpha);
	
		if(alpha > 0){ 
			setTimeout(f, 100); 
  		}
	}
setTimeout(f, 100); 
};

	function appear(domId){
	obj = document.getElementById(domId);
	
	var alpha = 0; 
	
	function a(){ 
		alpha++; 
		
		setOpacity(domId, alpha); 
		if(alpha < 11)setTimeout(a, 100);

	}
setTimeout(a, 100); 

};

function nonclick(){
$('.tvg_listings_text > a').removeAttr("onclick");
$('.tvg_listings_text > a').removeAttr("href"); 
}