	
/*
Descript: AirComUSA Site Template
Author: Thomas Ballard, Copyright 2002 E.S.Q. Software
Questions, comments, work? Email thomas@esqsoft.com
*/


		 

var left_links_data=new Array(
  //
  //"sample_url","sample text for link",
  //

  "index.html","Home",
  "efax_alternative.html","Electronic Fax Alternative",
  "fax.html","Fax Services",
  "faxmachine.html","Learn About Our Service",
  "faxtoemail.html","Fax To Email",
  "emailtofax.html","Email To Fax",
  "faxbroadcasting.html", "Fax Broadcasting",
  "companyfaxnumbers.html","Multiple User",
  "internetfax.html","Internet Fax",
  "price.html","Pricing",
  "voice.html", "Voice Services",
  "https://www.aircomusa.com/signup/?pname=faxdemo","Free Fax Demo", 
  "https://www.aircomusa.com/cgi-bin/signup","Sign Up For Services",
  "virtualofficesystemmap.html#map", "Quick Reference Map",
  "faq_index.html","FAQ",
  "about_us.html", "About Us",
  "contact_us.html", "Contact Us",
  "testimonials.html","Testimonials",
  "",""
  
)




function pick_a_pic(){
	var pics=new Array(
	"pic4.jpg",
	"greenhouse.jpg",
	"pic5.jpg",
	"pic6.jpg",
	"pic7.jpg",
	"pic10.jpg",
	"pic11.jpg",
	"pic12.jpg",
	"pic13.jpg",
	"pic14.jpg",
	"pic15.jpg",
	"pic16.jpg",
	"pic17.jpg",
	"pic18.jpg",
	"pic19.jpg",
	"pic20.jpg",
        "pic22.jpg",
        "pic23.jpg",
        "pic24.jpg",
        "pic25.jpg",
        "pic26.jpg"  
	)
	var mnum=parseInt(Math.random()*pics.length)
	return pics[mnum]
}



var mmstrr=''
function position_addr(){
  if(
    (document.all)&&
    (document.all.addr)&&
    (document.all.addr_station)
    ){

    if(
      (document.readyState)&&
      (document.readyState!='complete')
      ){
      if(!this.intDrawAttempts) this.intDrawAttempts=50
      if(--this.intDrawAttempts>0) setTimeout('position_addr()',1000)
      return
    }

    document.all.addr.style.position='absolute'
    document.all.addr.style.top=document.addr_station.parentElement.offsetTop-25
  }
  return false
}
///bbb online java script function
function Rcertify() 
{
popupWin = window.open('http://www.bbbonline.org/cks.asp?id=103040914542830861', 'Participant','location=yes,scrollbars=yes,width=450,height=300'); 
window.name = 'opener';
} 
//starting Menu Bar
//<!-- names of dropdowns stored here -->
f7_droplayer=new Array()
f7_droplayer[0]="drop1"
f7_droplayer[1]="drop2"
f7_droplayer[2]="drop3"
f7_droplayer[3]="drop4"
f7_droplayer[4]="drop5"

//<!-- f7_droplayer[4]="drop5" f7_droplayer[5]="drop6" -->




//<!-- simple browser check -->
f7_v4=(parseInt(navigator.appVersion)>=4 && parseInt(navigator.appVersion)<=5)?1:0
f7_ie=(document.all && f7_v4)?1:0
f7_ns=(document.layers && f7_v4)?1:0


//<!-- code for drops -->

function f7_showdrop(thelayer){
	f7_keep=thelayer; f7_hideall(); f7_showitnow=1
	f7_showit(thelayer)
	}

function f7_showit(thelayer){
		if(f7_ie){ eval(f7_droplayer[thelayer]+'.style.visibility="visible"') }
		if(f7_ns){ eval('document.'+f7_droplayer[thelayer]+'.visibility="show"');}
	}


function f7_hidedrop(){
	f7_keep=-1; setTimeout('f7_hideall()',500)
	}

f7_keep=-1

