// !BEGIN script type="text/javascript">
// <![CDATA[
function display(obj,id1,id2) {
txt = obj.options[obj.selectedIndex].value;
document.getElementById(id1).style.display = 'none';
document.getElementById(id2).style.display = 'none';
if ( txt.match(id1) ) {
document.getElementById(id1).style.display = 'block';
}
if ( txt.match(id2) ) {
document.getElementById(id2).style.display = 'block';
}
}
// ]]>
// /END /script>

// !BEGIN script type="text/javascript">
function toggle(flag){
  var div1 = document.getElementById('divTxt1');
  var div2 = document.getElementById('divTxt2');
  if(div1){
    div1.style.display = flag?'block':'none';
  }
  if(div2){
    div2.style.display = flag?'block':'none';
  }
}
// /END /script>


// !BEGIN script type="text/javascript"> Highlight Script
var highlightcolor="#ffffcc";
 
var ns6=document.getElementById&&!document.all;
var previous='';
var eventobj;
 
//highlight only form elements
var intended=/INPUT|TEXTAREA|SELECT|OPTION/;
 
//check whether element clicked is form element
function checkel(which){
        if (which.style&&intended.test(which.tagName)){
                if (ns6&&eventobj.nodeType==3){
                        eventobj=eventobj.parentNode.parentNode;
                }
                return true;
        }
        else {
                return false;
        }
}
 
//highlight form element
function highlight(e){
        eventobj=ns6? e.target : event.srcElement;
        if (previous!=''){
                if (checkel(previous))
                        previous.style.backgroundColor='';
                previous=eventobj;
                if (checkel(eventobj))
                        eventobj.style.backgroundColor=highlightcolor;
        }
        else{
                if (checkel(eventobj))
                        eventobj.style.backgroundColor=highlightcolor;
                previous=eventobj;
        }
}
hs.graphicsDir = 'graphics/';
hs.wrapperClassName = 'wide-border';
// /END/script>


// !BEGIN script type="text/javascript">
function focusit() {
        var obj = document.getElementById('one');
        obj.style.backgroundColor=highlightcolor;
        obj.focus();
        obj.select();
}
window.onload = focusit;
// /END /script>

// !BEGIN script type='text/javascript'>
function highLight(jsID) {
    document.getElementById(jsID).style.backgroundColor='#e3e6e9';
}
function highLightOff(jsID) {
    document.getElementById(jsID).style.backgroundColor='';
}
// /END /script>

// !BEGIN script type="text/javascript">
ddsmoothmenu.init({
	mainmenuid: "smoothmenu1", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})
// /END /script>


// !BEGIN script type="text/javascript"> Main - Home slider
$(window).load(function() {
$('#slider').nivoSlider();
});
// /END /script>
