// JavaScript Document

function setCursor(Element) {
	no_browser = detectBrowser();
	
	if(no_browser == 1) {
		Element.style.cursor = "hand";
		
	}else if(no_browser == 0) {
		Element.style.cursor = "pointer";
		
	}else {
		exit();
	}
}

function detectBrowser() {

	var browser=navigator.appName;
	var b_version=navigator.appVersion;
	var version=parseFloat(b_version);

	if ((browser=="Netscape") && (version>=4))  {
		return 0;		
	}else if((browser == "Microsoft Internet Explorer") && (version >=4 )) {
		return 1;
	}else {
	  	return 2;
	}
}

function sendMailTo(name, company, domain) {
	locationstring = 'mai' + 'lto:' + name + '@' + company + '.' + domain;
	window.location.replace(locationstring);
}

function sendAnnotatedMailTo(name, company, domain, subject) {
	locationstring = 'mai' + 'lto:' + name + '@' + company + '.' + domain + "?subject=" + escape(subject);
	window.location.replace(locationstring);
}

function changeProgramSchedule(day){
	
	var contentTd = document.getElementById("programschedulecontent");
	
	switch (day) {
	
		case 1 : // Monday 
					contentTd.innerHTML = '<strong>05:00 AM</strong> - South Asian / Punjabi / Hindi <br /><strong>06:00 AM</strong> - South Asian (Hindi / Punjabi) <br /><strong>08:00 AM</strong> - South Asian (Hindi / Punjabi) <br /><strong>12:00 PM</strong> - Italian <br /><strong>1:30 PM</strong> - South Asian (Hindi / Punjabi) <br /><strong>06:00 PM</strong> - South Asian (Hindi / Punjabi) <br /><strong>08:00 PM</strong> - Polish<br /><strong>09:00 PM</strong> - Polish / English<br /><strong>10:00 PM</strong> - Pilipino<br /> <strong>11:00 PM</strong> - Music <br /><strong>12:00 AM</strong> - South Asian / Punjabi / Hindi <br />';
				break;
				
		case 2 : // Tuesday
					contentTd.innerHTML = '<strong>05:00 AM</strong> - South Asian / Punjabi / Hindi <br /><strong>06:00 AM</strong> - South Asian (Hindi / Punjabi) <br /><strong>08:00 AM</strong> - South Asian (Hindi / Punjabi) <br /><strong>12:00 PM</strong> - Italian <br /><strong>1:30 PM</strong> - South Asian (Hindi / Punjabi) <br /><strong>06:00 PM</strong> - South Asian (Hindi / Punjabi) <br /><strong>08:00 PM</strong> - Polish<br /><strong>09:00 PM</strong> - Polish / English<br /><strong>10:00 PM</strong> - Music <br /><strong>12:00 AM</strong> - South Asian / Punjabi / Hindi <br />';
				break;			
				
		case 3 : // Wednesday
					contentTd.innerHTML = '<strong>05:00 AM</strong> - South Asian / Punjabi / Hindi <br /><strong>06:00 AM</strong> - South Asian (Hindi / Punjabi) <br /><strong>08:00 AM</strong> - South Asian (Hindi / Punjabi) <br /><strong>12:00 PM</strong> - Italian <br /><strong>2:00 PM</strong> - South Asian (Hindi / Punjabi) <br /><strong>06:00 PM</strong> - South Asian (Hindi / Punjabi) <br /><strong>08:00 PM</strong> - Polish<br /><strong>09:00 PM</strong> - Chinese/Mandarin<br /><strong>10:00 PM</strong> - Music <br /><strong>12:00 AM</strong> - South Asian / Punjabi / Hindi <br />';
				break;			
				
		case 4 : // Thursday
					contentTd.innerHTML = '<strong>05:00 AM</strong> - South Asian / Punjabi / Hindi <br /><strong>06:00 AM</strong> - South Asian (Hindi / Punjabi) <br /><strong>08:00 AM</strong> - South Asian (Hindi / Punjabi) <br /><strong>12:00 PM</strong> - Italian <br /><strong>2:00 PM</strong> - South Asian (Hindi / Punjabi) <br /><strong>06:00 PM</strong> - South Asian (Hindi / Punjabi) <br /><strong>08:00 PM</strong> - Polish<br /><strong>09:00 PM</strong> - Polish / English<br /><strong>10:00 PM</strong> - Masala TV<br /><strong>12:00 AM</strong> - South Asian / Punjabi / Hindi <br />';
				break;	
				
		case 5 : // Friday
					contentTd.innerHTML = '<strong>05:00 AM</strong> - South Asian / Punjabi / Hindi <br /><strong>06:00 AM</strong> - South Asian (Hindi / Punjabi) <br /><strong>08:00 AM</strong> - South Asian (Hindi / Punjabi) <br /><strong>12:00 PM</strong> - Italian <br /><strong>2:00 PM</strong> - South Asian (Hindi / Punjabi) <br /><strong>06:00 PM</strong> - South Asian (Hindi / Punjabi) <br /><strong>08:00 PM</strong> - Polish<br /><strong>09:00 PM</strong> - Polish / English<br /><strong>10:00 PM</strong> - Chutney Soca Beat<br /><strong>12:00 AM</strong> - South Asian / Punjabi / Hindi <br />';
				break;		
				
		case 6 : // Saturday
					contentTd.innerHTML = '<strong>05:00 AM</strong> - South Asian / Punjabi / Hindi <br /><strong>06:00 AM</strong> - South Asian / English <br /> <strong>10:00 AM </strong>- Italian <br /><strong>03:00 PM</strong> - Italian Music <br /><strong>04:00 PM </strong>- Hungarian <br /><strong>06:00 PM</strong> - Chinese/Mandarin <br /><strong>08:00 PM</strong> - Polish <br /><strong>09:00 PM</strong> - Music<br /><strong>10:00 PM</strong> - South Asian / Hindi / Punjabi<br /><strong>12:00 AM</strong> - South Asian / Punjabi / Hindi <br />';
				break;	
				
		case 7 : // Sunday
					contentTd.innerHTML = '<strong>05:00 AM</strong> - South Asian / Punjabi / Hindi <br /><strong>06:00 AM</strong> - South Asian / English <br /> <strong>08:00 AM </strong>- German <br /><strong>01:00 PM</strong> - Italian / English <br /> <strong>05:00 PM </strong>-  Italian Music Hour <br /> <strong>06:00 PM </strong>-  Urdu <br /><strong>07:00 PM</strong> - Bulgarian <br /><strong>08:00 PM</strong> - Polish <br /><strong>09:00 PM</strong> - Croatian <br /><strong>10:00 PM</strong> - Hindi / Ahmadiyya <br /><strong>12:00 AM</strong> - South Asian / Punjabi / Hindi <br />';
				break;											
	}
	
	for (var i=1;i<=7;i++) {
	
		var obj = document.getElementById("day"+i);
		
		if (day == i)
			obj.className = "content_redtext";
		else
			obj.className = "contenttext";
	}
}	