function f7_hideall(){
	for(i=0;i<f7_droplayer.length;i++){  
		f7_hideit=0; f7_checkmousepos(i)
		if(f7_ie && f7_keep!=i){ 
			if(f7_hideit){ eval(f7_droplayer[i]+'.style.visibility="hidden"') } 
			}
		if(f7_ns && f7_keep!=i){ 
			if(f7_hideit){ eval('document.'+f7_droplayer[i]+'.visibility="hide"') }
			}
		}
	}

//<!-- deal with cursor over layer -->
document.onmousemove = f7_getmousepos
if (f7_ns) document.captureEvents(Event.MOUSEMOVE)

function f7_getmousepos(e){
	if(f7_ns){f7_mousex=e.pageX; f7_mousey=e.pageY}
	if(f7_ie){f7_mousex=event.clientX; f7_mousey=event.clientY;}
	}

function f7_checkmousepos(i){          
	if(f7_ns){     
		f7_x_min=eval('document.'+f7_droplayer[i]+'.left')
		f7_x_max=f7_x_min+eval('document.'+f7_droplayer[i]+'.clip.width')
		f7_y_min=eval('document.'+f7_droplayer[i]+'.top')
		f7_y_max=f7_y_min+eval('document.'+f7_droplayer[i]+'.clip.height')
		}    
	if(f7_ie){     
		f7_x_min=eval(f7_droplayer[i]+'.style.pixelLeft')
		f7_x_max=f7_x_min+eval(f7_droplayer[i]+'.style.pixelWidth')
		f7_y_min=eval(f7_droplayer[i]+'.style.pixelTop')
		f7_y_max=f7_y_min+eval(f7_droplayer[i]+'.style.pixelHeight')
		}
	if (f7_mousex>=f7_x_min && f7_mousex<=f7_x_max && f7_mousey>=f7_y_min && f7_mousey<=f7_y_max){
		f7_hideit=0; setTimeout('f7_hideall()',500)
		}
	else { f7_hideit=1 }
	return f7_hideit
	}

//<!-- browser stylesheets -->

if(f7_ie){
document.write('<style type="text/css"><!--')

document.write('.dropdown {padding-left:1px; padding-top:1px; padding-right:1px; padding-bottom:0px}')
document.write('p { margin-top:0px; margin-bottom:6px }')
document.write('a { text-decoration: none }')
document.write('a:hover { color: blue; text-decoration: none }')
document.write('--></style>')
}




function fPopLocked(ivanE,ivanObj){
// Description: Toggle Hidden Help Layers
// Author: Thomas Ballard
// Rights: Copyright 2002, E.S.Q. Software, All Rights Reserved
// Questions, Comments, Work? Email me at thomas@esqsoft.com

  if(!ivanObj){ 
    alert('Error: Author must pass Object reference')
    return
  }

  if(typeof ivanObj!='object') ivanObj=eval(ivanObj) 
    //this converts string passes to an object... 
    //an example where a string might be passed would be "document.all.ivanSomething"
    //since some browsers don't support "all" then the author may want to pass a string and let this 
    //function validate the DOM.... might make a friendlier error.

  if(!ivanObj){
  alert('Error: Object reference was not resolved.\
    \n -This could occur if your browser does NOT support the object through the DOM.\
    \n -It could also occur if the author passed an invalid reference.')
    return
  }

  if(!ivanObj.toggleVis) ivanObj.toggleVis='hidden'
  switch(ivanObj.toggleVis){
    case 'visible':
      ivanObj.toggleVis='hidden'
      break
    case 'hidden':
      ivanObj.toggleVis='visible'
      break
  }
  ivanObj.style.visibility=ivanObj.toggleVis
}






