// JavaScript Document
function openWindow(URL, windowName, windowProperties) {
	newWindow = window.open(URL, windowName, windowProperties);
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_otherRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

var navtext = '<div id="nav"> \
<ul id="nav_main"> \
<li id="nm_begin"><a href="index.html">Base</a></li> \
<li class="nm"><a href="#">Sobre Nosotros</a> \
<ul> \
			<li><a href="our-mission.html">Nuestra Misi&oacute;n</a></li> \
			<li><a href="office-history.html">Historia de la Oficina</a></li> \
			<li><a href="prosecutor.html">Conozca al Fiscal</a></li> \
			<li><a href="employment.html">Empleo</a></li>	 \
		</ul> \
</li> \
<li class="nm"><a href="#">Seguridad</a> \
<ul> \
			<li><a href="child-safety.html">Protecci&oacute;n de los Ni&ntilde;os</a></li> \
			<li><a href="community-safety.html">Seguridad en la Comunidad</a></li>	 \
			<li><a href="gang-information.html">Informaci&oacute;n de Pandillas</a></li> \
			<li><a href="homeland-security.html">Seguridad Nacional</a></li> \
			<li><a href="identity-theft.html">Robo de Identidad</a></li> \
			<li><a href="internet-safety.html">Seguridad en el Internet</a></li> \
			<li><a href="unsolved-crimes.html">Cr&iacute;menes sin Resolver</a></li> \
			<li><a href="podcasts.html">Podcasts</a></li> \
		</ul> \
</li> \
<li class="nm"><a href="#">Investigaciones</a> \
<ul class="wider"> \
			<li><a href="computer-crimes.html">Delitos Cibern&eacute;ticos</a></li> \
			<li><a href="forensics.html">Bur&oacute; de Servicios T&eacute;cnicos y Forenses</a></li> \
			<li><a href="forfeiture.html">Confiscaci&oacute;n</a></li>	 \
			<li><a href="intelligence.html">Bur&oacute; de Inteligencia</a></li> \
			<li><a href="major-crimes.html">Bur&oacute; de Delitos Mayores</a></li> \
			<li><a href="narcotics.html">Bur&oacute; de Narc&oacute;ticos</a></li> \
			<li><a href="prof-bias-crimes.html">Bur&oacute; de Responsabilidad Profesional y Cr&iacute;menes de Prejuicio</a></li> \
			<li><a href="prosecution-support.html">Bur&oacute; de Apoyo al Procesamiento</a></li> \
			<li><a href="sex-crimes.html">Bur&oacute; de Cr&iacute;menes Sexuales</a></li> \
			<li><a href="special-projects.html">Proyectos Especiales</a></li> \
			<li><a href="special-prosecutions.html">Bur&oacute; de Procesamientos Especiales</a></li> \
		</ul> \
</li> \
<li class="nm"><a href="#">Proceso</a> \
<ul> \
			<li><a href="appellate.html">Apelaci&oacute;n</a></li> \
			<li><a href="family-division.html">Divisi&oacute;n de Familia</a></li> \
			<li><a href="screening.html">Evaluaci&oacute;n</a></li> \
			<li><a href="trial-division.html">Divisi&oacute;n de Juicio</a></li> \
			<li><a href="victim-witness.html">V&iacute;ctima / Testigo</a></li> \
		</ul> \
</li> \
<li class="nm"><a href="#">Proyectos</a> \
<ul> \
			<li><a href="cac.html">Centro de Defensa del Ni&ntilde;o en el Condado de Monmouth</a></li> \
			<li><a href="guns-for-cash.html">Armas por Dinero al Contado</a></li>	 \
			<li><a href="sane.html">S.A.N.E</a></li> \
		</ul> \
</li> \
<li class="nm"><a href="#">Noticias</a> \
<ul> \
			<li><a href="current-events.html">Eventos de Actualidad</a></li> \
			<li><a href="../press-releases.html">Comunicados De Prensa (En ingl&eacute;s)</a></li> \
		</ul> \
</li> \
<li class="nm"><a href="#">Preguntas</a> \
<ul> \
			<li><a href="faq-general.html">General</a></li> \
			<li><a href="faq-domestic-violence.html">Violencia Dom&eacute;stica</a></li> \
			<li><a href="faq-megans-law.html">La Ley De Megan</a></li> \
			<li><a href="faq-opra.html">OPRA</a></li> \
			<li><a href="faq-pti.html">PTI</a></li> \
			<li><a href="faq-sex-crimes.html">Cr&iacute;menes Sexuales</a></li> \
		</ul> \
</li> \
<li class="nm"><a href="kids/index.html">Para Ni&ntilde;os</a> \
</li> \
<li id="nm_endES"><a href="#">Contactos</a> \
<ul> \
			<li><a href="directions.html">Direcciones</a></li> \
			<li><a href="phone-directory.html">Directorio Telef&oacute;nico</a></li> \
			<li><a href="request-records.html">Solicitaci&oacute;n de Archivos (OPRA)</a></li> \
			<li><a href="police-departments.html">Departmentos de la Polic&iacute;a</a></li> \
			<li><a href="county-agencies.html">Agencias Del Condado</a></li>	 \
			<li><a href="related-links.html">Enlaces Relacionados</a></li> \
			<li><a href="online-tips.aspx">Para Reportar un Crimen En-L&Iacute;nea</a></li> \
		</ul> \
</li> \
</ul> \
</div>';

var subnavtext = '<div id="nav"> \
<ul id="nav_main"> \
<li id="nm_begin"><a href="../index.html">Base</a></li> \
<li class="nm"><a href="#">Sobre Nosotros</a> \
<ul> \
			<li><a href="../our-mission.html">Nuestra Misi&oacute;n</a></li> \
			<li><a href="../office-history.html">Historia de la Oficina</a></li> \
			<li><a href="../prosecutor.html">Conozca al Fiscal</a></li> \
			<li><a href="../employment.html">Empleo</a></li>	 \
		</ul> \
</li> \
<li class="nm"><a href="#">Seguridad</a> \
<ul> \
			<li><a href="../child-safety.html">Protecci&oacute;n de los Ni&ntilde;os</a></li> \
			<li><a href="../community-safety.html">Seguridad en la Comunidad</a></li>	 \
			<li><a href="../gang-information.html">Informaci&oacute;n de Pandillas</a></li> \
			<li><a href="../homeland-security.html">Seguridad Nacional</a></li> \
			<li><a href="../identity-theft.html">Robo de Identidad</a></li> \
			<li><a href="../internet-safety.html">Seguridad en el Internet</a></li> \
			<li><a href="../unsolved-crimes.html">Cr&iacute;menes sin Resolver</a></li> \
			<li><a href="../podcasts.html">Podcasts</a></li> \
		</ul> \
</li> \
<li class="nm"><a href="#">Investigaciones</a> \
<ul class="wider"> \
			<li><a href="../computer-crimes.html">Delitos Cibern&eacute;ticos</a></li> \
			<li><a href="../forensics.html">Bur&oacute; de Servicios T&eacute;cnicos y Forenses</a></li> \
			<li><a href="../forfeiture.html">Confiscaci&oacute;n</a></li>	 \
			<li><a href="../intelligence.html">Bur&oacute; de Inteligencia</a></li> \
			<li><a href="../major-crimes.html">Bur&oacute; de Delitos Mayores</a></li> \
			<li><a href="../narcotics.html">Bur&oacute; de Narc&oacute;ticos</a></li> \
			<li><a href="../prof-bias-crimes.html">Bur&oacute; de Responsabilidad Profesional y Cr&iacute;menes de Prejuicio</a></li> \
			<li><a href="../prosecution-support.html">Bur&oacute; de Apoyo al Procesamiento</a></li> \
			<li><a href="../sex-crimes.html">Bur&oacute; de Cr&iacute;menes Sexuales</a></li> \
			<li><a href="../special-projects.html">Proyectos Especiales</a></li> \
			<li><a href="../special-prosecutions.html">Bur&oacute; de Procesamientos Especiales</a></li> \
		</ul> \
</li> \
<li class="nm"><a href="#">Proceso</a> \
<ul> \
			<li><a href="../appellate.html">Apelaci&oacute;n</a></li> \
			<li><a href="../family-division.html">Divisi&oacute;n de Familia</a></li> \
			<li><a href="../screening.html">Evaluaci&oacute;n</a></li> \
			<li><a href="../trial-division.html">Divisi&oacute;n de Juicio</a></li> \
			<li><a href="../victim-witness.html">V&iacute;ctima / Testigo</a></li> \
		</ul> \
</li> \
<li class="nm"><a href="#">Proyectos</a> \
<ul> \
			<li><a href="../cac.html">Centro de Defensa del Ni&ntilde;o en el Condado de Monmouth</a></li> \
			<li><a href="../guns-for-cash.html">Armas por Dinero al Contado</a></li>	 \
			<li><a href="../sane.html">S.A.N.E</a></li> \
		</ul> \
</li> \
<li class="nm"><a href="#">Noticias</a> \
<ul> \
			<li><a href="../current-events.html">Eventos de Actualidad</a></li> \
			<li><a href="../../press-releases.html">Comunicados De Prensa (En ingl&eacute;s)</a></li> \
		</ul> \
</li> \
<li class="nm"><a href="#">Preguntas</a> \
<ul> \
			<li><a href="../faq-general.html">General</a></li> \
			<li><a href="../faq-domestic-violence.html">Violencia Dom&eacute;stica</a></li> \
			<li><a href="../faq-megans-law.html">La Ley De Megan</a></li> \
			<li><a href="../faq-opra.html">OPRA</a></li> \
			<li><a href="../faq-pti.html">PTI</a></li> \
			<li><a href="../faq-sex-crimes.html">Cr&iacute;menes Sexuales</a></li> \
		</ul> \
</li> \
<li class="nm"><a href="../kids/index.html">Para Ni&ntilde;os</a> \
</li> \
<li id="nm_endES"><a href="#">Contactos</a> \
<ul> \
			<li><a href="../directions.html">Direcciones</a></li> \
			<li><a href="../phone-directory.html">Directorio Telef&oacute;nico</a></li> \
			<li><a href="../request-records.html">Solicitaci&oacute;n de Archivos (OPRA)</a></li> \
			<li><a href="../police-departments.html">Departmentos de la Polic&iacute;a</a></li> \
			<li><a href="../county-agencies.html">Agencias Del Condado</a></li>	 \
			<li><a href="../related-links.html">Enlaces Relacionados</a></li> \
			<li><a href="../online-tips.aspx">Para Reportar un Crimen En-L&Iacute;nea</a></li> \
		</ul> \
</li> \
</ul> \
</div>';


var pressnavtext = '<div id="nav"> \
<ul id="nav_main"> \
<li id="nm_begin"><a href="../../../index.html">Base</a></li> \
<li class="nm"><a href="#">Sobre Nosotros</a> \
<ul> \
			<li><a href="../../../our-mission.html">Nuestra Misi&oacute;n</a></li> \
			<li><a href="../../../office-history.html">Historia de la Oficina</a></li> \
			<li><a href="../../../prosecutor.html">Conozca al Fiscal</a></li> \
			<li><a href="../../../employment.html">Empleo</a></li>	 \
		</ul> \
</li> \
<li class="nm"><a href="#">Seguridad</a> \
<ul> \
			<li><a href="../../../child-safety.html">Protecci&oacute;n de los Ni&ntilde;os</a></li> \
			<li><a href="../../../community-safety.html">Seguridad en la Comunidad</a></li>	 \
			<li><a href="../../../gang-information.html">Informaci&oacute;n de Pandillas</a></li> \
			<li><a href="../../../homeland-security.html">Seguridad Nacional</a></li> \
			<li><a href="../../../identity-theft.html">Robo de Identidad</a></li> \
			<li><a href="../../../internet-safety.html">Seguridad en el Internet</a></li> \
			<li><a href="../../../unsolved-crimes.html">Cr&iacute;menes sin Resolver</a></li> \
			<li><a href="../../../podcasts.html">Podcasts</a></li> \
		</ul> \
</li> \
<li class="nm"><a href="#">Investigaciones</a> \
<ul class="wider"> \
			<li><a href="../../../computer-crimes.html">Delitos Cibern&eacute;ticos</a></li> \
			<li><a href="../../../forensics.html">Bur&oacute; de Servicios T&eacute;cnicos y Forenses</a></li> \
			<li><a href="../../../forfeiture.html">Confiscaci&oacute;n</a></li>	 \
			<li><a href="../../../intelligence.html">Bur&oacute; de Inteligencia</a></li> \
			<li><a href="../../../major-crimes.html">Bur&oacute; de Delitos Mayores</a></li> \
			<li><a href="../../../narcotics.html">Bur&oacute; de Narc&oacute;ticos</a></li> \
			<li><a href="../../../prof-bias-crimes.html">Bur&oacute; de Responsabilidad Profesional y Cr&iacute;menes de Prejuicio</a></li> \
			<li><a href="../../../prosecution-support.html">Bur&oacute; de Apoyo al Procesamiento</a></li> \
			<li><a href="../../../sex-crimes.html">Bur&oacute; de Cr&iacute;menes Sexuales</a></li> \
			<li><a href="../../../special-projects.html">Proyectos Especiales</a></li> \
			<li><a href="../../../special-prosecutions.html">Bur&oacute; de Procesamientos Especiales</a></li> \
		</ul> \
</li> \
<li class="nm"><a href="#">Proceso</a> \
<ul> \
			<li><a href="../../../appellate.html">Apelaci&oacute;n</a></li> \
			<li><a href="../../../family-division.html">Divisi&oacute;n de Familia</a></li> \
			<li><a href="../../../screening.html">Evaluaci&oacute;n</a></li> \
			<li><a href="../../../trial-division.html">Divisi&oacute;n de Juicio</a></li> \
			<li><a href="../../../victim-witness.html">V&iacute;ctima / Testigo</a></li> \
		</ul> \
</li> \
<li class="nm"><a href="#">Proyectos</a> \
<ul> \
			<li><a href="../../../cac.html">Centro de Defensa del Ni&ntilde;o en el Condado de Monmouth</a></li> \
			<li><a href="../../../guns-for-cash.html">Armas por Dinero al Contado</a></li>	 \
			<li><a href="../../../sane.html">S.A.N.E</a></li> \
		</ul> \
</li> \
<li class="nm"><a href="#">Noticias</a> \
<ul> \
			<li><a href="../../../current-events.html">Eventos de Actualidad</a></li> \
			<li><a href="../../../../press-releases.html">Comunicados De Prensa (En ingl&eacute;s)</a></li> \
		</ul> \
</li> \
<li class="nm"><a href="#">Preguntas</a> \
<ul> \
			<li><a href="../../../faq-general.html">General</a></li> \
			<li><a href="../../../faq-domestic-violence.html">Violencia Dom&eacute;stica</a></li> \
			<li><a href="../../../faq-megans-law.html">La Ley De Megan</a></li> \
			<li><a href="../../../faq-opra.html">OPRA</a></li> \
			<li><a href="../../../faq-pti.html">PTI</a></li> \
			<li><a href="../../../faq-sex-crimes.html">Cr&iacute;menes Sexuales</a></li> \
		</ul> \
</li> \
<li class="nm"><a href="../../../kids/index.html">Para Ni&ntilde;os</a> \
</li> \
<li id="nm_endES"><a href="#">Contactos</a> \
<ul> \
			<li><a href="../../../directions.html">Direcciones</a></li> \
			<li><a href="../../../phone-directory.html">Directorio Telef&oacute;nico</a></li> \
			<li><a href="../../../request-records.html">Solicitaci&oacute;n de Archivos (OPRA)</a></li> \
			<li><a href="../../../police-departments.html">Departmentos de la Polic&iacute;a</a></li> \
			<li><a href="../../../county-agencies.html">Agencias Del Condado</a></li>	 \
			<li><a href="../../../related-links.html">Enlaces Relacionados</a></li> \
			<li><a href="../../../online-tips.aspx">Para Reportar un Crimen En-L&Iacute;nea</a></li> \
		</ul> \
</li> \
</ul> \
</div>';


var kidsnavtext = '<div id="nav"> \
<ul id="nav_main"> \
<li id="nm_begin"><a href="index.html">Base</a></li> \
<li class="nm"><a href="kids-safety.html">Seguridad del Internet</a></li> \
<li class="nm"><a href="kids-faq.html">Preguntas</a></li> \
<li class="nm"><a href="kids-links.html">Enlaces</a></li> \
<li class="nmspace">&nbsp;</li> \
<li class="nm"><a href="../index.html">Regresar al Sitio del Fiscal del Condado de Monmouth</a></li> \
</ul> \
</div>';



/*
Live Date Script- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use,
visit http://www.dynamicdrive.com
*/


var dayarray=new Array("domingo","lunes","martes","mi&eacute;rcoles","jueves","viernes","s&aacute;bado")
var montharray=new Array("enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre")

function getthedate1(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here
var cdate1=""+dayarray[day]+","+daym+" de "+montharray[month]+", "+year
if (document.all)
document.all.clock1.innerHTML=cdate1
else if (document.getElementById)
document.getElementById("clock1").innerHTML=cdate1
else
document.write(cdate1)
}
if (!document.all&&!document.getElementById)
getthedate1()
function goforit1(){
if (document.all||document.getElementById)
setInterval("getthedate1()",1000)
}


/*
Live Date Script- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use,
visit http://www.dynamicdrive.com
*/


var dayarray=new
Array("domingo","lunes","martes","mi&eacute;rcoles","jueves","viernes","s&aacute;bado")
var montharray=new Array("enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre")

function getthedate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here
var cdate=""+dayarray[day]+", "+daym+" de "+montharray[month]+", "+year+" "+hours+":"+minutes+":"+seconds+" "+dn
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function goforit(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
}


/**
 * FlashObject v1.2.3: Flash detection and embed - http://blog.deconcept.com/flashobject/
 *
 * FlashObject is (c) 2005 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof com == "undefined") var com = new Object();
if(typeof com.deconcept == "undefined") com.deconcept = new Object();
if(typeof com.deconcept.util == "undefined") com.deconcept.util = new Object();
if(typeof com.deconcept.FlashObjectUtil == "undefined") com.deconcept.FlashObjectUtil = new Object();
com.deconcept.FlashObject = function(swf, id, w, h, ver, c, useExpressInstall, quality, redirectUrl, detectKey){
   this.DETECT_KEY = detectKey ? detectKey : 'detectflash';
   this.skipDetect = com.deconcept.util.getRequestParameter(this.DETECT_KEY);
   this.params = new Object();
   this.variables = new Object();
   this.attributes = new Array();

   if(swf) this.setAttribute('swf', swf);
   if(id) this.setAttribute('id', id);
   if(w) this.setAttribute('width', w);
   if(h) this.setAttribute('height', h);
   if(ver) this.setAttribute('version', new com.deconcept.PlayerVersion(ver.toString().split(".")));
   if(c) this.addParam('bgcolor', c);
   var q = quality ? quality : 'high';
   this.addParam('quality', q);
   this.setAttribute('redirectUrl', '');
   if(redirectUrl) this.setAttribute('redirectUrl', redirectUrl);
   if(useExpressInstall) {
   // check to see if we need to do an express install
   var expressInstallReqVer = new com.deconcept.PlayerVersion([6,0,65]);
   var installedVer = com.deconcept.FlashObjectUtil.getPlayerVersion();
      if (installedVer.versionIsValid(expressInstallReqVer) && !installedVer.versionIsValid(this.getAttribute('version'))) {
         this.setAttribute('doExpressInstall', true);
      }
   } else {
      this.setAttribute('doExpressInstall', false);
   }
}
com.deconcept.FlashObject.prototype.setAttribute = function(name, value){
	this.attributes[name] = value;
}
com.deconcept.FlashObject.prototype.getAttribute = function(name){
	return this.attributes[name];
}
com.deconcept.FlashObject.prototype.getAttributes = function(){
	return this.attributes;
}
com.deconcept.FlashObject.prototype.addParam = function(name, value){
	this.params[name] = value;
}
com.deconcept.FlashObject.prototype.getParams = function(){
	return this.params;
}
com.deconcept.FlashObject.prototype.getParam = function(name){
	return this.params[name];
}
com.deconcept.FlashObject.prototype.addVariable = function(name, value){
	this.variables[name] = value;
}
com.deconcept.FlashObject.prototype.getVariable = function(name){
	return this.variables[name];
}
com.deconcept.FlashObject.prototype.getVariables = function(){
	return this.variables;
}
com.deconcept.FlashObject.prototype.getParamTags = function(){
   var paramTags = ""; var key; var params = this.getParams();
   for(key in params) {
        paramTags += '<param name="' + key + '" value="' + params[key] + '" />';
    }
   return paramTags;
}
com.deconcept.FlashObject.prototype.getVariablePairs = function(){
	var variablePairs = new Array();
	var key;
	var variables = this.getVariables();
	for(key in variables){
		variablePairs.push(key +"="+ variables[key]);
	}
	return variablePairs;
}
com.deconcept.FlashObject.prototype.getHTML = function() {
    var flashHTML = "";
    if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture
        if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "PlugIn"); }
        flashHTML += '<embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'"wmode=transparent height="'+ this.getAttribute('height') +'" id="'+ this.getAttribute('id') + '" name="'+ this.getAttribute('id') +'"';
		var params = this.getParams();
        for(var key in params){ flashHTML += ' '+ key +'="'+ params[key] +'"'; }
		pairs = this.getVariablePairs().join("&");
        if (pairs.length > 0){ flashHTML += ' flashvars="'+ pairs +'"'; }
        flashHTML += '></embed>';
    } else { // PC IE
        if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "ActiveX"); }
        flashHTML += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" id="'+ this.getAttribute('id') +'">';
        flashHTML += '<param name="movie" value="' + this.getAttribute('swf') + '" />';
		var tags = this.getParamTags();
        if(tags.length > 0){ flashHTML += tags; }
		var pairs = this.getVariablePairs().join("&");
        if(pairs.length > 0){ flashHTML += '<param name="flashvars" value="'+ pairs +'" />'; }
        flashHTML += '</object>';
    }
    return flashHTML;
}
com.deconcept.FlashObject.prototype.write = function(elementId){
	if(this.skipDetect || this.getAttribute('doExpressInstall') || com.deconcept.FlashObjectUtil.getPlayerVersion().versionIsValid(this.getAttribute('version'))){
		if(document.getElementById){
		   if (this.getAttribute('doExpressInstall')) {
		      this.addVariable("MMredirectURL", escape(window.location));
		      document.title = document.title.slice(0, 47) + " - Flash Player Installation";
		      this.addVariable("MMdoctitle", document.title);
		   }
			document.getElementById(elementId).innerHTML = this.getHTML();
		}
	}else{
		if(this.getAttribute('redirectUrl') != "") {
			document.location.replace(this.getAttribute('redirectUrl'));
		}
	}
}
/* ---- detection functions ---- */
com.deconcept.FlashObjectUtil.getPlayerVersion = function(){
   var PlayerVersion = new com.deconcept.PlayerVersion(0,0,0);
	if(navigator.plugins && navigator.mimeTypes.length){
		var x = navigator.plugins["Shockwave Flash"];
		if(x && x.description) {
			PlayerVersion = new com.deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));
		}
	}else if (window.ActiveXObject){
	   try {
   	   var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
   		PlayerVersion = new com.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
	   } catch (e) {}
	}
	return PlayerVersion;
}
com.deconcept.PlayerVersion = function(arrVersion){
	this.major = parseInt(arrVersion[0]) || 0;
	this.minor = parseInt(arrVersion[1]) || 0;
	this.rev = parseInt(arrVersion[2]) || 0;
}
com.deconcept.PlayerVersion.prototype.versionIsValid = function(fv){
	if(this.major < fv.major) return false;
	if(this.major > fv.major) return true;
	if(this.minor < fv.minor) return false;
	if(this.minor > fv.minor) return true;
	if(this.rev < fv.rev) return false;
	return true;
}
/* ---- get value of query string param ---- */
com.deconcept.util.getRequestParameter = function(param){
	var q = document.location.search || document.location.href.hash;
	if(q){
		var startIndex = q.indexOf(param +"=");
		var endIndex = (q.indexOf("&", startIndex) > -1) ? q.indexOf("&", startIndex) : q.length;
		if (q.length > 1 && startIndex > -1) {
			return q.substring(q.indexOf("=", startIndex)+1, endIndex);
		}
	}
	return "";
}

/* add Array.push if needed (ie5) */
if (Array.prototype.push == null) { Array.prototype.push = function(item) { this[this.length] = item; return this.length; }}

/* add some aliases for ease of use / backwards compatibility */
var getQueryParamValue = com.deconcept.util.getRequestParameter;
var FlashObject = com.deconcept.FlashObject;


/* ---- Hit Counters ---- */

var pagetitle = document.title; //INSERT CUSTOM PAGE NAME IN QUOTES
var action = ""; //ACTION CODE
var amount = "0"; //ACTION AMOUNT (LEAVE BLANK OR 0 IF NO AMOUNT)
var order = ""; //INSERT UNIQUE ORDER NUMBER
 
var scriptlocation = "/metatraffic2/track.asp";
 
var pagedata = 'mtpt=' + escape(pagetitle) + '&mtac=' + escape(action) + '&mta=' + amount + '&mto=' + escape(order) + '&mtr=' + escape(document.referrer) + '&mtt=2&mts=' + window.screen.width + 'x' + window.screen.height + '&mti=1&mtz=' + Math.random(); 
document.write ('<img height=1 width=1 ');
document.write ('src="' + scriptlocation + '?' + pagedata + '">');

