<!--

// ------------------------------------------------------------------ //
//IMAGE REPLACE/PRE-LOAD

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];}
}


// ------------------------------------------------------------------ //
// PRINTER FRIENDLY PAGE

function PrintPage(location){
window.open('printpage.php@location=' + location,'PRINTPAGE','title=no,menubar=no,toolbar=no,location=no,status=no,scrollbars=yes,resizable=no,width=650,height=700');
}


// ------------------------------------------------------------------ //
// LINK OUTBOUND PAGE (w/ REFERRAL)


function ClickOut(link,location){
//IN HTML HREF//onClick="ClickOut('../demo.instantpreview.com/default.htm','<?php echo"$config[location]"; ?>');"


if(location){
 if ( link.indexOf( '?' ) != -1 ){
 newlink = link + '&ref=' + location;
 } else {
 newlink = link + '@ref=' + location;
 }
}else{
newlink = link;
}

//alert(newlink);

window.open(newlink,'CLICKOUT','title=yes,menubar=yes,toolbar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes');
}


// ------------------------------------------------------------------ //
// LINK OUTBOUND PAGE IN A FRAME (w/ REFERRAL)


function FrameOut(link,location){
//IN HTML HREF//onClick="FrameOut('../demo.instantpreview.com/default.htm','<?php echo"$config[location]"; ?>');"

if ( link.indexOf( '?' ) != -1 ){
newlink = link + '&ref=' + location;
} else {
newlink = link + '@ref=' + location;
}
newlink = "frameout.php@outlink="+ newlink;
window.open(newlink,'FRAMEOUT','title=yes,menubar=yes,toolbar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes');
}


// ------------------------------------------------------------------ //
// BOOKMARK


function bookmark(bookmarkurl, bookmarktitle){
 if(document.all){
 window.external.AddFavorite(bookmarkurl,'[<?php echo"$config[settings_sitedomain]"; ?>] ' + bookmarktitle);
 }
}


// ------------------------------------------------------------------ //
// STEALTH EMAIL ##

function stealthemail(user){
host="somedomain.com";
window.open('mailto:' + user + '@' + host + '');
}


// ------------------------------------------------------------------ //
// QUICK FAQS

function qfaqs(faqid){
window.open('qfaqs.php@qfaq=' + faqid + '','qfaq','width=400,height=281,scrollbars=1,menubar=no,toolbar=no,status=no,location=no')
}


// ------------------------------------------------------------------ //
// WHOIS WINDOW

function domwhois(domain){
window.open('domains.html@act=whois&domname=' + domain + '','WHOIS','width=700,height=500,scrollbars=1,menubar=no,toolbar=no,status=no,location=no')
}


// ------------------------------------------------------------------ //
// CLOSE POPUP & CHANGE PARENT URL

function closego(url){
opener.location='' + url + '';
self.close();
}


// ------------------------------------------------------------------ //
// RETURN VALUE ##

function ReturnValue(varib1){
var y=document.getElementById(varib1);
returnvalue=y.value;
return(returnvalue);
}


// ------------------------------------------------------------------ //
// NO DOUBLE CLICK FORM ##


var submitted=false;
function Validator(form){
 if(submitted){
 alert('Please wait for your transaction to complete to avoid double billing.')
 return(false);
 }
submitted=true;
return(true);
}


// ------------------------------------------------------------------ //
// FLASH (INTERNAL)


//USE FOLLOWING HTML WITH SCRIPT
//<script language="JavaScript" type="text/JavaScript" src="html/flash.js"></script>
//<script type="text/javascript">FlashMe('<?php echo"$config[doflash]"; ?>','header1','773','250');</script>

function FlashMe(flash,file,width,height){
 if(flash==1){
  document.write('<object type="application/x-shockwave-flash" data="html/flash/'+file+'.swf" width="'+width+'" height="'+height+'">');
  document.write('<param name="movie" value="html/flash/'+file+'.swf">');
  document.write('</object>');
 }else{
  document.write('<img src="html/images/'+file+'.jpg" width="'+width+'" height="'+height+'">');
 }
}


// ------------------------------------------------------------------ //
// FLASH (EXTERNAL)


//USE FOLLOWING HTML WITH SCRIPT
//<script language="JavaScript" type="text/JavaScript" src="html/flash.js"></script>
//<script type="text/javascript">FlashMe('<?php echo"$config[doflash]"; ?>','file.swf','image.gif','773','250');</script>

function FlashMe(flash,swffile,imgfile,width,height){
 if(flash==1){
  document.write('<object type="application/x-shockwave-flash" data="'+swffile+'" width="'+width+'" height="'+height+'">');
  document.write('<param name="movie" value="'+swffile+'">');
  document.write('</object>');
 }else{
  document.write('<img src="'+imgfile+'" width="'+width+'" height="'+height+'">');
 }
}
      

// ------------------------------------------------------------------ //
// CHANGE FORM (MULTI-FUNCTION) ©2004 ebizland

//ChangeForm('ID','FUNCT','VALUE')

function ChangeForm(varib1,varib2,varib3){
var y=document.getElementById(varib1);
 if(varib2=="checked"){
  if(varib3){
  y.checked=+varib3;
  }else{
   if(y.checked){
   y.checked=false;
   }else{
   y.checked=true;
   }
  }
 }
 if(varib2=="disabled"){
  if(varib3){
  y.disabled=+varib3;
  }else{
   if(y.disabled){
   y.disabled=false;
   }else{
   y.disabled=true;
   }
  }
 }
 if(varib2=="selected"){
  if(varib3){
  y.selected=varib3;
  }else{
   if(y.selected){
   y.selected=false;
   }else{
   y.selected=true;
   }
  }
 }
 if(varib2=="class"){
  if(varib3){
  y.className=varib3;
  }else{
   if(y.className=="hide"){
   y.className="show";
   }else{
   y.className="hide";
   }
  }
 }
 if(varib2=="value"){
  if(varib3){
  y.value=varib3;
  }else{
  y.value="";
  }
 }
 if(varib2=="src"){
  if(varib3){
  y.src=varib3;
  }
 }
}



//-->// JavaScript Document