var is_header=0
function draw_top(mheader,mdebug){
  is_header=mheader; //if header is created we MUST put a footer on too, even if the user forgets to pass the correct argument or the HTML breaks

	mstr='\n\
<!-- start: draw_top() -->\n\
  <STYLE>\n\
  <!--\n\
  Descript: Style Sheet for AirCom Site\n\
  Author: Thomas Ballard\n\
  Copyright 2002 E.S.Q. Software\n\
  Questions, comments, work? Email thomas@esqsoft.com\n\
  -->\n\
  \n\
  body{\n\
    background-color: FFFFFF;\n\
    background-repeat: repeat-y;\n\
    margin: 0px;\n\
  }\n\
  .content{\n\
    font-family: verdana, sans-serif;\n\
    font-size: 4mm;\n\
    color: 000033;\n\
  }\n\
  \n\
  .top_header{\n\
    background-image: url(images/top_header_no_curve.gif);\n\
    background-repeat: no-repeat;\n\
	background-color: #0000CC;\n\
  }\n\
  .thlb{\n\
    background-image: url(images/top_link_bar_backer.gif);\n\
    background-color: CCCCDD;\n\
    font-family: verdana;\n\
    font-size: 3mm;\n\
    font-weight: bold;\n\
  }\n\
  .contact_info{\n\
    font-family: verdana;\n\
    font-size: 2mm;\n\
    color: 000033;\n\
	background-repeat: repeat-n;\n\
  }\n\
  .thlb_link:link,\n\
  .thlb_link:active,\n\
  .thlb_link:visited{\n\
    text-decoration: none;\n\
    font-family: verdana;\n\
    font-size: 3mm;\n\
    font-weight: bold;\n\
    color: 000033;\n\
  }\n\
  }\n\
  .thbb{\n\
    background-repeat: repeat-y;\n\
    background-color: 6699CC;\n\
  }\n\
  \n\
  .left_top{\n\
    background-image: url(images/left_top.gif);\n\
    background-repeat: repeat-y;\n\
    background-color: 0000CC;\n\
  }\n\
  \n\
  .left_middle_top{\n\
    background-image: url(images/left_middle_top.gif);\n\
    background-repeat: no-repeat;\n\
    background-color: 0000CC;\n\
  }\n\
  \n\
  .left_middle_bottom{\n\
    background-image: url(images/left_middle_bottomblue.gif);\n\
    background-repeat: no-repeat;\n\
    background-color: 6969CC;\n\
  }\n\
  \n\
  .left_bottom{\n\
    background-image: url(images/left_bottom.gif);\n\
    background-repeat: repeat-y;\n\
    background-color: 6699CC;\n\
  }\n\
  \n\
  .bottom{\n\
    background-color: 6699CC;\n\
  }\n\
  .bottom_link:link,\n\
  .bottom_link:active,\n\
  .bottom_link:visited{\n\
    text-decoration: none;\n\
    font-family: verdana;\n\
    font-size: 3mm;\n\
    font-weight: bold;\n\
    color: 0000CC;\n\
  }\n\
  .bottom_link:hover{\n\
    font-size: 3.2mm;\n\
  }\n\
  \n\
  .menu_border{\n\
    border-color: AAAAAA;\n\
    border-width: 2px;\n\
    border-style: solid;\n\
  }\n\
  \n\
  .login_main{\n\
    background-image: url(images/top_link_bar_backer.gif);\n\
    background-color: CCCCDD;\n\
  }\n\
  .login_box{\n\
    color: 000000;\n\
    font-family: verdana;\n\
    font-size: 8pt;\n\
  }\n\
  .login_link:link,\n\
  .login_link:active,\n\
  .login_link:visited{\n\
    font-family: verdana;\n\
    font-size: 8pt;\n\
    color: 000000;\n\
  }\n\
  .login_control{\n\
  }\n\
  \n\
  .llink,\n\
  .llink:link,\n\
  .llink:active,\n\
  .llink:visited{\n\
    color: eeeeee;\n\
    font-family: verdana;\n\
    font-size: 8pt;\n\
    text-decoration: none;\n\
  }.llink:hover{\n\
    color: ffffff;\n\
  }\n\
  \n\
h1, .title{\
font-weight:bold;\
font-size:16pt;\
margin-left:0.4in;\
font-family: arial;\
}\
h2, .header{\
font-weight:bold;\
font-size:12pt;\
margin-left:0.5in;\
}\
p, text, li, table.text, h1.text{\
font-weight:normal;\
font-size:8.5pt;\
margin-left:0.2in;\
margin-right:0.1in;\
font-family:verdana;\
text-indent:0.1in;\
}\
.disclamer \
 {\
  font-size:10; \
  text-align: justify; \
  margin-right:.3in; \
  line-height: 8pt;\
  font-weight:normal;\
margin-left:0.6in;\
margin-right:0.1in;\
font-family: arial;\
text-indent:0.1in;\
 }\
.sitemap{\
  font-size:7.0pt;\
  margin-left:1.2in;\
}\
\
p.Screenshot, li.Screenshot, div.Screenshot\
	{mso-style-name:Screenshot;\
	mso-style-next:Caption;\
	margin-top:12.0pt;\
	margin-right:0.3in;\
	margin-bottom:0in;\
	margin-left:0in;\
	margin-bottom:.0001pt;\
	text-align:center;\
	mso-pagination:widow-orphan;\
	font-size:12.0pt;\
	font-family:"Times New Roman";\
	mso-fareast-font-family:"Times New Roman";}\
	\
p.Image\
	{margin-top:12.0pt;\
	margin-right:0.3in;\
	margin-bottom:0in;\
	margin-left:0in;\
	margin-bottom:.0001pt;\
	text-align:center;\
	}\
.linq{\
			color: #0000FF\
             \
		   }\
a:link, a:visited, a:hover{\
color: #0000FF;\
\
}\
.sitemap1, .sitemap1:link, .sitemap1:visited, .sitemap1:hover{\
  font-size:7.0pt;\
  text-align: center;\
  color: #000000;\
  font-family: arial; \n\
}\
.subTitle{\
color:blue; font-size:9pt; margin-left:.7in; position:relative;font-family:arial;\
}\
.description{\
font-weight:bold;\
font-size:10pt;\
margin-left:0.6in;\
margin-right:0.1in;\
font-family:"Times New Roman";\
text-indent:0.1in;\
}\
</style>\
  </HEAD>\n\
  <BODY ONLOAD="setCookie()";>\n\
  <TABLE  CELLPADDING=0 CELLSPACING=0 WIDTH=800 BGCOLOR=FFFFFF>\n\
  ';
  if(mheader>0){ 
    mstr+='\n\
    <TR VALIGN=top>\n\
      <TD COLSPAN=2 WIDTH=100%>\n\
    <!-- start: header -->\n\
        <TABLE CELLPADDING=0 CELLSPACING=0 border = 0 width="800">\n\
          <TR>\n\
            <TD ID=mlogo_header CLASS=top_header ALIGN=right WIDTH=100%>\n\
              <IMG SRC=pixel.gif WIDTH=1 HEIGHT=1>\n\
              <A NAME=super_top HREF=http://www.aircomusa.com ONFOCUS="blur()"><IMG SRC=images/top_logo.gif BORDER=0\n\
              ></A\n\
            ></TD>\n\
          </TR>\n\
          \n\
		  <!-- start: header link bar -->\n\
    <!-- end: header link bar -->\n\
        \n\
          <TR>\n\
            <TD ID=topaccent CLASS=thbb ALIGN=right WIDTH=100%><IMG ID=topaccentpixel SRC=pixel.gif WIDTH=1 HEIGHT=5></TD>\n\
          </TR>\n\
        </TABLE>\n\
      </TD>\n\
    </TR>\n\
    <!-- end: header -->\n\
    '
  } //end if(mheader)

  if(is_header<2){

    var mmonthName=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
    var mdate=new Date()
    var mmonth=mdate.getMonth()
    var mday=mdate.getDate()
    var myear=mdate.getFullYear()
    mdatestr=mmonthName[mmonth]+" "+mday+", "+myear

    mstr+='\n\
    <TR VALIGN=top>\n\
      <TD WIDTH=1% bgcolor="6699CC" >\n\
        <TABLE CELLPADDING=0 CELLSPACING=0>\n\
          <TR VALIGN=top>\n\
            <TD CLASS=left_top>\n\
              <IMG SRC=pixel.gif WIDTH=199 HEIGHT=1>\n\
              <TABLE CELLPADDING=5 CELLSPACING=0>\n\
                <TR>\n\
                  <TD WIDTH=100%>\n\
    <!-- start:upper left menu chunk -->\n\
    \n\
    \n\
    \n\
    <!-- start: left menu -->\n\
    <TABLE WIDTH=100% ID=left_links><TR><TD WIDTH=200>\n\
    <DIV ID=mdate3 CLASS=llink WIDTH=100%><B>'+mmonthName[mmonth]+' '+mday+', '+myear+'</B><BR><BR></DIV>\n\
    '

    var tctr=1
    for(var i=0; i<(left_links_data.length-2); i+=2){
      mstr+='<DIV ONMOUSEOVER="if(this.style)lmover(this)" ONMOUSEOUT="if(this.style)lmout(this)"><A HREF="'+left_links_data[i]+'" CLASS="llink">'+left_links_data[i+1]+'</A></DIV>'
      tctr*=-1
    }
    if(tctr<0) mstr+='&nbsp;'; // prevent black line from getting created at bottom of left links menu if odd number of lines

    mstr+='<a href="" onclick="Rcertify();return false;"><span style="position:relative; top:20px; margin-left:.45in; z-index:+1;"><img src="images/bbb4.gif" alt="BBBOnLine Reliability Seal"  BORDER=0></a></span>\n\
    </TD></TR></TABLE>\n\
    <!-- end: left menu -->\n\
    \n\
    \n\
    \n\
    <!-- end:upper left menu chunk -->\n\
                  &nbsp;</TD>\n\
                  <TD WIDTH=1%><IMG SRC=pixel.gif WIDTH=1 HEIGHT=1></TD>\n\
                </TR>\n\
              </TABLE>\n\
            </TD>\n\
          </TR>\n\
          <TR VALIGN=top>\n\
            <TD WIDTH=100%>\n\
              <TABLE CELLPADDING=0 CELLSPACING=0 WIDTH=100% style="position:relative; bottom: 50px;">\n\
			    <tr>\
                 <td>\
                  <img src="images/left_middle_bottomblue.gif" />\
                 </td>\
                </tr>\
                <TR>\n\
                  <TD ID=login_box1 align="center" bgcolor="6699CC">\n\
  <!-- start: login chunk -->\n'
  mstr+='<BR><IFRAME ID="ivanNinjaIFrame" BORDER=0 WIDTH=150 HEIGHT=300 SCROLLING=NO FRAMEBORDER=NO SRC="https://www.aircomusa.com/login.html"></IFRAME><BR><BR> \n\
                   </TD>\n\
                  </TR>\n\
                </TABLE>\n\
              &nbsp;</TD>\n\
            </TR>\n\
          </TABLE>\n\
        </TD>\n\
        <TD>\n\
		<img src="images/banner_pics/'+pick_a_pic()+'">\n\
   '
    if(is_header==0) mstr+='<IMG SRC=pixel.gif WIDTH=300 HEIGHT=1>'

  } // end is_header==1

  if(is_header==2){
    mstr+='\n\
    <TR>\n\
      <TD COLSPAN=2>\n\
        <TABLE CELLPADDING=0 CELLSPACING=0 WIDTH=100%>\n\
         '
  }

  mstr+='\n<!-- end: draw_top() -->\n'
  if(mdebug) mstr='<XMP>'+mstr+'</XMP>'

  document.write(mstr)
} //end draw_top()