function openPlayer(){
	var inner = window.open('player.htm','','toolbar=no,location=0,directories=no,status=no,menubar=0,scrollbars=no,resizable=no,copyhistory=0,width=300,height=290');
}

function changeAboutPage(page){
		
	var contentTd = document.getElementById("aboutuscontent");
	
	switch (page) {
	
		case 1 : // Page 1 
					contentTd.innerHTML = 'Since 1984, CIAO-AM 530 (Brampton/Toronto) has provided quality programming to hundreds of thousands of new Canadians in a variety of languages. <br><br>Music, talk, news and sports whether local or international are blended together and delivered with a unique Canadian perspective. Whether something happens around the corner or around the work, CIAO’s experienced on-air personnel keep each of their respective communities apprised.';
				break;
				
		case 2 : // Page 2
					contentTd.innerHTML = 'Cultural celebrations are routine with all of the communities the radio station serves and these include exposure of Canadian Ethnic artists through performance opportunities both on-air and at live venues. <br><br>CIAO-AM is one of the founders of the Canadian Catalogue of Ethnic Music, a resource devoted to collecting, promoting and distributing music to both the public and the industry.<br>Many of CIAO-AM’s programs are community centres and meeting places.';
				break;	
				
		case 3 : // Page 3
					contentTd.innerHTML = 'In a world where ethnic, religious and economic conflicts are often headline news throughout the year, CIAO’s program producers and on-air personnel work side by side in peace and harmony.  They share with each other and all CIAO\'s listeners the richness of the diverse heritages and the values that bind us all. <br><br>CIAO-AM 530 is a valued institution in Southern Ontario’s vibrant cultural mosaic.';
				break;					
	}
	
	for (var i=1;i<=3;i++) {
	
		var obj = document.getElementById("page"+i);
		
		if (page == i)
			obj.className = "content_redtext";
		else
			obj.className = "contenttext";
	}
}


