
// JavaScript Document
var value1=0;
function playAlazaanRadio(){
	
		var thisdate = new Date();
		if (thisdate.getHours()==7) { value1=7; }
		if (thisdate.getHours()==8) { value1=8; }
		if (thisdate.getHours()==10) { value1=10; }
		if (thisdate.getHours()==12) { value1=12; }
		if (thisdate.getHours()==17) { value1=17; }
		if (thisdate.getHours()==19) { value1=19; }
		if (thisdate.getHours()==20) { value1=20; }
		if (thisdate.getHours()==21) { value1=21; }
	
	
	window.open("./ASP/playAlazaanRadio.asp?packageId="+value1,"myWindow","directories=no,toolbar=no, width=790, height=410, resizable=0, status=0,menubar=0,location=0,screenX=500,screenY=400,top=100,left=100");
	
}

function playLiveNews(ch){
   
	window.open("./ASP/liveNews.asp?channel="+ch,"myWindow","directories=no,toolbar=no, width=450, height=350, resizable=0, status=0,menubar=0,location=0,screenX=500,screenY=400,top=100,left=200");
}
function playTaravih()
{

			window.open("./ASP/playTaravih.htm","myWindow","directories=no,toolbar=no, width=345, height=270, resizable=0, status=0,menubar=0,location=0,screenX=200,screenY=200,top=50,left=200");
												
}
function open_refer()
{

			window.open("./ASP/refer_friend.asp","myWindow","directories=no,toolbar=no, width=455, height=215, resizable=0, status=0,menubar=0,location=0,screenX=200,screenY=200,top=270,left=250");
												
}


/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}