function draw_bottom(mdebug){
  var mstr='\n\n\n<!-- start: draw_bottom() -->\n'

  switch(is_header){
    case 0:
    mstr+='\n\
    '
    break;

    case 1:
    mstr+='\n\
    \n\
    <!-- start: footer links -->\n\
    <TR ID=footer_links VALIGN=bottom>\n\
      <TD ID=lower3 CLASS=bottom>\n\
        \
	  </TD>\n\
      <TD ID=lower4 CLASS=bottom WIDTH=1%>\n\
	  <TABLE ID=addr border=0 width="600" CELLPADDING=0 style="background-color: 6699CC;">\
	  <TR>\
	  <td width=249>\
	 \
	  </td>\
	  <TD CLASS=contact_info width=155 Align=center STYLE="color:ffffff;font-size:2.5mm;">\n\
	888.530.9100 Toll-Free<br>\n\
    801.370.6000 Office<BR>\n\
    801.370.6001 Fax<BR>\n\
    </TD>\n\
	<td width=34>\
	\
	</td>\
    \n\
    <TD width=63 height=45  ALIGN=center border=1><A HREF=faq_index.html CLASS=bottom_link>FAQ<BR></A></TD>\n\
    <TD width=63 height=45  ALIGN=center border=1><A HREF=about_us.html CLASS=bottom_link>About<BR>Us</A></TD>\n\
    <TD width=55 height=45  ALIGN=center border=1><A HREF=contact_us.html CLASS=bottom_link>Contact<BR>Us</A></TD>\n\
          </TR></TABLE>\n\
        </TD>\n\
      </TR>\n\
    <!-- end: footer links -->\n\
    '
    break;

    case 2:
    mstr+='\n\
            </TD>\n\
          </TR>\n\
        </TABLE>\n\
      </TD>\n\
    </TR>'
    break

  }

/*
  if(!is_header){
    mstr+='\n\
    <TR ID=footer_links VALIGN=bottom>\n\
      <TD ID=lower3 CLASS=bottom>\n\
        <IMG SRC=images/bottom_left.gif NAME=addr_station></TD>\n\
      <TD ID=lower4 WIDTH=1%>\n\
      </TD>\n\
    </TR>'
  }
*/

  mstr+='\n  </TABLE>\
  \n<!-- end: draw_bottom() -->\n\
  \n</BODY>\n</HTML>\n'
  
  if(mdebug) mstr='<XMP>'+mstr+'</XMP>'
  document.write(mstr)
  position_addr()
} //end draw_bottom()




