var g_submenu = new Object();
var g_submenu_enabled = new Object();
var g_subtim = new Object();
var timeout_ms = 100;

var s_highlight_color = "#fffeaa";

g_submenu["nvabtm"]=false;
g_submenu["nvchdm"]=false;
g_submenu["nvythm"]=false;
g_submenu["nvadtm"]=false;
g_submenu["nvmism"]=false;
g_submenu["nvworm"]=false;

g_submenu_enabled["nvabtm"]=false;
g_submenu_enabled["nvchdm"]=false;
g_submenu_enabled["nvythm"]=false;
g_submenu_enabled["nvadtm"]=false;
g_submenu_enabled["nvmism"]=false;
g_submenu_enabled["nvworm"]=false;
var t;
//setTimeout("timedCount()",1000)

function isNumeric(sText)
{
	var ValidChars = "-0123456789.";
	var IsNumber=true;
	var Char;


	for (i = 0; i < sText.length && IsNumber == true; i++){ 
		Char = sText.charAt(i); 
		if (ValidChars.indexOf(Char) == -1){
			IsNumber = false;
		}
	}
	return IsNumber;
}

function check_frm1(sid){
	var bgood = true;
	if(isDate($(sid).value)){
		if(trim($(sid+"_description").value)==""){
			alert("The description field is required.");
			bgood = false;
		}
	}else{
		alert("The date field is formatted incorrectly.  Please use MM/DD/YYYY");
		bgood = false;
	}
	return bgood;
	
	
}
function check_frm5(sid){
	var bgood = true;
	if(isNumeric($(sid).value)){
		if(trim($(sid+"_description").value)==""){
			alert("The description field is required.");
			bgood = false;
		}
	}else{
		alert("The \"NUM\" field must be a number.");
		bgood = false;
	}
	return bgood;
	
	
}
function check_frm6(sid){
	var bgood = true;
	if(trim($("thefile_"+sid).value)!=""){

	}else{
		alert("You must select a PDF file first.");
		bgood = false;
	}
	return bgood;
	
	
}
function isDate(sDate) {
	var scratch = new Date(sDate);
	if (scratch.toString() == "NaN" || scratch.toString() == "Invalid Date") {
		return false;
	} else {
		return true;
	}
}

function bpos(img,nx,ny){img.style.backgroundPosition=nx+'px '+ny+'px';}
function reg_test(s, p){return new RegExp(p).test(s);}
function trim(s){return s.replace(/^\s+|\s+$/g,"");}
function isemail(s){return reg_test(s,'^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+@[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$');}
function isabsurl(s){return reg_test(s, '^(news|telnet|nttp|file|http|ftp|https)://[-A-Za-z0-9\\.]+\\/?.*$');}
function gxho(){var xhp=null;try{xhp=new XMLHttpRequest();}catch(e){try{xhp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e){xhp=new ActiveXObject("Microsoft.XMLHTTP");}}return xhp;}

