/***********************************************
* Encrypt Email script- Please keep notice intact.
* Tool URL: http://www.dynamicdrive.com/emailriddler/
* **********************************************/
var emailarray1376= new Array(105,110,102,111,64,115,97,105,108,99,97,114,105,98,98,101,97,110,100,105,118,101,114,115,46,99,111,109)
var postemail1376=''
for (i=0;i<emailarray1376.length;i++)
postemail1376+=String.fromCharCode(emailarray1376[i])

var isEmail
isEmail = '<a href="mailto:'+postemail1376+'">'+postemail1376+'</a>';



//THIS IS FOR POPUPS
function popPrintConf(RndAppId){
	var thepage = "confirmation_print.asp?RndAppId="+RndAppId
	var myWin = window.open(thepage, "zoom_photo", "width=575,height=600,scrollbars=yes")
}

function popMiscPage(mp){
	var thepage = "/miscpage_pop.asp?mp="+mp
	var myWin = window.open(thepage, "mp_pop", "width=475,height=500,scrollbars=yes")
}

function openWin(thepage){
	//var thepage = page
	var myWin = window.open(thepage, "openWin", "width=455,height=500,top=10,left=10,toolbar=no,scrollbars=yes,resizable=yes,status=yes")
}

function watchVideo(thePage,theWidth,theHeight){
	//var thepage = page
	var myWin = window.open(thePage, "openWin", "width="+theWidth+",height="+theHeight+",top=100,left=100,toolbar=no,scrollbars=no,resizable=no,status=yes")
}


//THIS AUTO-TABS THRU FIELDS
function autotab(original,destination){
if (original.getAttribute&&original.value.length==original.getAttribute("maxlength"))
destination.focus()
}



//////////////////////////////////////////////
// - FOR DROP DOWNS - ////////////////////////
//////////////////////////////////////////////
function jump(f){
	f.submit();
}
//////////////////////////////////////////////
// - FOR DROP DOWNS - ////////////////////////
//////////////////////////////////////////////



//////////////////////////////////////////////
// - FOR MOUSEOVERS - ////////////////////////
//////////////////////////////////////////////
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_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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];}
}
//////////////////////////////////////////////
// - FOR MOUSEOVERS - ////////////////////////
//////////////////////////////////////////////




//////////////////////////////////////////////
// - FOR EXPAND/COLLAPSE LAYERS - ////////////
///////////////////////////////////////////////
function showLay(num) { 
	//loop through the known layers and hide them all
	for (i = 1; i <= 1; i++)
	{
		var temp = new getObj('dExpand_'+i);
		temp.style.display = 'none';
	}

	if(num != 0)
	{
		var f = new getObj('dExpand_'+num); 
			 if (f.style.display == 'none'){ 
			 f.style.display = ''; 
			 } 
			 else { 
			 f.style.display = 'none'; 
			 } 
			 } 
			function getObj(name) {  
			 if (document.getElementById) 
			 { 
			 this.obj = document.getElementById(name); 
			 this.style = document.getElementById(name).style; 
			 } 
			 else if (document.all) 
			 { 
			 this.obj = document.all[name]; 
			 this.style = document.all[name].style; 
			 } 
			 else if (document.layers) 
			 { 
			 this.obj = document.layers[name]; 
			 this.style = document.layers[name]; 
			 } 
		}
	} 

//-------------------------------------------//
//////////////////////////////////////////////
// - FOR EXPAND/COLLAPSE LAYERS - ////////////
/////////////////////////////////////////////


//////////////////////////////////////////////
// - FOR EXPAND/COLLAPSE LAYERS - ////////////
///////////////////////////////////////////////
function ShowHide(num) { 

	{
		var f = new getObj('dExpand_'+num); 
			 if (f.style.display == 'none'){ 
			 f.style.display = ''; 
			 } 
			 else { 
			 f.style.display = 'none'; 
			 } 
			 } 
			function getObj(name) {  
			 if (document.getElementById) 
			 { 
			 this.obj = document.getElementById(name); 
			 this.style = document.getElementById(name).style; 
			 } 
			 else if (document.all) 
			 { 
			 this.obj = document.all[name]; 
			 this.style = document.all[name].style; 
			 } 
			 else if (document.layers) 
			 { 
			 this.obj = document.layers[name]; 
			 this.style = document.layers[name]; 
			 } 
		}
	} 




function doHideOnly(num) { 

	{
		var f = new getObj('dExpand_'+num); 
			 if (f.style.display == ''){ 
			 f.style.display = 'none'; 
			 } 
			// else { 
			// f.style.display = 'none'; 
			// } 
			 } 
			function getObj(name) {  
			 if (document.getElementById) 
			 { 
			 this.obj = document.getElementById(name); 
			 this.style = document.getElementById(name).style; 
			 } 
			 else if (document.all) 
			 { 
			 this.obj = document.all[name]; 
			 this.style = document.all[name].style; 
			 } 
			 else if (document.layers) 
			 { 
			 this.obj = document.layers[name]; 
			 this.style = document.layers[name]; 
			 } 
		}
	} 
//-------------------------------------------//
//////////////////////////////////////////////
// - FOR EXPAND/COLLAPSE LAYERS - ////////////
/////////////////////////////////////////////