function changeContactPage(page){
		
	var contentTd = document.getElementById("contactcontent");
	
	switch (page) {
	
		case 1 : // Page 1 
					contentTd.innerHTML = '<b>AM530 – CIAO-AM</b><br><b>Evanov Radio</b><br>5302 Dundas Street West<br>Etobicoke, Ontario<br>Canada<br>M9B 1B2<br><b>Ph:</b> (416) 213 – 1035<br><b>Fax:</b> (416) 233 – 8617<br><b>Email:</b> <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#105;&#110;&#102;&#111;&#64;&#101;&#118;&#97;&#110;&#111;&#118;&#114;&#97;&#100;&#105;&#111;&#46;&#99;&#111;&#109;&#63;&#115;&#117;&#98;&#106;&#101;&#99;&#116;&#61;&#67;&#111;&#110;&#116;&#97;&#99;&#116;&#32;&#85;&#115;&#32;&#119;&#119;&#119;&#46;&#97;&#109;&#53;&#51;&#48;&#46;&#99;&#97;" class="content_redtext">&#105;&#110;&#102;&#111;&#64;&#101;&#118;&#97;&#110;&#111;&#118;&#114;&#97;&#100;&#105;&#111;&#46;&#99;&#111;&#109;</a>';
				break;
				
		case 2 : // Page 2
					contentTd.innerHTML = 'If you would like to advertise on AM530, please contact the VP of Sales Ky Joseph at 416-213-1035 or <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#107;&#121;&#121;&#64;&#122;&#49;&#48;&#51;&#53;&#46;&#99;&#111;&#109;&#63;&#115;&#117;&#98;&#106;&#101;&#99;&#116;&#61;&#65;&#100;&#118;&#101;&#114;&#116;&#105;&#115;&#101;&#32;&#119;&#119;&#119;&#46;&#97;&#109;&#53;&#51;&#48;&#46;&#99;&#97;" class="content_redtext" >&#107;&#121;&#121;&#64;&#122;&#49;&#48;&#51;&#53;&#46;&#99;&#111;&#109;</a>.<br><br>Click <a href="http://www.am530.ca/salescontract.pdf" class="content_redtext" target="_blank">here</a> to view our conditions of contract for air-time.<br><br>AM530 is always interested in listener feedback and comments. Please e-mail <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#115;&#101;&#97;&#110;&#64;&#122;&#49;&#48;&#51;&#53;&#46;&#99;&#111;&#109;&#63;&#115;&#117;&#98;&#106;&#101;&#99;&#116;&#61;&#76;&#105;&#115;&#116;&#101;&#110;&#101;&#114;&#32;&#70;&#101;&#101;&#100;&#98;&#97;&#99;&#107;&#32;&#119;&#119;&#119;&#46;&#97;&#109;&#53;&#51;&#48;&#46;&#99;&#97;"  class="content_redtext">&#115;&#101;&#97;&#110;&#64;&#122;&#49;&#48;&#51;&#53;&#46;&#99;&#111;&#109;</a>.';
				break;									
	}
	
	for (var i=1;i<=2;i++) {
	
		var obj = document.getElementById("page"+i);
		
		if (page == i)
			obj.className = "content_redtext";
		else
			obj.className = "contenttext";
	}	
}