function nvmnulout(e){
	if (!e) var e = window.event;
	var relTarg = e.relatedTarget || e.toElement;
	if(this.getAttribute("rel")!=relTarg.id){
		g_submenu[this.getAttribute("rel")] = true;
		this.style.color="#403730";
		this.style.backgroundColor="transparent";
		$(this.getAttribute("rel")).style.display="none";
	}else{
		$(this.getAttribute("rel")).style.display="block";
		this.style.color="#a33f01";
		this.style.backgroundColor="#fff";
	}
}
function checkState(){
	if(g_submenu_enabled["nvabtm"]){
		if(g_submenu["nvabtm"]){
			g_submenu["nvabtm"]=false;
			clearTimeout(g_subtim["nvabtm"]);
			g_submenu_enabled["nvabtm"] = false;
			$("nvabtl").style.color="#403730";
			$("nvabtl").style.backgroundColor="transparent";
			$("nvabtm").style.display="none";
		}else{
			g_subtim["nvabtm"] = setTimeout("checkState()",timeout_ms);
		}
	}
	if(g_submenu_enabled["nvchdm"]){
		if(g_submenu["nvchdm"]){
			g_submenu["nvchdm"]=false;
			clearTimeout(g_subtim["nvchdm"]);
			g_submenu_enabled["nvchdm"] = false;
			$("nvchdl").style.color="#403730";
			$("nvchdl").style.backgroundColor="transparent";
			$("nvchdm").style.display="none";
		}else{
			g_subtim["nvchdm"] = setTimeout("checkState()",timeout_ms);
		}
	}
	if(g_submenu_enabled["nvythm"]){
		if(g_submenu["nvythm"]){
			g_submenu["nvythm"]=false;
			clearTimeout(g_subtim["nvythm"]);
			g_submenu_enabled["nvythm"] = false;
			$("nvythl").style.color="#403730";
			$("nvythl").style.backgroundColor="transparent";
			$("nvythm").style.display="none";
		}else{
			g_subtim["nvythm"] = setTimeout("checkState()",timeout_ms);
		}
	}
	if(g_submenu_enabled["nvadtm"]){
		if(g_submenu["nvadtm"]){
			g_submenu["nvadtm"]=false;
			clearTimeout(g_subtim["nvadtm"]);
			g_submenu_enabled["nvadtm"] = false;
			$("nvadtl").style.color="#403730";
			$("nvadtl").style.backgroundColor="transparent";
			$("nvadtm").style.display="none";
		}else{
			g_subtim["nvadtm"] = setTimeout("checkState()",timeout_ms);
		}
	}
	if(g_submenu_enabled["nvmism"]){
		if(g_submenu["nvmism"]){
			g_submenu["nvmism"]=false;
			clearTimeout(g_subtim["nvmism"]);
			g_submenu_enabled["nvmism"] = false;
			$("nvmisl").style.color="#403730";
			$("nvmisl").style.backgroundColor="transparent";
			$("nvmism").style.display="none";
		}else{
			g_subtim["nvmism"] = setTimeout("checkState()",timeout_ms);
		}
	}
	if(g_submenu_enabled["nvworm"]){
		if(g_submenu["nvworm"]){
			g_submenu["nvworm"]=false;
			clearTimeout(g_subtim["nvworm"]);
			g_submenu_enabled["nvworm"] = false;
			$("nvworl").style.color="#403730";
			$("nvworl").style.backgroundColor="transparent";
			$("nvworm").style.display="none";
		}else{
			g_subtim["nvworm"] = setTimeout("checkState()",timeout_ms);
		}
	}
}
function nvmnulover(){
	g_submenu_enabled[this.getAttribute("rel")] = true;
	g_submenu[this.getAttribute("rel")] = false;
	clearTimeout(g_subtim[this.getAttribute("rel")]);
	g_subtim[this.getAttribute("rel")] = setTimeout("checkState()",timeout_ms);
	this.style.color="#a33f01";
	this.style.backgroundColor="#fff";
	$(this.getAttribute("rel")).style.display="block";
}
function nvmnuover(e){
	g_submenu_enabled[this.id] = true;
	g_submenu[this.id] = false;
	clearTimeout(g_subtim[this.id]);
	g_subtim[this.id] = setTimeout("checkState()",timeout_ms);
	this.style.display="block";
	$(this.getAttribute("rel")).style.color="#a33f01";
	$(this.getAttribute("rel")).style.backgroundColor="#fff";
}
function nvmnuout(e){
	g_submenu_enabled[this.id] = true;
	g_submenu[this.id] = true;
}
function nl_signup(){
	var el1=$("c28");
	var el1v=el1.value;
	if(isemail(el1v)){
		//$("nlinner").innerHTML=String.fromCharCode(60)+"p class=\"c47\""+String.fromCharCode(62)+"Submitting..."+String.fromCharCode(60)+"/p"+String.fromCharCode(62);
		$("nlform").style.display = "none";
		$("nlsubmitting").style.display = "block";
		var pstr1;
		pstr1="feml="+encodeURIComponent(el1v);
		var xhp = gxho();
		xhp.onreadystatechange = function(){
			if(xhp.readyState==4){
				$("nlsubmitting").style.display = "none";
				$("nlthankyou").style.display = "block";
			}
		};
		xhp.open("POST", g_r+"nl_submit.asp", true);
		xhp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		xhp.setRequestHeader("Content-length", pstr1.length);
		xhp.setRequestHeader("Connection", "close");
		xhp.send(pstr1);
	}else{
		el1.style.borderColor = "#a6dc00";
		el1.style.backgroundColor = "#e0dfd7";
	}
	return false;
}
function sub_frm2(){
	$("lala2").value = "good";
	var b_good = true;
	var s_firstname = trim($("frm2_frmfirstname").value);
	var s_lastname = trim($("frm2_frmlastname").value);
	var s_oldaddress1 = trim($("frm2_old_frmaddress1").value);
	var s_oldaddress2 = trim($("frm2_old_frmaddress2").value);
	var s_oldcity = trim($("frm2_old_frmcity").value);
	var s_oldstate = trim($("frm2_old_frmstate").value);
	var s_oldzip = trim($("frm2_old_frmzip").value);
	var s_newaddress1 = trim($("frm2_new_frmaddress1").value);
	var s_newaddress2 = trim($("frm2_new_frmaddress2").value);
	var s_newcity = trim($("frm2_new_frmcity").value);
	var s_newstate = trim($("frm2_new_frmstate").value);
	var s_newzip = trim($("frm2_new_frmzip").value);
	if(s_firstname==""){
		$("frm2_frmfirstname").parentNode.style.backgroundColor = $("frm2_frmfirstname").style.backgroundColor = s_highlight_color;
		b_good = false;
	}else{
		$("frm2_frmfirstname").parentNode.style.backgroundColor = $("frm2_frmfirstname").style.backgroundColor = "#fff";
	}
	if(s_lastname==""){
		$("frm2_frmlastname").parentNode.style.backgroundColor = $("frm2_frmlastname").style.backgroundColor = s_highlight_color;
		b_good = false;
	}else{
		$("frm2_frmlastname").parentNode.style.backgroundColor = $("frm2_frmlastname").style.backgroundColor = "#fff";
	}
	if(s_oldaddress1==""){
		$("frm2_old_frmaddress1").parentNode.style.backgroundColor = $("frm2_old_frmaddress1").style.backgroundColor = s_highlight_color;
		b_good = false;
	}else{
		$("frm2_old_frmaddress1").parentNode.style.backgroundColor = $("frm2_old_frmaddress1").style.backgroundColor = "#fff";
	}
	
	if(s_oldaddress2==""){
		$("frm2_old_frmaddress2").parentNode.style.backgroundColor = $("frm2_old_frmaddress2").style.backgroundColor = s_highlight_color;
		b_good = false;
	}else{
		$("frm2_old_frmaddress2").parentNode.style.backgroundColor = $("frm2_old_frmaddress2").style.backgroundColor = "#fff";
	}
	if(s_oldcity==""){
		$("frm2_old_frmcity").parentNode.style.backgroundColor = $("frm2_old_frmcity").style.backgroundColor = s_highlight_color;
		b_good = false;
	}else{
		$("frm2_old_frmcity").parentNode.style.backgroundColor = $("frm2_old_frmcity").style.backgroundColor = "#fff";
	}
	
	if(s_oldstate==""){
		$("frm2_old_frmstate").parentNode.style.backgroundColor = $("frm2_old_frmstate").style.backgroundColor = s_highlight_color;
		b_good = false;
	}else{
		$("frm2_old_frmstate").parentNode.style.backgroundColor = $("frm2_old_frmstate").style.backgroundColor = "#fff";
	}
	if(s_oldzip==""){
		$("frm2_old_frmzip").parentNode.style.backgroundColor = $("frm2_old_frmzip").style.backgroundColor = s_highlight_color;
		b_good = false;
	}else{
		$("frm2_old_frmzip").parentNode.style.backgroundColor = $("frm2_old_frmzip").style.backgroundColor = "#fff";
	}
	
	if(s_newaddress1==""){
		$("frm2_new_frmaddress1").parentNode.style.backgroundColor = $("frm2_new_frmaddress1").style.backgroundColor = s_highlight_color;
		b_good = false;
	}else{
		$("frm2_new_frmaddress1").parentNode.style.backgroundColor = $("frm2_new_frmaddress1").style.backgroundColor = "#fff";
	}
	if(s_newaddress2==""){
		$("frm2_new_frmaddress2").parentNode.style.backgroundColor = $("frm2_new_frmaddress2").style.backgroundColor = s_highlight_color;
		b_good = false;
	}else{
		$("frm2_new_frmaddress2").parentNode.style.backgroundColor = $("frm2_new_frmaddress2").style.backgroundColor = "#fff";
	}
	if(s_newcity==""){
		$("frm2_new_frmcity").parentNode.style.backgroundColor = $("frm2_new_frmcity").style.backgroundColor = s_highlight_color;
		b_good = false;
	}else{
		$("frm2_new_frmcity").parentNode.style.backgroundColor = $("frm2_new_frmcity").style.backgroundColor = "#fff";
	}
	if(s_newstate==""){
		$("frm2_new_frmstate").parentNode.style.backgroundColor = $("frm2_new_frmstate").style.backgroundColor = s_highlight_color;
		b_good = false;
	}else{
		$("frm2_new_frmstate").parentNode.style.backgroundColor = $("frm2_new_frmstate").style.backgroundColor = "#fff";
	}
	if(s_newzip==""){
		$("frm2_new_frmzip").parentNode.style.backgroundColor = $("frm2_new_frmzip").style.backgroundColor = s_highlight_color;
		b_good = false;
	}else{
		$("frm2_new_frmzip").parentNode.style.backgroundColor = $("frm2_new_frmzip").style.backgroundColor = "#fff";
	}
	
	var s_firstname = trim($("frm2_frmfirstname").value);
	var s_lastname = trim($("frm2_frmlastname").value);
	var s_oldaddress1 = trim($("frm2_old_frmaddress1").value);
	var s_oldaddress2 = trim($("frm2_old_frmaddress2").value);
	var s_oldcity = trim($("frm2_old_frmcity").value);
	var s_oldstate = trim($("frm2_old_frmstate").value);
	var s_oldzip = trim($("frm2_old_frmzip").value);
	var s_newaddress1 = trim($("frm2_new_frmaddress1").value);
	var s_newaddress2 = trim($("frm2_new_frmaddress2").value);
	var s_newcity = trim($("frm2_new_frmcity").value);
	var s_newstate = trim($("frm2_new_frmstate").value);
	var s_newzip = trim($("frm2_new_frmzip").value);
	
	
	if(b_good){
		s_subject = "Electronic Mailing Address Change From " + g_d;
s_body = "FIRST NAME: "+s_firstname+"\nLAST NAME: "+s_lastname+"\n\n\nOLD MAILING ADDRESS:\n\n"+s_oldaddress1+"\n"+s_oldaddress2+
"\n"+s_oldcity+", "+s_oldstate+", "+s_oldzip+"\n\n\nNEW MAILING ADDRESS:\n\n"+s_newaddress1+"\n"+s_newaddress2+
"\n"+s_newcity+", "+s_newstate+", "+s_newzip;
		send_contact_message(2,s_body,s_subject,$("form2win"),$("form2sending"));
	}
	
	return false;
}