function lmover(mobj){
  if(!mobj.style) return
  mobj.style.backgroundColor="3333AA"
  return
}




function lmout(mobj){
  if(!mobj.style) return
  mobj.style.backgroundColor="transparent"
  return
}




/*var repop_run=false
function repop_loginbox(){
  if(
    (repop_run)||
    (is_header!=1)
    ) return

  else{

    if(
      (document.readyState)&&
      (document.readyState!='complete')
      ){
      if(!this.intDrawAttempts) this.intDrawAttempts=50
      if(--this.intDrawAttempts>0) setTimeout('repop_loginbox()',1000)
      return
    }

    repop_run=true
    if(true){
      var murl='https://www.aircomusa.com/login.html'
      //murl='login.html'
      document.all.login_box1.innerHTML=
        '<IFRAME ID="ivanNinjaIFrame" STYLE="margin:0px; position: relative; bottom: 10px;" BORDER=0 WIDTH=145 HEIGHT=134 SCROLLING=NO FRAMEBORDER=NO SRC="'+murl+'"></IFRAME><BR><BR>'
    }
  }
}document.onload=setTimeout('repop_loginbox()',950)*/

expireDate = new Date;
expireDate.setMonth(expireDate.getMonth()+1);

function setCookie()
{
var refer = location.search;
var referURL = document.referrer.toString();
if((refer.indexOf('?') > -1))
{
     refer = refer.substring(refer.indexOf('?')+1,refer.length);
}
if (referURL.length > 0)
                {
				for(var c = 0; c < referURL.length; c++)
				{
				if ((referURL.charAt(c) == "=") || (referURL.charAt(c) == "&"))
				{
				var originalString = referURL;
				var replacedString = "&";
				var replacementString = "_";
				referURL = originalString.replace(replacedString, replacementString);
				var originalString = referURL;
				var replacedString = "=";
				var replacementString = "E";
				referURL = originalString.replace(replacedString, replacementString);
				}
				}   
				}              
refer = refer + "&" + referURL;     
                                
if((document.cookie == "") && (refer != "&"))
{
document.cookie = "refer="+ refer + ";expires=" + expireDate.toGMTString();
}
}