function changeHomePage(page){
		
	var contentTd = document.getElementById("homecontent");
	
	switch (page) {
	
		case 1 : // Page 1 
					contentTd.innerHTML = '<a href="images/bulgare_big.jpg" target="_blank"><img src="images/bulgare_tn.jpg" align="left" border="0" style="padding-right:10px;"></a><b>Le Mystere des Voix Bulgares</b><br />Legendary World Music Pioneers<br />Tuesday, May 13, 8:00 (doors open at 7:00)<br />St. Andrew\'s Church, 73 Simcoe St. (at the St. Andrew\'s subway).<br />Tickets - $35 at <a href="http://www.smallworldmusic.com" target="_blank" class="content_redtext">www.smallworldmusic.com</a> and Soundscapes Records, 572 College St. ...';
				break;
				
		case 2 : // Page 2
					contentTd.innerHTML = 'Created fifty years ago, the choir\'s goal was to enrich the heritage of the Bulgarian solo folk song with harmonies and arrangements that highlighted its beautiful timbres and irregular rhythms. They transform sounds into strange vocal colors as if something other than the human voice, perhaps some strange instrument is playing. With their bell-like voices that seam to float lightly trough space, these women have become international stars whose hypnotic chant circles the globe.';
				break;									
	}
	
	for (var i=1;i<=2;i++) {
	
		var obj = document.getElementById("page"+i);
		
		if (page == i)
			obj.className = "content_redtext";
		else
			obj.className = "contenttext";
	}	
}

function changeCareersPage(page){
		
	var contentTd = document.getElementById("careerscontent");
	
	switch (page) {
	
		case 1 : // Page 1 
					contentTd.innerHTML = '<b>The Evanov Radio Group with radio stations in Toronto ... Ottawa ... Halifax ... Hawkesbury is expanding again ... This time to Winnipeg!! </b><br /><br />We are currently accepting Resumes for all markets for the following positions:Promotions Co-ordinators, Sales Reps, Creative, Production, Office management, and accounting. We are also updating our Talent Banks for on-air ... whatever department you think that you are suited for send us your demo!!';
				break;
				
		case 2 : // Page 2
					contentTd.innerHTML = 'Send your Resume/Demo to <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#106;&#111;&#98;&#115;&#64;&#101;&#118;&#97;&#110;&#111;&#118;&#114;&#97;&#100;&#105;&#111;&#46;&#99;&#111;&#109;" class="content_redtext">&#106;&#111;&#98;&#115;&#64;&#101;&#118;&#97;&#110;&#111;&#118;&#114;&#97;&#100;&#105;&#111;&#46;&#99;&#111;&#109;</a>.<br><b>Or:</b><br>Evanov Radio Group<br>5312 Dundas Street West<br>Toronto, Ontario<br>M9B 1B3<br><br>The Evanov Radio Group is an equal opportunity employer.<br>Only those considered for an interview will be contacted.';
				break;					 				
	}
	
	for (var i=1;i<=2;i++) {
	
		var obj = document.getElementById("page"+i);
		
		if (page == i)
			obj.className = "content_redtext";
		else
			obj.className = "contenttext";
	}	
}