function sub_frm1(){
	$("lala1").value = "good";
	var s_name = trim($("frm1_frmname").value);
	var s_email = trim($("frm1_frmemail").value);
	var s_message = trim($("frm1_frmmessage").value);
	var s_subject;
	var s_body;
	var b_good = true;
	if(!isemail(s_email)){
		$("frm1_frmemail").parentNode.style.backgroundColor = $("frm1_frmemail").style.backgroundColor = s_highlight_color;
		b_good = false;
	}else{
		$("frm1_frmemail").parentNode.style.backgroundColor = $("frm1_frmemail").style.backgroundColor = "#fff";
	}
	
	if(s_name==""){
		$("frm1_frmname").parentNode.style.backgroundColor = $("frm1_frmname").style.backgroundColor = s_highlight_color;
		b_good = false;
	}else{
		$("frm1_frmname").parentNode.style.backgroundColor = $("frm1_frmname").style.backgroundColor = "#fff";
	}
	
	if(s_message==""){
		$("frm1_frmmessage").parentNode.style.backgroundColor = $("frm1_frmmessage").style.backgroundColor = s_highlight_color;
		b_good = false;
	}else{
		$("frm1_frmmessage").parentNode.style.backgroundColor = $("frm1_frmmessage").style.backgroundColor = "#fff";
	}
	
	
	if(b_good){
		s_subject = "Electronic Message From " + g_d;
		s_body = "EMAIL: "+s_email+"\n\nNAME: "+s_name+"\n\nMESSAGE:\n\n\n"+s_message;
		send_contact_message(1,s_body,s_subject,$("form1win"),$("form1sending"));
	}
	
	return false;
}
function sermon_remove(nid,num1,skey){if(confirm("Are you sure you want to remove this Sermon?\n\nIf yes, the files will remain available.")){location.href=g_r+"admin/removesermon.asp?num1="+num1+"&k="+skey+"&n="+nid;}}
function multimedia_remove(nid,num1,skey){if(confirm("Are you sure you want to remove this Multimedia item?\n\nIf yes, the files will remain available.")){location.href=g_r+"admin/removemultimedia.asp?num1="+num1+"&k="+skey+"&n="+nid;}}
function send_contact_message(nid,smessage,ssubject,obj1,obj2){
	
	obj1.style.display = "none";
	obj2.style.display = "block";
	
	var pstr="frmnum="+encodeURIComponent(nid)+"&fmsg="+encodeURIComponent(smessage)+"&fsub="+encodeURIComponent(ssubject);
	var xhp=gxho();
	xhp.onreadystatechange=function(){
		if(xhp.readyState==4){
			obj2.innerHTML=xhp.responseText;
		}
	};
	xhp.open("POST",g_r+"send_message.asp",true);
	xhp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	xhp.setRequestHeader("Content-length",pstr.length);
	xhp.setRequestHeader("Connection","close");
	xhp.send(pstr);
}

