// JavaScript Document
var browsIE = "";
var selAVP = 0;
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
 var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
 
 if (ieversion==7)
 {
    browsIE="IE7";
  }
}


if (navigator.appName=="Microsoft Internet Explorer")
{
	var ies = document.getElementById("musicPlug");
		ies.style.visibility="hidden";
}
else
{
	document.getElementById("musicPlug").style.visibility="visible";
}


   play();
    
    function play()
        {
            document.getElementById("divradio").innerHTML = "";
            var str = "<OBJECT ID='mus' style='width:0px; height:0px;'";
            str += " classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'";
            str += " CODEBASE='http://port25.technet.com/videos/downloads/wmpfirefoxplugin.exe'";
            str += " standby='Loading Microsoft Windows Media Player components...'";
            str += " TYPE='application/x-oleobject' width='239' height='179'>";

            str += "<PARAM NAME='FileName' VALUE='music_plug_in/Camellia_Song_Final.mp3'>";
            str += "<PARAM NAME='AnimationatStart' VALUE='false'>";
            str += "<PARAM NAME='TransparentatStart' VALUE='true'>";
            str += "<PARAM NAME='AutoStart' VALUE='true'>";
            str += "<PARAM NAME='ShowControls' VALUE='0'>";

            str += "<Embed id=\"mus2\" style='width:0px; height:0px;' TYPE=\"application/x-mplayer2\"";
            str += " pluginspage=\"http://port25.technet.com/videos/downloads/wmpfirefoxplugin.exe\"";
            str += " SRC=\"music_plug_in/Camellia_Song_Final.mp3\"";
            str += " ShowControls=\"0\"";
            str += " Width=\"0\"";
			str += " autostart=\"true\"";
            str += " Height=\"0\">";
            str += "</Embed>";
            str += "</OBJECT>";

			if (browsIE=="IE7")
			{
			}
			document.getElementById("musicPlug").innerHTML="";
            document.getElementById("musicPlug").innerHTML = str;
            try {
                stopMovie();
            }
            catch (e)
             { }
        }
        
        function stopMovie() {
			var x = navigator;
            //if (x.userAgent != "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.0.30618; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 1.0.3705)") {
              if (browsIE!="IE7")
              {
                var str = "";
                            var str = "<OBJECT id='VIDEO' width='400' height='350' ";
                	            str +="CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'";
                	            str +="type='application/x-oleobject' style='margin-top:0px;'";
                                str +="codebase='http://port25.technet.com/videos/downloads/wmpfirefoxplugin.exe'>";

                                str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/Camella_final.wmv'>";
                	            str +="<PARAM NAME='SendPlayStateChangeEvents' VALUE='True'>";
                	            str +="<PARAM NAME='AutoStart' VALUE='false'>";
                	            str +="<PARAM name='uiMode' value='none'>";
                	            str +="<PARAM name='PlayCount' value='99999'>";

                str += "<embed id='movie2' src='http://www.camellacomm.com/Camella_final.wmv' width='400' height='350'";
                str += "pluginspage='http://port25.technet.com/videos/downloads/wmpfirefoxplugin.exe'";
                str += "type='application/x-oleobject'";
                str += "autostart='false'";
                str += "loop='false'>";
                str += "</embed>";
                str += "</OBJECT";
                document.getElementById("movie").innerHTML = "";
                document.getElementById("movie").innerHTML = str;

                obj = document.getElementById('VIDEO');
                obj.uiMode='full';
            }
            else {
            document.getElementById("movie").style.display="none";
                var str = "<embed id='movie2' src='http://www.camellacomm.com/Camella_final.wmv' width='400' height='350'";
                str += "pluginspage='http://port25.technet.com/videos/downloads/wmpfirefoxplugin.exe'";
                str += "type='application/x-oleobject'";
                str += "autostart='false'";
                str += "loop='false'>";
                str += "</embed>";
                try {
                    document.getElementById("movie2").src = '';
                    document.getElementById("movie2").stop();
                } catch (e) { }
            }
		stopAVP();
        }
        
	
		function moviePlay() {
        var x = navigator;
            //if (x.userAgent != "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.0.30618; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 1.0.3705)") {
            if (browsIE!="IE7")
            {
            var str = "<OBJECT id='VIDEO' width='400' height='350' ";
	            str +="CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'";
	            str +="type='application/x-oleobject' style='margin-top:0px;'";
                str +="codebase='http://port25.technet.com/videos/downloads/wmpfirefoxplugin.exe'>";
	
	            str +="<PARAM NAME='URL' VALUE='http://www.camellacomm.com/Camella_final.wmv'>";
	            str +="<PARAM NAME='SendPlayStateChangeEvents' VALUE='False'>";
	            str +="<PARAM NAME='AutoStart' VALUE='True'>";
	            str +="<PARAM name='uiMode' value='none'>";
	            str +="<PARAM name='PlayCount' value='99999'>";
    
                str +="<embed id='movie2' src='http://www.camellacomm.com/Camella_final.wmv' width='400' height='350'";
                str +="pluginspage='http://port25.technet.com/videos/downloads/wmpfirefoxplugin.exe'";
                str +="type='application/x-oleobject'";
                str +="autostart='true'";
                str +="loop='true'>";
                str += "</embed>";
                str += "</OBJECT>";
                document.getElementById("movie").innerHTML = "";
                document.getElementById("movie").innerHTML = str;
                obj = document.getElementById('VIDEO');
                obj.uiMode='full';
                }
                else
                {
                    
                    var str ="<embed id='movie2' src='http://www.camellacomm.com/Camella_final.wmv' width='400' height='350'";
                    str +=" pluginspage='http://port25.technet.com/videos/downloads/wmpfirefoxplugin.exe'";
                    str +=" type='application/x-oleobject'";
                    str +=" autostart=\"true\"";
                    str+="CONTROLLER=\"TRUE\"";
                    str +=" loop=\"true\">";
                    str += "</embed>";
                    document.getElementById("movie").innerHTML = "";
                    
                    document.getElementById("movie").innerHTML = str;
                    document.getElementById("movie").style.display="block";
                    setTimeout("playForIE7()",500);
                }
                
        }
 
 		function clearAVP() {
			try {
				document.getElementById("mus").stop();
			}
			catch (e) { }
			
			var str = "";
			str +="<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td>&#8226;</td><td width='45%'>";
			str +="<span style='text-align:center; vertical-align:top'><a href='javascript:void(0);' onclick='playAVP(1);'>";
			str +="Camella Communities</a></a></span></td><td>&#8226;</td><td><span style='text-align:center; vertical-align:top;'>";
			str +="<a href='javascript:void(0);' onclick='playAVP(6);'>Camella Naga</a></span></td></tr><tr><td width='5%'>&#8226;</td>";
			str +="<td><a href='javascript:void(0);' onclick='playAVP(13);'>Camella Baliwag</a></td><td width='5%'>&#8226;</td>";
			str +="<td><span style='text-align:center; vertical-align:top;'><a href='javascript:void(0);' onclick='playAVP(10);'>";
			str +="Camella Bacolod</a></span></td></tr><tr><td width='5%'>&#8226;</td><td><a href='javascript:void(0);' onclick='playAVP(14);'>";
			str +="Camella Pampanga</a></td><td width='5%'>&#8226;</td><td><span style='text-align:center; vertical-align:top'>";
			str +="<a href='javascript:void(0);' onclick='playAVP(2);'>Camella Leyte</a></span></td></tr><tr><td width='5%'>&#8226;</td>";
			str +="<td><span style='text-align:center; vertical-align:top;'><a href='javascript:void(0);' onclick='playAVP(11);'>";
			str +="Camella Tarlac</a></span></td><td width='5%'>&#8226;</td><td><span style='text-align:center; vertical-align:top'>";
			str +="<a href='javascript:void(0);' onclick='playAVP(9);'>Camella CDO</a></span></td></tr><tr><td width='5%'>&#8226;</td>";
			str +="<td><a href='javascript:void(0);' onclick='playAVP(15);'>Camella Pangasinan</a></td><td width='5%'>&#8226;</td><td width='45%'>";
			str +="<span style='text-align:center; vertical-align:top;'><a href='javascript:void(0);' onclick='playAVP(8);'>Camella Davao</a>";
			str +="</span></td></tr><tr><td width='5%'>&#8226;</td><td><span style='text-align:center; vertical-align:top;'>";
			str +="<a href='javascript:void(0);' onclick='playAVP(12);'>Camella Tuguegarao</a></span></td><td width='5%'>&#8226;</td>";
			str +="<td><span style='text-align:center; vertical-align:top;'><a href='javascript:void(0);' onclick='playAVP(5);'>";
			str +="Camella Northpoint</a></span></td></tr><tr><td width='5%'>&#8226;</td><td><span style='text-align:center; vertical-align:top'>";
			str +="<a href='javascript:void(0);' onclick='playAVP(3);'>Camella Batangas</a></span></td><td width='5%'>&#8226;</td><td>";
			str +="<span style='text-align:center; vertical-align:top'><a href='javascript:void(0);' onclick='playAVP(7);'>";
			str +="Camella General Santos</a></span></td></tr><tr><td>&#8226;</td><td><span style='text-align:center; vertical-align:top;'>";
			str +="<a href='javascript:void(0);' onclick='playAVP(4);'>Crown Residences</a></span></td><td>&nbsp;</td><td>&nbsp;</td>";
			str +="</tr></table>";
			
			str +="</table>";
			str +="<br />";
			document.getElementById("avp").innerHTML = str; 
		}
		
		function playAVP(avpNo) {
        var x = navigator;
            //if (x.userAgent != "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.0.30618; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 1.0.3705)") {
		if (browsIE!="IE7")
            { 
            var str = "<OBJECT id='AVPvid' width='400' height='315' ";
	            str +="CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'";
	            str +="type='application/x-oleobject' style='margin-top:0px;'";
                str +="codebase='http://port25.technet.com/videos/downloads/wmpfirefoxplugin.exe'>";
	
				if (avpNo==1) {	str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Communities.wmv'>"; }
				else if (avpNo==2) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Leyte.wmv'>"; }
				else if (avpNo==3) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Sto._Tomas.wmv'>"; }
				else if (avpNo==4) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Crown_Residences.wmv'>"; }
				else if (avpNo==5) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/North_Point.wmv'>"; }
	            else if (avpNo==6) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Naga.wmv'>"; }
	            else if (avpNo==7) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Gen_Santos.wmv'>"; }
	            else if (avpNo==8) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Davao.wmv'>"; }
	            else if (avpNo==9) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/CDO.wmv'>"; }
	            else if (avpNo==10) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Bacolod.wmv'>"; }
	            else if (avpNo==11) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Tarlac.wmv'>"; }
	            else if (avpNo==12) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Tuguegarao.wmv'>"; }
	            else if (avpNo==13) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Baliwag.wmv'>"; }
	            else if (avpNo==14) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Pampanga.wmv'>"; }
	            else if (avpNo==15) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Pangasinan.wmv'>"; }
	            str +="<PARAM NAME='SendPlayStateChangeEvents' VALUE='False'>";
	            str +="<PARAM NAME='AutoStart' VALUE='True'>";
	            str +="<PARAM name='uiMode' value='none'>";
	            str +="<PARAM name='PlayCount' value='99999'>";
    
				if (avpNo==1) {	str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Communities.wmv' width='400' height='315'"; }
				else if (avpNo==2) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Leyte.wmv' width='400' height='315'"; }
				else if (avpNo==3) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Sto._Tomas.wmv' width='400' height='315'"; }
				else if (avpNo==4) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Crown_Residences.wmv' width='400' height='315'"; }
				else if (avpNo==5) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/North_Point.wmv' width='400' height='315'"; }
				else if (avpNo==6) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Naga.wmv' width='400' height='315'"; }
				else if (avpNo==7) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Gen_Santos.wmv' width='400' height='315'"; }
				else if (avpNo==8) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Davao.wmv' width='400' height='315'"; }
				else if (avpNo==9) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/CDO.wmv' width='400' height='315'"; }
				else if (avpNo==10) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Bacolod.wmv' width='400' height='315'"; }
				else if (avpNo==11) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Tarlac.wmv' width='400' height='315'"; }
				else if (avpNo==12) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Tuguegarao.wmv' width='400' height='315'"; }
				else if (avpNo==13) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Baliwag.wmv' width='400' height='315'"; }
				else if (avpNo==14) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Pampanga.wmv' width='400' height='315'"; }
				else if (avpNo==15) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Pangasinan.wmv' width='400' height='315'"; }
                str +="pluginspage='http://port25.technet.com/videos/downloads/wmpfirefoxplugin.exe'";
                str +="type='application/x-oleobject'";
                str +="autostart='true'";
                str +="loop='true'>";
                str += "</embed>";
                str += "</OBJECT><br /><br /><div align='center'><a href='javascript:void(0);' onclick='clearAVP();'>>click here to go back<</a></div>";
                document.getElementById("avp").innerHTML = "";
                document.getElementById("avp").innerHTML = str;
                obj = document.getElementById('AVPvid');
                obj.uiMode='full';
			}
			else
			{	
				var str ="";
				if (avpNo==1) {	str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Communities.wmv' width='400' height='315'"; }
				else if (avpNo==2) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Leyte.wmv' width='400' height='315'"; }
				else if (avpNo==3) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Sto._Tomas.wmv' width='400' height='315'"; }
				else if (avpNo==4) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Crown_Residences.wmv' width='400' height='315'"; }
				else if (avpNo==5) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/North_Point.wmv' width='400' height='315'"; }
				else if (avpNo==6) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Naga.wmv' width='400' height='315'"; }
				else if (avpNo==7) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Gen_Santos.wmv' width='400' height='315'"; }
				else if (avpNo==8) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Davao.wmv' width='400' height='315'"; }
				else if (avpNo==9) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/CDO.wmv' width='400' height='315'"; }
				else if (avpNo==10) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Bacolod.wmv' width='400' height='315'"; }
				else if (avpNo==11) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Tarlac.wmv' width='400' height='315'"; }
				else if (avpNo==12) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Tuguegarao.wmv' width='400' height='315'"; }
				else if (avpNo==13) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Baliwag.wmv' width='400' height='315'"; }
				else if (avpNo==14) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Pampanga.wmv' width='400' height='315'"; }
				else if (avpNo==15) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Pangasinan.wmv' width='400' height='315'"; }
				str +=" pluginspage='http://port25.technet.com/videos/downloads/wmpfirefoxplugin.exe'";
				str +=" type='application/x-oleobject'";
				str +=" autostart=\"true\"";
				str+="CONTROLLER=\"TRUE\"";
				str +=" loop=\"true\">";
				str += "</embed><br /><br /><div align='center'><a href='javascript:void(0);' onclick='clearAVP();'>>click here to go back<</a></div>";
				document.getElementById("avp").innerHTML = ""; 
				document.getElementById("avp").innerHTML = str;
				document.getElementById("avp").style.display="block";
				setTimeout("playAVPForIE7()",500);
			}
                
		selAVP = avpNo;
        }
		
		function playSingleAVP(avpNo) {
        var x = navigator;
            //if (x.userAgent != "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.0.30618; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 1.0.3705)") {
		if (browsIE!="IE7")
            { 
            var str = "<OBJECT id='AVPvid' width='420' height='375' ";
	            str +="CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'";
	            str +="type='application/x-oleobject' style='margin-top:0px;'";
                str +="codebase='http://port25.technet.com/videos/downloads/wmpfirefoxplugin.exe'>";
	
				if (avpNo==1) {	str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Communities.wmv'>"; }
				else if (avpNo==2) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Leyte.wmv'>"; }
				else if (avpNo==3) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Sto._Tomas.wmv'>"; }
				else if (avpNo==4) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Crown_Residences.wmv'>"; }
				else if (avpNo==5) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/North_Point.wmv'>"; }
	            else if (avpNo==6) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Naga.wmv'>"; }
	            else if (avpNo==7) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Gen_Santos.wmv'>"; }
	            else if (avpNo==8) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Davao.wmv'>"; }
	            else if (avpNo==9) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/CDO.wmv'>"; }
	            else if (avpNo==10) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Bacolod.wmv'>"; }
	            else if (avpNo==11) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Tarlac.wmv'>"; }
	            else if (avpNo==12) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Tuguegarao.wmv'>"; }
	            else if (avpNo==13) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Baliwag.wmv'>"; }
	            else if (avpNo==14) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Pampanga.wmv'>"; }
	            else if (avpNo==15) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Pangasinan.wmv'>"; }
				str +="<PARAM NAME='SendPlayStateChangeEvents' VALUE='False'>";
	            str +="<PARAM NAME='AutoStart' VALUE='True'>";
	            str +="<PARAM name='uiMode' value='none'>";
	            str +="<PARAM name='PlayCount' value='99999'>";
    
				if (avpNo==1) {	str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Communities.wmv' width='420' height='375'"; }
				else if (avpNo==2) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Leyte.wmv' width='420' height='375'"; }
				else if (avpNo==3) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Sto._Tomas.wmv' width='420' height='375'"; }
				else if (avpNo==4) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Crown_Residences.wmv' width='420' height='375'"; }
				else if (avpNo==5) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/North_Point.wmv' width='420' height='375'"; }
				else if (avpNo==6) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Naga.wmv' width='420' height='375'"; }
				else if (avpNo==7) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Gen_Santos.wmv' width='420' height='375'"; }
				else if (avpNo==8) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Davao.wmv' width='420' height='375'"; }
				else if (avpNo==9) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/CDO.wmv' width='420' height='375'"; }
				else if (avpNo==10) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Bacolod.wmv' width='420' height='375'"; }
				else if (avpNo==11) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Tarlac.wmv' width='420' height='375'"; }
				else if (avpNo==12) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Tuguegarao.wmv' width='420' height='375'"; }
				else if (avpNo==13) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Baliwag.wmv' width='420' height='375'"; }
				else if (avpNo==14) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Pampanga.wmv' width='420' height='375'"; }
				else if (avpNo==15) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Pangasinan.wmv' width='420' height='375'"; }
                str +="pluginspage='http://port25.technet.com/videos/downloads/wmpfirefoxplugin.exe'";
                str +="type='application/x-oleobject'";
                str +="autostart='true'";
                str +="loop='true'>";
                str += "</embed>";
                str += "</OBJECT>";
                document.getElementById("singleAVP").innerHTML = "";
                document.getElementById("singleAVP").innerHTML = str;
                obj = document.getElementById('AVPvid');
                obj.uiMode='full';
			}
			else
			{	
				var str ="";
				if (avpNo==1) {	str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Communities.wmv' width='420' height='375'"; }
				else if (avpNo==2) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Leyte.wmv' width='420' height='375'"; }
				else if (avpNo==3) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Sto._Tomas.wmv' width='420' height='375'"; }
				else if (avpNo==4) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Crown_Residences.wmv' width='420' height='375'"; }
				else if (avpNo==5) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/North_Point.wmv' width='420' height='375'"; }
				else if (avpNo==6) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Naga.wmv' width='420' height='375'"; }
				else if (avpNo==7) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Gen_Santos.wmv' width='420' height='375'"; }
				else if (avpNo==8) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Davao.wmv' width='420' height='375'"; }
				else if (avpNo==9) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/CDO.wmv' width='420' height='375'"; }
				else if (avpNo==10) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Bacolod.wmv' width='420' height='375'"; }
				else if (avpNo==11) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Tarlac.wmv' width='420' height='375'"; }
				else if (avpNo==12) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Tuguegarao.wmv' width='420' height='375'"; }
				else if (avpNo==13) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Baliwag.wmv' width='420' height='375'"; }
				else if (avpNo==14) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Pampanga.wmv' width='420' height='375'"; }
				else if (avpNo==15) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Pangasinan.wmv' width='420' height='375'"; }
				str +=" pluginspage='http://port25.technet.com/videos/downloads/wmpfirefoxplugin.exe'";
				str +=" type='application/x-oleobject'";
				str +=" autostart=\"true\"";
				str+="CONTROLLER=\"TRUE\"";
				str +=" loop=\"true\">";
				str += "</embed>";
				document.getElementById("singleAVP").innerHTML = ""; 
				document.getElementById("singleAVP").innerHTML = str;
				document.getElementById("singleAVP").style.display="block";
				setTimeout("playAVPForIE7()",500);
			}
                
		selAVP = avpNo;
        }
		
         function stopAVP() {
			 if (selAVP>0) { 
			
				var x = navigator;
				//if (x.userAgent != "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.0.30618; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 1.0.3705)") {
				  if (browsIE!="IE7")
				  {
					var str = "";
					var str = "<OBJECT id='AVPvid' width='400' height='315' ";
					str +="CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'";
					str +="type='application/x-oleobject' style='margin-top:0px;'";
					str +="codebase='http://port25.technet.com/videos/downloads/wmpfirefoxplugin.exe'>";
	
					if (selAVP==1) {	str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Communities.wmv'>"; }
					else if (selAVP==2) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Leyte.wmv'>"; }
					else if (selAVP==3) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Sto._Tomas.wmv'>"; }
					else if (selAVP==4) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Crown_Residences.wmv'>"; }
					else if (selAVP==5) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/North_Point.wmv'>"; }
					else if (selAVP==6) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Naga.wmv'>"; }
					else if (selAVP==7) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Gen_Santos.wmv'>"; }
					else if (selAVP==8) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Davao.wmv'>"; }
					else if (selAVP==9) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/CDO.wmv'>"; }
					else if (selAVP==10) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Bacolod.wmv'>"; }
					else if (selAVP==11) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Tarlac.wmv'>"; }
					else if (selAVP==12) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Tuguegarao.wmv'>"; }
					else if (selAVP==13) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Baliwag.wmv'>"; }
					else if (selAVP==14) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Pampanga.wmv'>"; }
					else if (selAVP==15) { str += "<PARAM NAME='URL' VALUE='http://www.camellacomm.com/avp/Camella_Pangasinan.wmv'>"; }
					str +="<PARAM NAME='SendPlayStateChangeEvents' VALUE='True'>";
					str +="<PARAM NAME='AutoStart' VALUE='false'>";
					str +="<PARAM name='uiMode' value='none'>";
					str +="<PARAM name='PlayCount' value='99999'>";
	
					if (selAVP==1) {	str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Communities.wmv' width='400' height='315'"; }
					else if (selAVP==2) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Leyte.wmv' width='400' height='315'"; }
					else if (selAVP==3) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Sto._Tomas.wmv' width='400' height='315'"; }
					else if (selAVP==4) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Crown_Residences.wmv' width='400' height='315'"; }
					else if (selAVP==5) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/North_Point.wmv' width='400' height='315'"; }
					else if (selAVP==6) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Naga.wmv' width='400' height='315'"; }
					else if (selAVP==7) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Gen_Santos.wmv' width='400' height='315'"; }
					else if (selAVP==8) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Davao.wmv' width='400' height='315'"; }
					else if (selAVP==9) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/CDO.wmv' width='400' height='315'"; }
					else if (selAVP==10) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Bacolod.wmv' width='400' height='315'"; }
					else if (selAVP==11) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Tarlac.wmv' width='400' height='315'"; }
					else if (selAVP==12) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Tuguegarao.wmv' width='400' height='315'"; }
					else if (selAVP==13) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Baliwag.wmv' width='400' height='315'"; }
					else if (selAVP==14) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Pampanga.wmv' width='400' height='315'"; }
					else if (selAVP==15) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Pangasinan.wmv' width='400' height='315'"; }
					str += "pluginspage='http://port25.technet.com/videos/downloads/wmpfirefoxplugin.exe'";
					str += "type='application/x-oleobject'";
					str += "autostart='false'";
					str += "loop='false'>";
					str += "</embed>";
					str += "</OBJECT";
					document.getElementById("avp").innerHTML = "";
					document.getElementById("avp").innerHTML = str;
	
					obj = document.getElementById('AVPvid');
					obj.uiMode='full';
				}
				else {
				//document.getElementById("avp").style.display="none";
					var str = "";
					if (selAVP==1) {	str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Communities.wmv' width='400' height='315'"; }
					else if (selAVP==2) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Leyte.wmv' width='400' height='315'"; }
					else if (selAVP==3) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Sto._Tomas.wmv' width='400' height='315'"; }
					else if (selAVP==4) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Crown_Residences.wmv' width='400' height='350'"; }
					else if (selAVP==5) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/North_Point.wmv' width='400' height='315'"; }
					else if (selAVP==6) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Naga.wmv' width='400' height='315'"; }
					else if (selAVP==7) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Gen_Santos.wmv' width='400' height='315'"; }
					else if (selAVP==8) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Davao.wmv' width='400' height='315'"; }
					else if (selAVP==9) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/CDO.wmv' width='400' height='315'"; }
					else if (selAVP==10) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Bacolod.wmv' width='400' height='315'"; }
					else if (selAVP==11) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Tarlac.wmv' width='400' height='315'"; }
					else if (selAVP==12) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Tuguegarao.wmv' width='400' height='315'"; }
					else if (selAVP==13) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Baliwag.wmv' width='400' height='315'"; }
					else if (selAVP==14) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Pampanga.wmv' width='400' height='315'"; }
					else if (selAVP==15) { str += "<embed id='avp2' src='http://www.camellacomm.com/avp/Camella_Pangasinan.wmv' width='400' height='315'"; }
					str += "pluginspage='http://port25.technet.com/videos/downloads/wmpfirefoxplugin.exe'";
					str += "type='application/x-oleobject'";
					str += "autostart='false'";
					str += "loop='false'>";
					str += "</embed>";
					try {
						document.getElementById("avp2").src = '';
						document.getElementById("avp2").stop();
					} catch (e) { }
				}
				selAVP = 0; 
		}
		else if (selAVP==0) { clearAVP(); }
        }
		
	function playAVPForIE7()
    {
    	try
		{
        	document.getElementById("avp2").play();
		} catch(e) {}
        
    }

	function playForIE7()
    {
    	try
		{
        	document.getElementById("movie2").play();
		} catch(e) {}
        
    }
        
    function playRadio(val)
    {
        var str="";
         str = "<OBJECT ID='mus' style='width:0px; height:0px;'";
                str+="classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'";
                str+="CODEBASE='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715'";
                str+="standby='Loading Microsoft Windows Media Player components...'";
                str+="TYPE='application/x-oleobject' width='239' height='179'>";
                if (val==1)
                {
                    str+="<PARAM NAME='FileName' VALUE='http://www.camellacomm.com/music_plug_in/Radio_Taguan_30s.mp3'>";
                }
                else if (val==2)
                {
                    str+="<PARAM NAME='FileName' VALUE='http://www.camellacomm.com/music_plug_in/Radio_Taxi_45s_Wonderful.mp3'>";
                }
                else if (val==4)
                {
                    str+="<PARAM NAME='FileName' VALUE='http://www.camellacomm.com/music_plug_in/bulilit_70s.mp3'>";
                }
                str+="<PARAM NAME='AnimationatStart' VALUE='false'>";
                str+="<PARAM NAME='TransparentatStart' VALUE='true'>";
                str+="<PARAM NAME='AutoStart' VALUE='true'>";
                str+="<PARAM NAME='ShowControls' VALUE='0'>";

                str+="<Embed id='mus2' style='width:0px; height:0px;' TYPE='application/x-mplayer2'";
                str+="pluginspage='http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&'";
                if (val==1)
                {
                    str+="SRC='http://www.camellacomm.com/music_plug_in/Radio_Taguan_30s.mp3'";
                }
                else if (val==2)
                {
                    str+="SRC='http://www.camellacomm.com/music_plug_in/Radio_Taxi_45s_Wonderful.mp3'";
                }
                else if (val==4)
                {
                    str+ "SRC='http://www.camellacomm.com/music_plug_in/bulilit_70s.mp3'";
                }
                str+="Name=MediaPlayer";
                str+="ShowControls=0";
                str+="Width=0";
                str+="Height=0";
                str+="</embed>";
                str+="</OBJECT>";
             if (val==3) {
                 
                document.getElementById("divradio").innerHTML="";
             }
             else {
                 try {
                     document.getElementById("mus").stop();
                 } catch (e) { }
                document.getElementById("divradio").innerHTML=str;
				
             }
    }
     
	 function listAds() {
		var str = "";
		str += "<table width='100%'><tr><td width='50%' style='text-align:center'><a href='javascript:void(0);' onclick='displayAd(1);'>";
		str += "<img src='http://www.camellacomm.com/printads/fa_frontdoor_tn.jpg' border='1'/></a></td><td width='50%' style='text-align:center'>";
		str += "<a href='javascript:void(0);' onclick='displayAd(2);'><img src='http://www.camellacomm.com/printads/fa_livingroom_tn.jpg' border='1'/></a></td></tr>";
		str += "<tr><td colspan='2' style='text-align:center'><br /><a href='javascript:void(0);' onclick='displayAd(3);'>";
		str += "<img src='http://www.camellacomm.com/printads/fa_bedroom_tn.jpg' border='1'/></a></td></tr></table><br /><br /><br /><br /><br /><br /><br />";
		document.getElementById("printAd").innerHTML=str;
		}

function displayAd(adNo) {
	 	var str = "";
		str += "";
		
		if (adNo==1) { str = "<a href='javascript:void(0);' onclick='listAds();'><img src='http://www.camellacomm.com/printads/fa_frontdoor.jpg' alt='click to go back' /></a>"; }
		else if (adNo==2) { str = "<a href='javascript:void(0);' onclick='listAds();'><img src='http://www.camellacomm.com/printads/fa_livingroom.jpg' alt='click to go back' /></a>"; }
		else if (adNo==3) { str = "<a href='javascript:void(0);' onclick='listAds();'><img src='http://www.camellacomm.com/printads/fa_bedroom.jpg' alt='click to go back'/></a>"; }
		
		document.getElementById("printAd").innerHTML=str;
	 }
	 
var ifAnimateStop = false;
function stopMusic() {
	try {
		document.getElementById("mus").stop();
	}
	catch (e) { }
	document.getElementById("musicPlug").innerHTML = "";
	ifAnimateStop=true;
	moviePlay();
	stopAVP();
}

function popupAVP(avpNo) {
	try {
		document.getElementById("mus").stop();
	}
	catch (e) { }
	document.getElementById("musicPlug").innerHTML = "";
	ifAnimateStop=true; 
	playSingleAVP(avpNo);
}

swfobject.registerObject("FlashID");
<!-- END OF SCRIPTS FOR ADS -->
