<!-- Begin Div Action Functions
function blanket_size2() {
	if (typeof window.innerWidth != 'undefined') {
		viewportheight = window.innerHeight;
	} else {
		viewportheight = document.documentElement.clientHeight;
	}
	if ((viewportheight > document.body.parentNode.scrollHeight) && (viewportheight > document.body.parentNode.clientHeight)) {
		blanket_height = viewportheight;
	} else {
		if (document.body.parentNode.clientHeight > document.body.parentNode.scrollHeight) {
			blanket_height = document.body.parentNode.clientHeight;
		} else {
			blanket_height = document.body.parentNode.scrollHeight;
		}
	}
	var blanket = document.getElementById('blanket');
	blanket.style.height = blanket_height + 'px';
}

function bStateAction(countryCode){
	
	var divID = "bStateDiv";
	
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	  
	xmlhttp.onreadystatechange = function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
		{
		document.getElementById(divID).innerHTML=xmlhttp.responseText; 
		}
	  }
	  
	xmlhttp.open("GET","/ajax/fm_stateinput.cfm?cocode="+countryCode,true);
	xmlhttp.send();
	
}

function divNavAction(num) //v1.1 - 03/23/06 - AOC Port
{
  var switchState = null;
  var divID = 'nav' + num
  
  switchState = document.getElementById(divID).style.display;
	if (switchState == 'none') {
    	document.getElementById(divID).style.display = 'block';
		}
	else {
		document.getElementById(divID).style.display = 'none';
		}
}

function divAction(divName) //v1.1 - 03/23/06 - AOC Port
{
  var switchState = null;
  switchState = document.getElementById(divName).style.display;
	if (switchState == 'none') {
    	document.getElementById(divName).style.display = 'block';
		}
	else {
		document.getElementById(divName).style.display = 'none';
		}
}

function divActionGroup(divCount,name,divFocus) //v1.1 - 03/23/06 - AOC Port
{
	var x = divCount;
	var y = divFocus;
	var divName = name;
	var i;

	for (i = 1; i <= x; i++)
	{
		if (i == y) {
		document.getElementById(divName + i).style.display = 'block';
		}
		else {
		document.getElementById(divName + i).style.display = 'none';
		}
	}
}
// End -->

<!-- Begin iFrame Functions
moz=document.getElementById&&!document.all
mozHeightOffset=20

function resize_iframe(){
document.getElementById("iframe_id").height=100 // required for Moz bug, value can be "", null, or integer
document.getElementById('iframe_id').height=window.frames["iframe_name"].document.body.scrollHeight+(moz?mozHeightOffset:0)
}
// End -->

<!-- Begin Macromedia functions
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(window.open(selObj.options[selObj.selectedIndex].value));
  if (restore) selObj.selectedIndex=0;
}

function MM_jumpMenu2(targ,selObj,restore){ //v3.0
  //eval(window.location(selObj.options[selObj.selectedIndex].value));
  //if (restore) selObj.selectedIndex=0;
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

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];}
}
// End -->

<!-- Begin Popup Window
function displayPopup(url,height,width)
{
var properties;
properties = "'left=0,top=0,toolbar=1,location=0,scrollbars=1,resizable=0,height=" + height + ",width=" + width + "'";
window.open(url,'',properties);
}
function displayPopup2(url,height,width)
{
var properties;
properties = "'left=0,top=0,toolbar=0,location=0,scrollbars=0,resizable=0,height=" + height + ",width=" + width + "'";
window.open(url,'',properties);
}
//  End -->

<!-- Begin Current Date
function getDate()
{
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)    // Y2K Fix, Isaac Powell
year = year + 1900; // http://onyx.idbsu.edu/~ipowell
document.write("<right>" + lmonth + " ");
document.write(date + ", " + year + "</right>");
}

function writeAddr(){
	// Build the address
	var i,a=writeAddr.arguments,addr='';
	addr += a[0]+"@";
	for(i=1; i<a.length; i++){
		if(i>1) addr += ".";
		addr += a[i];
	}
	// Write html to the browser with the email address
	document.write("<a href=\"mailto:" + addr + "\">" + addr + "</a>");
}

function writeAddr2(){
	// Build the address
	var i,a=writeAddr.arguments,addr='';
	addr += a[0]+"@";
	for(i=1; i<a.length; i++){
		if(i>1) addr += ".";
		addr += a[i];
	}
	// Write html to the browser with the email address
	document.write("<a href=\"mailto:" + addr + "\"><img src=\"images1/icon_email.png\" /></a>");
}

function PayPalSubmit(){
	document.PayPalPurchase.submit();
}

function reloadIFRAME(ifm) {
	var f = document.getElementById(ifm);
	f.src = f.src;
}

function handleIFRAME(ifm,thestring){  
    var iframe = document.getElementById(ifm); 
    iframe.src = thestring;
	reloadIFRAME(ifm);
}

function updateMediaImage(formValue,imgSrc){
	document.forms["slideInfo"].mediaImageID.value = formValue;
	document.cImg.src = imgSrc;	
	//document.getElementByID("mediaImageID").value = form.Value;
}

function updateMediaMusic(formValue,musicSrc,musicFile){
	document.forms["slideInfo"].mediaMusicID.value = formValue;
	document.getElementById("cMusic").innerHTML='<object id="mediaPlayer" width="140" height="45" '
		+'classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" '
		+'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
		+'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
		+'<param name="fileName" value="'+musicFile+'">'
		+'<param name="animationatStart" value="true">'
		+'<param name="transparentatStart" value="true">'
		+'<param name="autoStart" value="true">'
		+'<param name="showControls" value="false">'
		+'<param name="loop" value="true">'
		+'<embed type="application/x-mplayer2" '
		+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
		+'bgcolor="101010" showcontrols="false" width="140" height="45" '
		+'src="http://www.'+musicSrc+'" autostart="true" loop="true">'
		+'</embed>'
		+'</object>'
}

function updateFormData(formField,formValue){
	document.forms["slideInfo"].elements[formField].value = formValue;
}

function showHideLayer(divID,zindexValue,switchState){
	if (switchState == 1) {
    	document.getElementById(divID).style.zIndex = zindexValue;
		}
	else {
		document.getElementById(divID).style.zIndex = '-'+zindexValue;
		}
}

function showHideLayer2(divID,zindexValue,switchState){
	if (switchState == 1) {
    	document.getElementById(divID).style.zIndex = zindexValue;
		document.getElementById(divID).style.display = 'block';
		}
	else {
		document.getElementById(divID).style.zIndex = '-'+zindexValue;
		document.getElementById(divID).style.display = 'none';
		}
}

function submitSlideInfo(){
	document.forms["slideInfo"].submit();
}

function reloadIFRAME (ifm) {
	var f = document.getElementById(ifm);
	f.src = f.src;
}

function reloadIFRAME2 (ifm,url,fType,fSize,fStyle,fWeight,fColor,textStr) {
	var f = document.getElementById(ifm);
	f.src = url+"?fType="+fType+"&fSize="+fSize+"&fStyle="+fStyle+"&fWeight="+fWeight+"&fColor="+fColor+"&textStr="+textStr;
}

function handleIFRAME(ifm,thestring){  
    var iframe = document.getElementById(ifm); 
    iframe.src = thestring; 
}

function handleIFRAME2(ifm,thestring,adate){  
    var iframe = document.getElementById(ifm); 
    iframe.src =  thestring+adate; 
}

function updateFormValue(inputID,inputValue){  
    var formInput = document.getElementById(inputID); 
    formInput.value =  inputValue; 
}
// End -->

