sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);



  function breadcrumbs(){
    sURL = new String;
    bits = new Object;
    var x = 0;
    var stop = 0;
    var output = "<div class=breadcrumb><A HREF=/>ABOUTAsia</A> &raquo; ";

    sURL = location.href;
    sURL = sURL.slice(8,sURL.length);
    chunkStart = sURL.indexOf("/");
    sURL = sURL.slice(chunkStart+1,sURL.length)

    while(!stop){
      chunkStart = sURL.indexOf("/");
      if (chunkStart != -1){
        bits[x] = sURL.slice(0,chunkStart)
        sURL = sURL.slice(chunkStart+1,sURL.length);
      }else{
        stop = 1;
      }
      x++;
    }

    for(var i in bits){
      output += "<A HREF=\"";
      for(y=1;y<x-i;y++){
        output += "../";
      }
      output += bits[i] + "/\">" + bits[i] + "</A> &raquo; ";
    }
    document.write(output + document.title);
	document.write("</div>");
  }

var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-17219046-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

/*scripts below used in quote request form*/
function setViz(id, visibility) {
	document.getElementById(id).style.display = visibility;
	}
	function clearField(id) {
	document.getElementById(id).value="";
	}

function Viz(id, visibility) {
	document.getElementById(id).style.display = visibility;
	}
	function clearField(id) {
	document.getElementById(id).value="";
	}

		function chooseTitle()
			{ var val=0; for (i=0; i<document.formQuote.Title.length;i++)
			{ if(document.formQuote.Title[i].checked==true)
			{ val=document.formQuote.Title[i].value; if(val=="other")
			{ document.formQuote.OtherTitle.disabled=false; document.formQuote.OtherTitle.focus(); 
			} else
			{ document.formQuote.OtherTitle.disabled=true; document.formQuote.OtherTitle.value="";
			}}}}


var url_before = "http://www.aboutasiatravel.com/images/bannerpics/cambodia/";
var url_after = ".jpg";
var min = 1;
var max = 10;
function printRndImg() {
document.write('<img class="float-left" src="' + url_before + ( min + Math.round(Math.random()*(max-min)) ) + url_after + '" border="0" alt="see angkor wat with ABOUTAsia travel, the Cambodia travel siem reap">')
}