function eml1(){location.href="mailt"+"o:sale"+"mucc"+"@attglob"+"al.net";return false;}
function eml2(){location.href="mailt"+"o:sal"+"emucc@"+"attgl"+"obal.net";return false;}
function go(){
	$("nvabtl").onmouseout=$("nvchdl").onmouseout=$("nvythl").onmouseout=$("nvadtl").onmouseout=$("nvmisl").onmouseout=$("nvworl").onmouseout=nvmnulout;
	$("nvabtl").onmouseover=$("nvchdl").onmouseover=$("nvythl").onmouseover=$("nvadtl").onmouseover=$("nvmisl").onmouseover=$("nvworl").onmouseover=nvmnulover;
	$("nvabtm").onmouseout=$("nvchdm").onmouseout=$("nvythm").onmouseout=$("nvadtm").onmouseout=$("nvmism").onmouseout=$("nvworm").onmouseout=nvmnuout;
	$("nvabtm").onmouseover=$("nvchdm").onmouseover=$("nvythm").onmouseover=$("nvadtm").onmouseover=$("nvmism").onmouseover=$("nvworm").onmouseover=nvmnuover;
	$("eml1").onclick=eml1;
	$("nl_signup").onclick=nl_signup;
	els();
	$("c29").onmouseover = function(){bpos($("c29"),0,-24);}
	$("c29").onmouseout = function(){bpos($("c29"),0,0);}
	//$("nvmisl").onmouseover();
}
/*
function gxho(){var xhp=null;try{xhp=new XMLHttpRequest();}catch(e){try{xhp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e){xhp=new ActiveXObject("Microsoft.XMLHTTP");}}return xhp;}
*/
function format_out_link(surl,spre){var sret="/dynamic/"+spre+"/"+get_domain(surl)+"/";var s2=surl.replace(/[^a-z|A-Z|0-9]/g, " ");s2=trim(s2);s2=s2.split(" ").join("_");s2=s2.split("___").join("_");s2=s2.split("__").join("_");s2=s2.split("__").join("_");sret+=s2;return sret;}
function get_domain(surl){var sdomain="";var s1=surl.split("://",2);var s2 = s1[1].split("/");var s3 = s2[0].split(".");if(s3[s3.length-1]=="uk" && s3[s3.length-2]=="co"){sdomain = s3[s3.length-3] + ".co.uk";}else{sdomain = s3[s3.length-2] + "." + s3[s3.length-1];}return sdomain;}
function els(){
	var ancs = document.links;
	for (var i=0; i<ancs.length; i++){
		var lnkhref=ancs[i].getAttribute("href");
		var lnkrel=ancs[i].getAttribute("rel");
		var anc = ancs[i];
		if(anc.getAttribute("href") && anc.getAttribute("href").length>6&&((anc.getAttribute("rel")=="ext") || (anc.getAttribute("href").search(/doylestownsalemucc.org/i)==-1&&(anc.getAttribute("href").substr(0,7)=="http://"||anc.getAttribute("href").substr(0,7)=="https:/"))))
		//if(anc.getAttribute("href") && anc.getAttribute("href").length>6&&((anc.getAttribute("rel")=="ext") || (anc.getAttribute("href").search(/192.168.1.104/i)==-1&&(anc.getAttribute("href").substr(0,7)=="http://"||anc.getAttribute("href").substr(0,7)=="https:/"))))
		{
			anc.target="_blank";
			anc.title="opens in a new window";
			if(anc.getAttribute("href").search(/doylestownsalemucc.org/i)==-1&&!anc.onclick){
				anc.onclick=function(){
					try{
						//urchinTracker(format_out_link(this.href));
					}
					catch(err){
						alert("error");
					}
				}
			}
		}
		if(trim(anc.innerHTML).substring(0,5).toLowerCase()=="<img "&&anc.className==""&&anc.getAttribute("id")!="c29"){
			anc.setAttribute("class","cimg");
			anc.setAttribute("className","cimg");
			var fcobj = anc.firstChild;
			fcobj.setAttribute("class","cimgout");
			fcobj.setAttribute("className","cimgout");
			fcobj.onmouseover = function(){
				this.setAttribute("class","cimgovr");
				this.setAttribute("className","cimgovr");
			};
			fcobj.onmouseout = function(){
				this.setAttribute("class","cimgout");
				this.setAttribute("className","cimgout");
			};
		}
	}
}