function changeWereGrowingPage(page){
		
	var contentTd = document.getElementById("weregrowingcontent");
	
	switch (page) {
	
/*		case 1 : // Page 1 
					contentTd.innerHTML = 'We are asking all our  listeners and friends to support our latest efforts to obtain radio licences in  Qu&eacute;bec City &ndash; One in French and One in English  for an Easy Listening Format.<Br><br /><strong>Nous avons besoin de votre appui!</strong><br /><br />Nous faisons appel à votre appui envers nos efforts pour obtenir de nouvelles stations de radio à Québec, une de langue anglaise et l’autre française, qui offriront une formule de musique contemporaine et de détente.';
					break;
				
		case 2 : // Page 2
					contentTd.innerHTML = '<strong>Qu&eacute;bec, Quebec<br>Application No. 2008-1622-5</strong><br>Application by Evanov Communications for a broadcasting licence to operate a French-language FM commercial radio programming undertaking in Québec. The new station would operate on frequency 105.3 MHz (channel 287C1) and offer a Contemporary Easy Listening music format.';
					break;	
					
		case 3 : // Page 3
					contentTd.innerHTML = '<strong>Qu&eacute;bec, Qu&eacute;bec<br>No de demande 2008-1622-5</strong><br>Demande présentée par <strong>Evanov Communications Inc., au nom d’une société devant être constituée</strong>, en vue d’obtenir une licence de radiodiffusion afin d’exploiter une entreprise de programmation de radio FM commerciale de langue française à Québec. La nouvelle station serait exploitée à la fréquence 105,3 MHz (canal 287C1). La requérante propose d’offrir une formule de musique contemporaine et de détente.';
					break;	
													
		case 4 : // Page 4
					contentTd.innerHTML = '<strong>Qu&eacute;bec, Quebec<br>Application No. 2008-1088-9</strong><br>Application by Evanov Communications for a broadcasting licence to operate an English-language FM commercial radio programming undertaking in Québec. The new station would operate on frequency 105.7 MHz (channel 289C1) and offer a Contemporary Easy Listening music format.';	
					break;
					
		case 5 : // Page 5
					contentTd.innerHTML = '<strong>Qu&eacute;bec, Qu&eacute;bec<br>No de demande 2008-1088-9</strong><br>Demande présentée par <strong>Evanov Communications Inc., au nom d’une société devant être constituée</strong>, en vue d’obtenir une licence de radiodiffusion afin d’exploiter une entreprise de programmation de radio FM commerciale de langue anglaise à Québec. La nouvelle station serait exploitée à la fréquence 105,7 MHz (canal 289C1). La requérante propose d’offrir une formule de musique contemporaine et de détente.';	
					break;
						
		case 6 : // Page 6
					contentTd.innerHTML = "Dear Secretary General:<br><br>Re: Application No. 2010-0107-3<br><br>Please accept this e-mail intervention in support of the above noted application. Dufferin Communications Inc.'s proposal for a technical amendment is necessary for CIRR-FM to provide a better signal and better reception to the station’s targeted audience, Toronto’s LGBT community.";
					break;

		case 7 : // Page 7
					contentTd.innerHTML = '<table width="100%" border="0" cellspacing="1" cellpadding="1"><tr><td width="80">First Name*:</td><td><input type="text" name="firstname" class="form_textfield" style="width:200px;" /></td></tr><tr><td>Last Name*:</td><td><input type="text" name="lastname" class="form_textfield" style="width:200px;" /></td></tr><tr><td>E-mail*:</td><td><input type="text" name="email" class="form_textfield" style="width:200px;" /></td></tr><tr><td valign="top">Comments:</td><td><textarea name="comments" class="form_textfield" style="width:200px;" /></textarea></td></tr><tr><td>&nbsp;</td><td><input type="button" name="btn_submit" class="form_button" value="SEND TO SHOW YOUR SUPPORT"  onClick="doChk();" style="cursor:pointer; width:180px;" /> <input type="reset" name="btn_submit" class="form_button" value="RESET" /></td></tr><tr><td colspan="2" style="padding-top:5px;">*Asterisk-marked items are REQUIRED.</td></tr></table>';
					break;	
					
		*/

		case 1 : // Page 1
					contentTd.innerHTML = "Dear Secretary General:<br><br>Re: Application No. 2010-0107-3<br><br>Please accept this e-mail intervention in support of the above noted application. Dufferin Communications Inc.'s proposal for a technical amendment is necessary for CIRR-FM to provide a better signal and better reception to the station’s targeted audience, Toronto’s LGBT community.";
					break;

		case 2 : // Page 2
					contentTd.innerHTML = '<table width="100%" border="0" cellspacing="1" cellpadding="1"><tr><td width="80">First Name*:</td><td><input type="text" name="firstname" class="form_textfield" style="width:200px;" /></td></tr><tr><td>Last Name*:</td><td><input type="text" name="lastname" class="form_textfield" style="width:200px;" /></td></tr><tr><td>E-mail*:</td><td><input type="text" name="email" class="form_textfield" style="width:200px;" /></td></tr><tr><td valign="top">Comments:</td><td><textarea name="comments" class="form_textfield" style="width:200px;" /></textarea></td></tr><tr><td>&nbsp;</td><td><input type="button" name="btn_submit" class="form_button" value="SEND TO SHOW YOUR SUPPORT"  onClick="doChk();" style="cursor:pointer; width:180px;" /> <input type="reset" name="btn_submit" class="form_button" value="RESET" /></td></tr><tr><td colspan="2" style="padding-top:5px;">*Asterisk-marked items are REQUIRED.</td></tr></table>';
					break;	
	}
	
	for (var i=1;i<=2;i++) {
	
		var obj = document.getElementById("page"+i);
		
		if (page == i)
			obj.className = "content_redtext";
		else
			obj.className = "contenttext";
	}	
}