function $(id) {
	return document.getElementById(id);
}



var swfobject=function(){var Z="undefined",P="object",B="Shockwave Flash",h="ShockwaveFlash.ShockwaveFlash",W="application/x-shockwave-flash",K="SWFObjectExprInst",G=window,g=document,N=navigator,f=[],H=[],Q=null,L=null,T=null,S=false,C=false;var a=function(){var l=typeof g.getElementById!=Z&&typeof g.getElementsByTagName!=Z&&typeof g.createElement!=Z&&typeof g.appendChild!=Z&&typeof g.replaceChild!=Z&&typeof g.removeChild!=Z&&typeof g.cloneNode!=Z,t=[0,0,0],n=null;if(typeof N.plugins!=Z&&typeof N.plugins[B]==P){n=N.plugins[B].description;if(n){n=n.replace(/^.*\s+(\S+\s+\S+$)/,"$1");t[0]=parseInt(n.replace(/^(.*)\..*$/,"$1"),10);t[1]=parseInt(n.replace(/^.*\.(.*)\s.*$/,"$1"),10);t[2]=/r/.test(n)?parseInt(n.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof G.ActiveXObject!=Z){var o=null,s=false;try{o=new ActiveXObject(h+".7")}catch(k){try{o=new ActiveXObject(h+".6");t=[6,0,21];o.AllowScriptAccess="always"}catch(k){if(t[0]==6){s=true}}if(!s){try{o=new ActiveXObject(h)}catch(k){}}}if(!s&&o){try{n=o.GetVariable("$version");if(n){n=n.split(" ")[1].split(",");t=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)]}}catch(k){}}}}var v=N.userAgent.toLowerCase(),j=N.platform.toLowerCase(),r=/webkit/.test(v)?parseFloat(v.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,i=false,q=j?/win/.test(j):/win/.test(v),m=j?/mac/.test(j):/mac/.test(v);/*@cc_on i=true;@if(@_win32)q=true;@elif(@_mac)m=true;@end@*/return{w3cdom:l,pv:t,webkit:r,ie:i,win:q,mac:m}}();var e=function(){if(!a.w3cdom){return }J(I);if(a.ie&&a.win){try{g.write("<script id=__ie_ondomload defer=true src=//:><\/script>");var i=c("__ie_ondomload");if(i){i.onreadystatechange=function(){if(this.readyState=="complete"){this.parentNode.removeChild(this);V()}}}}catch(j){}}if(a.webkit&&typeof g.readyState!=Z){Q=setInterval(function(){if(/loaded|complete/.test(g.readyState)){V()}},10)}if(typeof g.addEventListener!=Z){g.addEventListener("DOMContentLoaded",V,null)}M(V)}();function V(){if(S){return }if(a.ie&&a.win){var m=Y("span");try{var l=g.getElementsByTagName("body")[0].appendChild(m);l.parentNode.removeChild(l)}catch(n){return }}S=true;if(Q){clearInterval(Q);Q=null}var j=f.length;for(var k=0;k<j;k++){f[k]()}}function J(i){if(S){i()}else{f[f.length]=i}}function M(j){if(typeof G.addEventListener!=Z){G.addEventListener("load",j,false)}else{if(typeof g.addEventListener!=Z){g.addEventListener("load",j,false)}else{if(typeof G.attachEvent!=Z){G.attachEvent("onload",j)}else{if(typeof G.onload=="function"){var i=G.onload;G.onload=function(){i();j()}}else{G.onload=j}}}}}function I(){var l=H.length;for(var j=0;j<l;j++){var m=H[j].id;if(a.pv[0]>0){var k=c(m);if(k){H[j].width=k.getAttribute("width")?k.getAttribute("width"):"0";H[j].height=k.getAttribute("height")?k.getAttribute("height"):"0";if(O(H[j].swfVersion)){if(a.webkit&&a.webkit<312){U(k)}X(m,true)}else{if(H[j].expressInstall&&!C&&O("6.0.65")&&(a.win||a.mac)){D(H[j])}else{d(k)}}}}else{X(m,true)}}}function U(m){var k=m.getElementsByTagName(P)[0];if(k){var p=Y("embed"),r=k.attributes;if(r){var o=r.length;for(var n=0;n<o;n++){if(r[n].nodeName.toLowerCase()=="data"){p.setAttribute("src",r[n].nodeValue)}else{p.setAttribute(r[n].nodeName,r[n].nodeValue)}}}var q=k.childNodes;if(q){var s=q.length;for(var l=0;l<s;l++){if(q[l].nodeType==1&&q[l].nodeName.toLowerCase()=="param"){p.setAttribute(q[l].getAttribute("name"),q[l].getAttribute("value"))}}}m.parentNode.replaceChild(p,m)}}function F(i){if(a.ie&&a.win&&O("8.0.0")){G.attachEvent("onunload",function(){var k=c(i);if(k){for(var j in k){if(typeof k[j]=="function"){k[j]=function(){}}}k.parentNode.removeChild(k)}})}}function D(j){C=true;var o=c(j.id);if(o){if(j.altContentId){var l=c(j.altContentId);if(l){L=l;T=j.altContentId}}else{L=b(o)}if(!(/%$/.test(j.width))&&parseInt(j.width,10)<310){j.width="310"}if(!(/%$/.test(j.height))&&parseInt(j.height,10)<137){j.height="137"}g.title=g.title.slice(0,47)+" - Flash Player Installation";var n=a.ie&&a.win?"ActiveX":"PlugIn",k=g.title,m="MMredirectURL="+G.location+"&MMplayerType="+n+"&MMdoctitle="+k,p=j.id;if(a.ie&&a.win&&o.readyState!=4){var i=Y("div");p+="SWFObjectNew";i.setAttribute("id",p);o.parentNode.insertBefore(i,o);o.style.display="none";G.attachEvent("onload",function(){o.parentNode.removeChild(o)})}R({data:j.expressInstall,id:K,width:j.width,height:j.height},{flashvars:m},p)}}function d(j){if(a.ie&&a.win&&j.readyState!=4){var i=Y("div");j.parentNode.insertBefore(i,j);i.parentNode.replaceChild(b(j),i);j.style.display="none";G.attachEvent("onload",function(){j.parentNode.removeChild(j)})}else{j.parentNode.replaceChild(b(j),j)}}function b(n){var m=Y("div");if(a.win&&a.ie){m.innerHTML=n.innerHTML}else{var k=n.getElementsByTagName(P)[0];if(k){var o=k.childNodes;if(o){var j=o.length;for(var l=0;l<j;l++){if(!(o[l].nodeType==1&&o[l].nodeName.toLowerCase()=="param")&&!(o[l].nodeType==8)){m.appendChild(o[l].cloneNode(true))}}}}}return m}function R(AE,AC,q){var p,t=c(q);if(typeof AE.id==Z){AE.id=q}if(a.ie&&a.win){var AD="";for(var z in AE){if(AE[z]!=Object.prototype[z]){if(z=="data"){AC.movie=AE[z]}else{if(z.toLowerCase()=="styleclass"){AD+=' class="'+AE[z]+'"'}else{if(z!="classid"){AD+=" "+z+'="'+AE[z]+'"'}}}}}var AB="";for(var y in AC){if(AC[y]!=Object.prototype[y]){AB+='<param name="'+y+'" value="'+AC[y]+'" />'}}t.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AD+">"+AB+"</object>";F(AE.id);p=c(AE.id)}else{if(a.webkit&&a.webkit<312){var AA=Y("embed");AA.setAttribute("type",W);for(var x in AE){if(AE[x]!=Object.prototype[x]){if(x=="data"){AA.setAttribute("src",AE[x])}else{if(x.toLowerCase()=="styleclass"){AA.setAttribute("class",AE[x])}else{if(x!="classid"){AA.setAttribute(x,AE[x])}}}}}for(var w in AC){if(AC[w]!=Object.prototype[w]){if(w!="movie"){AA.setAttribute(w,AC[w])}}}t.parentNode.replaceChild(AA,t);p=AA}else{var s=Y(P);s.setAttribute("type",W);for(var v in AE){if(AE[v]!=Object.prototype[v]){if(v.toLowerCase()=="styleclass"){s.setAttribute("class",AE[v])}else{if(v!="classid"){s.setAttribute(v,AE[v])}}}}for(var u in AC){if(AC[u]!=Object.prototype[u]&&u!="movie"){E(s,u,AC[u])}}t.parentNode.replaceChild(s,t);p=s}}return p}function E(k,i,j){var l=Y("param");l.setAttribute("name",i);l.setAttribute("value",j);k.appendChild(l)}function c(i){return g.getElementById(i)}function Y(i){return g.createElement(i)}function O(k){var j=a.pv,i=k.split(".");i[0]=parseInt(i[0],10);i[1]=parseInt(i[1],10);i[2]=parseInt(i[2],10);return(j[0]>i[0]||(j[0]==i[0]&&j[1]>i[1])||(j[0]==i[0]&&j[1]==i[1]&&j[2]>=i[2]))?true:false}function A(m,j){if(a.ie&&a.mac){return }var l=g.getElementsByTagName("head")[0],k=Y("style");k.setAttribute("type","text/css");k.setAttribute("media","screen");if(!(a.ie&&a.win)&&typeof g.createTextNode!=Z){k.appendChild(g.createTextNode(m+" {"+j+"}"))}l.appendChild(k);if(a.ie&&a.win&&typeof g.styleSheets!=Z&&g.styleSheets.length>0){var i=g.styleSheets[g.styleSheets.length-1];if(typeof i.addRule==P){i.addRule(m,j)}}}function X(k,i){var j=i?"visible":"hidden";if(S){c(k).style.visibility=j}else{A("#"+k,"visibility:"+j)}}return{registerObject:function(l,i,k){if(!a.w3cdom||!l||!i){return }var j={};j.id=l;j.swfVersion=i;j.expressInstall=k?k:false;H[H.length]=j;X(l,false)},getObjectById:function(l){var i=null;if(a.w3cdom&&S){var j=c(l);if(j){var k=j.getElementsByTagName(P)[0];if(!k||(k&&typeof j.SetVariable!=Z)){i=j}else{if(typeof k.SetVariable!=Z){i=k}}}}return i},embedSWF:function(n,u,r,t,j,m,k,p,s){if(!a.w3cdom||!n||!u||!r||!t||!j){return }r+="";t+="";if(O(j)){X(u,false);var q=(typeof s==P)?s:{};q.data=n;q.width=r;q.height=t;var o=(typeof p==P)?p:{};if(typeof k==P){for(var l in k){if(k[l]!=Object.prototype[l]){if(typeof o.flashvars!=Z){o.flashvars+="&"+l+"="+k[l]}else{o.flashvars=l+"="+k[l]}}}}J(function(){R(q,o,u);if(q.id==u){X(u,true)}})}else{if(m&&!C&&O("6.0.65")&&(a.win||a.mac)){X(u,false);J(function(){var i={};i.id=i.altContentId=u;i.width=r;i.height=t;i.expressInstall=m;D(i)})}}},getFlashPlayerVersion:function(){return{major:a.pv[0],minor:a.pv[1],release:a.pv[2]}},hasFlashPlayerVersion:O,createSWF:function(k,j,i){if(a.w3cdom&&S){return R(k,j,i)}else{return undefined}},createCSS:function(j,i){if(a.w3cdom){A(j,i)}},addDomLoadEvent:J,addLoadEvent:M,getQueryParamValue:function(m){var l=g.location.search||g.location.hash;if(m==null){return l}if(l){var k=l.substring(1).split("&");for(var j=0;j<k.length;j++){if(k[j].substring(0,k[j].indexOf("="))==m){return k[j].substring((k[j].indexOf("=")+1))}}}return""},expressInstallCallback:function(){if(C&&L){var i=c(K);if(i){i.parentNode.replaceChild(L,i);if(T){X(T,true);if(a.ie&&a.win){L.style.display="block"}}L=null;T=null;C=false}}}}}();



	

	
	
	
	
	
	
	
	
	
/*
parseUri 1.2.1
(c) 2007 Steven Levithan <stevenlevithan.com>
MIT License
*/
function parseUri (str) {
	var	o   = parseUri.options,
		m   = o.parser[o.strictMode ? "strict" : "loose"].exec(str),
		uri = {},
		i   = 14;

	while (i--) uri[o.key[i]] = m[i] || "";

	uri[o.q.name] = {};
	uri[o.key[12]].replace(o.q.parser, function ($0, $1, $2) {
		if ($1) uri[o.q.name][$1] = $2;
	});

	return uri;
};
parseUri.options = {
	strictMode: false,
	key: ["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],
	q:   {
		name:   "queryKey",
		parser: /(?:^|&)([^&=]*)=?([^&]*)/g
	},
	parser: {
		strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,
		loose:  /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/
	}
};
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
// written by Dean Edwards, 2005
// with input from Tino Zijdel, Matthias Miller, Diego Perini
// http://dean.edwards.name/weblog/2005/10/add-event/
function addEvent(element, type, handler) {
	if (element.addEventListener) {
		element.addEventListener(type, handler, false);
	} else {
		// assign each event handler a unique ID
		if (!handler.$$guid) handler.$$guid = addEvent.guid++;
		// create a hash table of event types for the element
		if (!element.events) element.events = {};
		// create a hash table of event handlers for each element/event pair
		var handlers = element.events[type];
		if (!handlers) {
			handlers = element.events[type] = {};
			// store the existing event handler (if there is one)
			if (element["on" + type]) {
				handlers[0] = element["on" + type];
			}
		}
		// store the event handler in the hash table
		handlers[handler.$$guid] = handler;
		// assign a global event handler to do all the work
		element["on" + type] = handleEvent;
	}
};
// a counter used to create unique IDs
addEvent.guid = 1;
function removeEvent(element, type, handler) {
	if (element.removeEventListener) {
		element.removeEventListener(type, handler, false);
	} else {
		// delete the event handler from the hash table
		if (element.events && element.events[type]) {
			delete element.events[type][handler.$$guid];
		}
	}
};
function handleEvent(event) {
	var returnValue = true;
	// grab the event object (IE uses a global event object)
	event = event || fixEvent(((this.ownerDocument || this.document || this).parentWindow || window).event);
	// get a reference to the hash table of event handlers
	var handlers = this.events[event.type];
	// execute each event handler
	for (var i in handlers) {
		this.$$handleEvent = handlers[i];
		if (this.$$handleEvent(event) === false) {
			returnValue = false;
		}
	}
	return returnValue;
};

function fixEvent(event) {
	// add W3C standard event methods
	event.preventDefault = fixEvent.preventDefault;
	event.stopPropagation = fixEvent.stopPropagation;
	return event;
};
fixEvent.preventDefault = function() {
	this.returnValue = false;
};
fixEvent.stopPropagation = function() {
	this.cancelBubble = true;
};











function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return decodeURIComponent(c.substring(nameEQ.length,c.length).replace(/\+/g, "%20"));
	}
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}
















addEvent(window, "load", go);