//DW Scripts
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->

//END of DW Scripts

var win;
var myrBtn;
var oldrBtn;

function artComment(){
	if(document.getElementById("artComment")){
		setTimeout("editor_generate('artComment')", 0000)
	}
}

function SumTotalcheckEnter(e){
	var characterCode
	if(e && e.which){
		e = e
		characterCode = e.which
	} else {
		e = event
		characterCode = e.keyCode
	}
	if(characterCode == 13){	
		if(document.getElementById("idUserName").value=='' || document.getElementById("idPassword").value==''){
			alert('Username and Password Required')
		} else {
			document.getElementById("LoginForm").submit()
			return false 
		}		
	} else {
		return true 
	}
	
}



function ajaxLoaderBusy(thisId){	
	try {tval.remove(); tval='';}catch(e) {tval=getBusyOverlay(id,{color:'blue',opacity:0.25});}
}

function ajaxLoader(url,id) {
  if (document.getElementById) {
    var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
  }
  if (x) {
    x.onreadystatechange = function() {
      if (x.readyState == 4 && x.status == 200) {
        el = document.getElementById(id);
        el.innerHTML = x.responseText;
      }
    }
    x.open("GET", url, true);
    x.send(null);
  }
}

function ajaxLoader2(url,id) {
  if (document.getElementById) {
    var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
  }
  if (x) {
    x.onreadystatechange = function() {
      if (x.readyState == 4 && x.status == 200) {
        el = document.getElementById(id);
        el.innerHTML = x.responseText;
      }
    }
    x.open("GET", url, true);
    x.send(null);
  }
}

function ajaxLoader3(url,id) {
  if (document.getElementById) {
    var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
  }
  if (x) {
    x.onreadystatechange = function() {
      if (x.readyState == 4 && x.status == 200) {
        el = document.getElementById(id);
        el.innerHTML = x.responseText;
      }
    }
    x.open("GET", url, true);
    x.send(null);
  }
}

function ajaxPageLoader(url,id){
	ajaxpage(url,id,{},{color:'#3B5997', size:128, type:'o'})	
}

function loadIncludes(pageContent,contentLeft) {
	//alert(pageContent)
//getBusyOverlay(document.getElementById("include_content"),{},{color:'#3B5997', size:128, type:'o'});
var newMenu;
var newContent;
var rightContent;
var searchQuery;
var imgCap;
var newQuickLinks;
var taggleTabs;
	clearTimeout(newMenu);
	clearTimeout(newContent);
	//clearTimeout(rightContent);
	clearTimeout(searchQuery);
	clearTimeout(imgCap);
	clearTimeout(newQuickLinks);
	clearTimeout(taggleTabs);
	//rightContent = setTimeout ("ajaxLoader('" + contentRight + "','podWrapperRight')", 0000);
	newContent = setTimeout ("ajaxPageLoader('" + pageContent + "','include_content')", 0000);
	//newQuickLinks = setTimeout ("ajaxLoader3('" + contentLeft + "','podWrapperLeft')", 0000);
	//imgCap = setTimeout (arc90_imgcaption, 3000);
	taggleTabs = setTimeout (taggleTab1, 1000);
	taggleTabs = setTimeout (taggleTab2, 1000);
	taggleTabs = setTimeout (taggleTab3, 1000);
	taggleTabs = setTimeout (taggleTab4, 1000);
	//setTimeout (fade,3000)
	
}

function rBan1(){
	document.all.rBtn1.className = 'rotateBtnOn';
	document.all.rBtn2.className = 'rotateBtnOff';
	document.all.rBtn3.className = 'rotateBtnOff';
	document.all.rBtn4.className = 'rotateBtnOff';
	document.all.rBtn5.className = 'rotateBtnOff';
}
function rBan2(){
	document.all.rBtn1.className = 'rotateBtnOff';
	document.all.rBtn2.className = 'rotateBtnOn';
	document.all.rBtn3.className = 'rotateBtnOff';
	document.all.rBtn4.className = 'rotateBtnOff';
	document.all.rBtn5.className = 'rotateBtnOff';
}
function rBan3(){
	document.all.rBtn1.className = 'rotateBtnOff';
	document.all.rBtn2.className = 'rotateBtnOff';
	document.all.rBtn3.className = 'rotateBtnOn';
	document.all.rBtn4.className = 'rotateBtnOff';
	document.all.rBtn5.className = 'rotateBtnOff';
}
function rBan4(){
	document.all.rBtn1.className = 'rotateBtnOff';
	document.all.rBtn2.className = 'rotateBtnOff';
	document.all.rBtn3.className = 'rotateBtnOff';
	document.all.rBtn4.className = 'rotateBtnOn';
	document.all.rBtn5.className = 'rotateBtnOff';
}
function rBan5(){
	document.all.rBtn1.className = 'rotateBtnOff';
	document.all.rBtn2.className = 'rotateBtnOff';
	document.all.rBtn3.className = 'rotateBtnOff';
	document.all.rBtn4.className = 'rotateBtnOff';
	document.all.rBtn5.className = 'rotateBtnOn';
}
function setrBan(myrBtn) {
	if(myrBtn == 1){
		clearTimeout(oldrBtn);
		document.all.r1.style.display='';
		document.all.r2.style.display='none';
		document.all.r3.style.display='none';
		document.all.r4.style.display='none';
		document.all.r5.style.display='none';
		rBan1();
		oldrBtn = setTimeout("setrBan(2)", 7000);
	}
	if(myrBtn == 2){
		clearTimeout(oldrBtn);
		document.all.r1.style.display='none';
		document.all.r2.style.display='';
		document.all.r3.style.display='none';
		document.all.r4.style.display='none';
		document.all.r5.style.display='none';
		rBan2();
		oldrBtn = setTimeout("setrBan(3)", 7000);
	}
	if(myrBtn == 3){
		clearTimeout(oldrBtn);
		document.all.r1.style.display='none';
		document.all.r2.style.display='none';
		document.all.r3.style.display='';
		document.all.r4.style.display='none';
		document.all.r5.style.display='none';
		rBan3();
		oldrBtn = setTimeout("setrBan(4)", 7000);
	}
	if(myrBtn == 4){
		clearTimeout(oldrBtn);
		document.all.r1.style.display='none';
		document.all.r2.style.display='none';
		document.all.r3.style.display='none';
		document.all.r4.style.display='';
		document.all.r5.style.display='none';
		rBan4();
		oldrBtn = setTimeout("setrBan(5)", 7000);
	}
	if(myrBtn == 5){
		clearTimeout(oldrBtn);
		document.all.r1.style.display='none';
		document.all.r2.style.display='none';
		document.all.r3.style.display='none';
		document.all.r4.style.display='none';
		document.all.r5.style.display='';
		rBan5();
		oldrBtn = setTimeout("setrBan(1)", 7000);
	}
}
function nextrBan(){
	if(document.all.rBtn1.className=="rotateBtnOn"){
	clearTimeout(oldrBtn);
		oldrBtn = setTimeout("setrBan(2)", 0000);
	}
	if(document.all.rBtn2.className=="rotateBtnOn"){
	clearTimeout(oldrBtn);
		oldrBtn = setTimeout("setrBan(3)", 0000);
	}
	if(document.all.rBtn3.className=="rotateBtnOn"){
	clearTimeout(oldrBtn);
		oldrBtn = setTimeout("setrBan(4)", 0000);
	}
	if(document.all.rBtn4.className=="rotateBtnOn"){
	clearTimeout(oldrBtn);
		oldrBtn = setTimeout("setrBan(5)", 0000);
	}
	if(document.all.rBtn5.className=="rotateBtnOn"){
	clearTimeout(oldrBtn);
		oldrBtn = setTimeout("setrBan(1)", 0000);
	}
}
function backrBan(){
	if(document.all.rBtn1.className=="rotateBtnOn"){
	clearTimeout(oldrBtn);
		oldrBtn = setTimeout("setrBan(5)", 0000);
	}
	if(document.all.rBtn2.className=="rotateBtnOn"){
	clearTimeout(oldrBtn);
		oldrBtn = setTimeout("setrBan(1)", 0000);
	}
	if(document.all.rBtn3.className=="rotateBtnOn"){
	clearTimeout(oldrBtn);
		oldrBtn = setTimeout("setrBan(2)", 0000);
	}
	if(document.all.rBtn4.className=="rotateBtnOn"){
	clearTimeout(oldrBtn);
		oldrBtn = setTimeout("setrBan(3)", 0000);
	}
	if(document.all.rBtn5.className=="rotateBtnOn"){
	clearTimeout(oldrBtn);
		oldrBtn = setTimeout("setrBan(4)", 0000);
	}
}
function stopBan(){
	clearTimeout(oldrBtn);	
}
function playBan(){
	clearTimeout(oldrBtn);
	oldrBtn = setTimeout(nextrBan, 7000);
}
function rBan() {
var showrBanDiv;
var showrBan1;
	//clearTimeout(showrBanDiv);
	clearTimeout(showrBan1);
	showrBan1 = setTimeout("setrBan(1)", 1000);
	//showrBanDiv = setTimeout("document.all.mipbMainList.style.display=''", 1000);
}
function taggleTab1() {
if (!document.getElementById("taggleTab1")) 
		return false;	
		var nav = document.getElementById("taggleTab1");	
		var navItem = nav.getElementsByTagName("li");	
		for (var i = 0; i < navItem.length; i++){
			navItem[i].onclick=function() {
				var otherLinks = document.getElementById("taggleTab1").getElementsByTagName("li");	
				for (var j = 0; j != otherLinks.length; j++){
					this.className = "taggleTabOn"
					otherLinks[j].className = "taggleTabOff";
				}
		}
	}
}
function taggleTab2() {
if (!document.getElementById("taggleTab2")) 
		return false;	
		var nav = document.getElementById("taggleTab2")
		var navItem = nav.getElementsByTagName("li");	
		for (var i = 0; i < navItem.length; i++){
			navItem[i].onclick=function() {
				var otherLinks = document.getElementById("taggleTab2").getElementsByTagName("li");	
				for (var j = 0; j != otherLinks.length; j++){
					this.className = "taggleTab2On"
					otherLinks[j].className = "taggleTab2Off";
				}
		}
	}
}
function taggleTab3(){
if (!document.getElementById("taggleTab3")) 
		return false;	
		var nav = document.getElementById("taggleTab3")
		var navItem = nav.getElementsByTagName("li");	
		for (var i = 0; i < navItem.length; i++){
			navItem[i].onclick=function() {
				var otherLinks = document.getElementById("taggleTab3").getElementsByTagName("li");	
				for (var j = 0; j != otherLinks.length; j++){
					this.className = "taggleTab2On"
					otherLinks[j].className = "taggleTab2Off";
				}
		}
	}
}
function taggleTab4() {
if (!document.getElementById("taggleTab4")) 
		return false;	
		var nav = document.getElementById("taggleTab4")
		var navItem = nav.getElementsByTagName("li");	
		for (var i = 0; i < navItem.length; i++){
			navItem[i].onclick=function() {
				var otherLinks = document.getElementById("taggleTab4").getElementsByTagName("li");	
				for (var j = 0; j != otherLinks.length; j++){
					this.className = "taggleTabOn";
					otherLinks[j].className = "taggleTabOff";
				}
		}
	}
}

function galleryThumb() {
	if (!document.getElementById("galleryThumbs")) 
		return false;	
		var nav = document.getElementById("galleryThumbs")
		var navItem = nav.getElementsByTagName("img");	
		for (var i = 0; i < navItem.length; i++){
			navItem[i].onclick=function() {
				var otherLinks = document.getElementById("galleryThumbs").getElementsByTagName("img");	
				for (var j = 0; j != otherLinks.length; j++){
					this.className = "galleryThumbOn";
					var thumbUrl = this.src;	
					var imgUrl = thumbUrl.replace("thumbs/", "");
					imageLoader.src = imgUrl;
					otherLinks[j].className = "galleryThumbOff"; 
				}
		}
	}
}


//===================================================================================================================================
//SELF PACED REQUEST FORM
<!--
var n;
var p;
var p1;
function ValidatePhone(){
p=p1.value
if(p.length==3){
	//d10=p.indexOf('(')
	pp=p;
	d4=p.indexOf('(')
	d5=p.indexOf(')')
	if(d4==-1){
		pp="("+pp;
	}
	if(d5==-1){
		pp=pp+")";
	}
	//pp="("+pp+")";
	document.form2.workphone.value="";
	document.form2.workphone.value=pp;
}
if(p.length>3){
	d1=p.indexOf('(')
	d2=p.indexOf(')')
	if (d2==-1){
		l30=p.length;
		p30=p.substring(0,4);
		//alert(p30);
		p30=p30+")"
		p31=p.substring(4,l30);
		pp=p30+p31;
		//alert(p31);
		document.form2.workphone.value="";
		document.form2.workphone.value=pp;
	}
	}
if(p.length>5){
	p11=p.substring(d1+1,d2);
	if(p11.length>3){
	p12=p11;
	l12=p12.length;
	l15=p.length
	//l12=l12-3
	p13=p11.substring(0,3);
	p14=p11.substring(3,l12);
	p15=p.substring(d2+1,l15);
	document.form2.workphone.value="";
	pp="("+p13+")"+p14+p15;
	document.form2.workphone.value=pp;
	//obj1.value="";
	//obj1.value=pp;
	}
	l16=p.length;
	p16=p.substring(d2+1,l16);
	l17=p16.length;
	if(l17>3&&p16.indexOf('-')==-1){
		p17=p.substring(d2+1,d2+4);
		p18=p.substring(d2+4,l16);
		p19=p.substring(0,d2+1);
		//alert(p19);
	pp=p19+p17+"-"+p18;
	document.form2.workphone.value="";
	document.form2.workphone.value=pp;
	//obj1.value="";
	//obj1.value=pp;
	}
}
//}
setTimeout(ValidatePhone,100)
}
function getIt(m){
n=m.name;
//p1=document.forms[0].elements[n]
p1=m
ValidatePhone()
}
function testphone(obj1){
p=obj1.value
//alert(p)
p=p.replace("(","")
p=p.replace(")","")
p=p.replace("-","")
p=p.replace("-","")
//alert(isNaN(p))
if (isNaN(p)==true){
alert("Check phone");
return false;
}
}
//  End -->
<!--
var good;
function checkEmailAddress(field) {

var goodEmail = 
field.value.match(/\b(^(\S+@).+((\.mil)|(\.gov)|(\..{2,2}))$)\b/gi);

if (goodEmail){
   good = true
} else {
   alert('Please enter an official e-mail address. (e.g. .mil, .gov)')
   field.focus()
   field.select()
   good = false
   }
}

function sendOff(){
   good = true
   checkEmailAddress(document.form2.email1)  
	  
}

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_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}
//-->
	
	
//====================================================================================================================================
/**
 * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;


function loadFLV(strMovie,artRating){
	//alert(courseMovie)
	var loadFlash;
	clearTimeout(loadFlash);
	loadFlash = setTimeout (loadMe, 2000);
	function loadMe(){	
		if (document.getElementById("sallt")){
		  var s2 = new SWFObject("/Multimedia/Video Gallery/flash/flvplayer.swf","playlist","510","560","7"); 
			s2.addVariable("allowfullscreen","true");
			s2.addVariable("file","/Multimedia/Video Gallery/playlist/mifltc_arguments.xml");
			s2.addVariable("displayheight","360");
			s2.addVariable("backcolor","0x000000");
			s2.addVariable("frontcolor","0xCCCCCC");
			s2.addVariable("lightcolor","0x557722");
			s2.addVariable("width","510");
			s2.addVariable("height","560");
			s2.addVariable("thumbsinplaylist","true");
			s2.addVariable("shuffle","false");
			s2.write("sallt");	
	  	}
		//if (document.getElementById("umiLogo")){
//		  var s3 = new SWFObject("/flash/umi_logo.swf","logo","140","118","8"); 
//			s3.addVariable("allowfullscreen","false");
//			s3.addVariable("width","140");
//			s3.addVariable("height","118");
//			s3.addVariable("wmode","transparent");
//			s3.write("umiLogo");	
//	  	}
		if (document.getElementById("sliderHome")){
		  var s3 = new SWFObject("/flash/sliderHome.swf","slider","580","300","8"); 
			s3.addVariable("allowfullscreen","false");
			s3.addVariable("width","580");
			s3.addVariable("height","300");
			s3.addVariable("scale","noborder");
			s3.addVariable("backcolor","0x181818");
			s3.addVariable("frontcolor","0x181818");
			s3.addVariable("bgcolor","0x181818");
			s3.addVariable("wmode","transparent");
			s3.write("sliderHome");	
	  	}		
		if (document.getElementById("courseDemo")){
		  var s3 = new SWFObject("/courses/flash/"+strMovie+"_skin.swf","CaptivateMovie","440","312","8"); 
			s3.addVariable("allowfullscreen","false");
			s3.addVariable("width","440");
			s3.addVariable("height","312");
			s3.write("courseDemo");
			//document.getElementById('CaptivateMovie').focus();
			//document.CaptivateMovie.focus();
	  	}
		if (document.getElementById("starRating")){
		  var s3 = new SWFObject("/flash/starRating.swf?rating=1&articleID="+strMovie,"starRatingMovie","84","15","8"); 
			s3.addVariable("allowfullscreen","false");
			s3.addVariable("width","84");
			s3.addVariable("height","15");
			s3.write("starRating");
	  	}
		if (document.getElementById("starCurRating")){
		  var s3 = new SWFObject("/flash/starRating.swf?rating="+artRating,"starRatingMovie","84","15","8"); 
			s3.addVariable("allowfullscreen","false");
			s3.addVariable("width","84");
			s3.addVariable("height","15");
			s3.write("starCurRating");
	  	}
	}
}
function loadPlayList(myList){	
	  var s2 = new SWFObject("/Multimedia/Video Gallery/flash/flvplayer.swf","playlist","510","560","7"); 
		s2.addVariable("allowfullscreen","true");
		s2.addVariable("file",myList);
		s2.addVariable("displayheight","360");
		s2.addVariable("backcolor","0x000000");
		s2.addVariable("frontcolor","0xCCCCCC");
		s2.addVariable("lightcolor","0x557722");
		s2.addVariable("width","510");
		s2.addVariable("height","560");
		s2.addVariable("thumbsinplaylist","true");
		s2.addVariable("shuffle","false");
		s2.write("sallt");	
}

//====================================================================================================================================
if(typeof com == "undefined") var com = new Object();
if(typeof com.deconcept == "undefined") com.deconcept = new Object();
if(typeof com.deconcept.util == "undefined") com.deconcept.util = new Object();
if(typeof com.deconcept.FlashObjectUtil == "undefined") com.deconcept.FlashObjectUtil = new Object();
com.deconcept.FlashObject = function(swf, id, w, h, ver, c, useExpressInstall, quality, xiRedirectUrl, redirectUrl, detectKey){
  if (!document.createElement || !document.getElementById) return;
  this.DETECT_KEY = detectKey ? detectKey : 'detectflash';
  this.skipDetect = com.deconcept.util.getRequestParameter(this.DETECT_KEY);
  this.params = new Object();
  this.variables = new Object();
  this.attributes = new Array();
  this.useExpressInstall = useExpressInstall;

  if(swf) this.setAttribute('swf', swf);
  if(id) this.setAttribute('id', id);
  if(w) this.setAttribute('width', w);
  if(h) this.setAttribute('height', h);
  if(ver) this.setAttribute('version', new com.deconcept.PlayerVersion(ver.toString().split(".")));
  this.installedVer = com.deconcept.FlashObjectUtil.getPlayerVersion(this.getAttribute('version'), useExpressInstall);
  if(c) this.addParam('bgcolor', c);
  var q = quality ? quality : 'high';
  this.addParam('quality', q);
  var xir = (xiRedirectUrl) ? xiRedirectUrl : window.location;
  this.setAttribute('xiRedirectUrl', xir);
  this.setAttribute('redirectUrl', '');
  if(redirectUrl) this.setAttribute('redirectUrl', redirectUrl);
}
com.deconcept.FlashObject.prototype = {
  setAttribute: function(name, value){
    this.attributes[name] = value;
  },
  getAttribute: function(name){
    return this.attributes[name];
  },
  addParam: function(name, value){
    this.params[name] = value;
  },
  getParams: function(){
    return this.params;
  },
  addVariable: function(name, value){
    this.variables[name] = value;
  },
  getVariable: function(name){
    return this.variables[name];
  },
  getVariables: function(){
    return this.variables;
  },
  createParamTag: function(n, v){
    var p = document.createElement('param');
    p.setAttribute('name', n);
    p.setAttribute('value', v);
    return p;
  },
  getVariablePairs: function(){
    var variablePairs = new Array();
    var key;
    var variables = this.getVariables();
    for(key in variables){
      variablePairs.push(key +"="+ variables[key]);
    }
    return variablePairs;
  },
  getFlashHTML: function() {
    var flashNode = "";
    if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture
      if (this.getAttribute("doExpressInstall")) this.addVariable("MMplayerType", "PlugIn");
      flashNode = '<embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'"';
      flashNode += ' id="'+ this.getAttribute('id') +'" name="'+ this.getAttribute('id') +'" ';
      var params = this.getParams();
       for(var key in params){ flashNode += [key] +'="'+ params[key] +'" '; }
      var pairs = this.getVariablePairs().join("&");
       if (pairs.length > 0){ flashNode += 'flashvars="'+ pairs +'"'; }
      flashNode += '/>';
    } else { // PC IE
      if (this.getAttribute("doExpressInstall")) this.addVariable("MMplayerType", "ActiveX");
      flashNode = '<object id="'+ this.getAttribute('id') +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'">';
      flashNode += '<param name="movie" value="'+ this.getAttribute('swf') +'" />';
      var params = this.getParams();
      for(var key in params) {
       flashNode += '<param name="'+ key +'" value="'+ params[key] +'" />';
      }
      var pairs = this.getVariablePairs().join("&");
      if(pairs.length > 0) {flashNode += '<param name="flashvars" value="'+ pairs +'" />';}
      flashNode += "</object>";
    }
    return flashNode;
  },
  write: function(elementId){
    if(this.useExpressInstall) {
     
      var expressInstallReqVer = new com.deconcept.PlayerVersion([6,0,65]);
      if (this.installedVer.versionIsValid(expressInstallReqVer) && !this.installedVer.versionIsValid(this.getAttribute('version'))) {
        this.setAttribute('doExpressInstall', true);
        this.addVariable("MMredirectURL", escape(this.getAttribute('xiRedirectUrl')));
        document.title = document.title.slice(0, 47) + " - Flash Player Installation";
        this.addVariable("MMdoctitle", document.title);
      }
    } else {
      this.setAttribute('doExpressInstall', false);
    }
    if(this.skipDetect || this.getAttribute('doExpressInstall') || this.installedVer.versionIsValid(this.getAttribute('version'))){
      var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;
      n.innerHTML = this.getFlashHTML();
    }else{
      if(this.getAttribute('redirectUrl') != "") {
        document.location.replace(this.getAttribute('redirectUrl'));
      }
    }
  }
}


com.deconcept.FlashObjectUtil.getPlayerVersion = function(reqVer, xiInstall){
  var PlayerVersion = new com.deconcept.PlayerVersion(0,0,0);
  if(navigator.plugins && navigator.mimeTypes.length){
    var x = navigator.plugins["Shockwave Flash"];
    if(x && x.description) {
      PlayerVersion = new com.deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));
    }
  }else{
    try{
      var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
      for (var i=3; axo!=null; i++) {
        axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);
        PlayerVersion = new com.deconcept.PlayerVersion([i,0,0]);
      }
    }catch(e){}
    if (reqVer && PlayerVersion.major > reqVer.major) return PlayerVersion; 
    if (!reqVer || ((reqVer.minor != 0 || reqVer.rev != 0) && PlayerVersion.major == reqVer.major) || PlayerVersion.major != 6 || xiInstall) {
      try{
        PlayerVersion = new com.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
      }catch(e){}
    }
  }
  return PlayerVersion;
}
com.deconcept.PlayerVersion = function(arrVersion){
  this.major = parseInt(arrVersion[0]) || 0;
  this.minor = parseInt(arrVersion[1]) || 0;
  this.rev = parseInt(arrVersion[2]) || 0;
}
com.deconcept.PlayerVersion.prototype.versionIsValid = function(fv){
  if(this.major < fv.major) return false;
  if(this.major > fv.major) return true;
  if(this.minor < fv.minor) return false;
  if(this.minor > fv.minor) return true;
  if(this.rev < fv.rev) return false;
  return true;
}

com.deconcept.util = {
  getRequestParameter: function(param){
    var q = document.location.search || document.location.hash;
    if(q){
      var startIndex = q.indexOf(param +"=");
      var endIndex = (q.indexOf("&", startIndex) > -1) ? q.indexOf("&", startIndex) : q.length;
      if (q.length > 1 && startIndex > -1) {
        return q.substring(q.indexOf("=", startIndex)+1, endIndex);
      }
    }
    return "";
  }
}


if (Array.prototype.push == null) { Array.prototype.push = function(item) { this[this.length] = item; return this.length; }}


var getQueryParamValue = com.deconcept.util.getRequestParameter;
var FlashObject = com.deconcept.FlashObject;
//===============================================================================================
/* --- BoxOver ---
/* --- v 2.1 17th June 2006
By Oliver Bryant with help of Matthew Tagg
http://boxover.swazz.org */

if (typeof document.attachEvent!='undefined') {
   window.attachEvent('onload',init);
   document.attachEvent('onmousemove',moveMouse);
   document.attachEvent('onclick',checkMove); }
else {
   window.addEventListener('load',init,false);
   document.addEventListener('mousemove',moveMouse,false);
   document.addEventListener('click',checkMove,false);
}

var oDv=document.createElement("div");
var dvHdr=document.createElement("div");
var dvBdy=document.createElement("div");
var windowlock,boxMove,fixposx,fixposy,lockX,lockY,fixx,fixy,ox,oy,boxLeft,boxRight,boxTop,boxBottom,evt,mouseX,mouseY,boxOpen,totalScrollTop,totalScrollLeft;
boxOpen=false;
ox=10;
oy=10;
lockX=0;
lockY=0;

function init() {
	oDv.appendChild(dvHdr);
	oDv.appendChild(dvBdy);
	oDv.style.position="absolute";
	oDv.style.visibility='hidden';
	document.body.appendChild(oDv);	
}

function defHdrStyle() {
	dvHdr.style.fontWeight='bold';
	dvHdr.style.width='150px';
	dvHdr.style.fontFamily='arial';
	dvHdr.style.border='1px solid #000000';
	dvHdr.style.padding='3';
	dvHdr.style.fontSize='11';
	dvHdr.style.color='#cccccc';
	dvHdr.style.background='#FFFFFF';
	dvHdr.style.filter='alpha(opacity=100)'; // IE
	dvHdr.style.opacity='0.85'; // FF
}

function defBdyStyle() {
	dvBdy.style.border='2px solid #7F9DB9';
	dvBdy.style.width='150px';
	dvBdy.style.fontFamily='arial';
	dvBdy.style.fontSize='11';
	dvBdy.style.padding='3';
	dvBdy.style.color='#cccccc';
	dvBdy.style.background='#FFFFFF';
	dvBdy.style.filter='alpha(opacity=100)'; // IE
	dvBdy.style.opacity='0.85'; // FF
}

function checkElemBO(txt) {
if (!txt || typeof(txt) != 'string') return false;
if ((txt.indexOf('header')>-1)&&(txt.indexOf('body')>-1)&&(txt.indexOf('[')>-1)&&(txt.indexOf('[')>-1)) 
   return true;
else
   return false;
}

function scanBO(curNode) {
	  if (checkElemBO(curNode.title)) {
         curNode.boHDR=getParam('header',curNode.title);
         curNode.boBDY=getParam('body',curNode.title);
			curNode.boCSSBDY=getParam('cssbody',curNode.title);			
			curNode.boCSSHDR=getParam('cssheader',curNode.title);
			curNode.IEbugfix=(getParam('hideselects',curNode.title)=='on')?true:false;
			curNode.fixX=parseInt(getParam('fixedrelx',curNode.title));
			curNode.fixY=parseInt(getParam('fixedrely',curNode.title));
			curNode.absX=parseInt(getParam('fixedabsx',curNode.title));
			curNode.absY=parseInt(getParam('fixedabsy',curNode.title));
			curNode.offY=(getParam('offsety',curNode.title)!='')?parseInt(getParam('offsety',curNode.title)):10;
			curNode.offX=(getParam('offsetx',curNode.title)!='')?parseInt(getParam('offsetx',curNode.title)):10;
			curNode.fade=(getParam('fade',curNode.title)=='on')?true:false;
			curNode.fadespeed=(getParam('fadespeed',curNode.title)!='')?getParam('fadespeed',curNode.title):1;
			curNode.delay=(getParam('delay',curNode.title)!='')?parseInt(getParam('delay',curNode.title)):0;
			if (getParam('requireclick',curNode.title)=='on') {
				curNode.requireclick=true;
				document.all?curNode.attachEvent('onclick',showHideBox):curNode.addEventListener('click',showHideBox,false);
				document.all?curNode.attachEvent('onmouseover',hideBox):curNode.addEventListener('mouseover',hideBox,false);
			}
			else {// Note : if requireclick is on the stop clicks are ignored   			
   			if (getParam('doubleclickstop',curNode.title)!='off') {
   				document.all?curNode.attachEvent('ondblclick',pauseBox):curNode.addEventListener('dblclick',pauseBox,false);
   			}	
   			if (getParam('singleclickstop',curNode.title)=='on') {
   				document.all?curNode.attachEvent('onclick',pauseBox):curNode.addEventListener('click',pauseBox,false);
   			}
   		}
			curNode.windowLock=getParam('windowlock',curNode.title).toLowerCase()=='off'?false:true;
			curNode.title='';
			curNode.hasbox=1;
	   }
	   else
	      curNode.hasbox=2;   
}


function getParam(param,list) {
	var reg = new RegExp('([^a-zA-Z]' + param + '|^' + param + ')\\s*=\\s*\\[\\s*(((\\[\\[)|(\\]\\])|([^\\]\\[]))*)\\s*\\]');
	var res = reg.exec(list);
	var returnvar;
	if(res)
		return res[2].replace('[[','[').replace(']]',']');
	else
		return '';
}

function Left(elem){	
	var x=0;
	if (elem.calcLeft)
		return elem.calcLeft;
	var oElem=elem;
	while(elem){
		 if ((elem.tabsCurrentStyle)&& (!isNaN(parseInt(elem.tabsCurrentStyle.borderLeftWidth)))&&(x!=0))
		 	x+=parseInt(elem.tabsCurrentStyle.borderLeftWidth);
		 x+=elem.offsetLeft;
		 elem=elem.offsetParent;
	  } 
	oElem.calcLeft=x;
	return x;
	}

function Top(elem){
	 var x=0;
	 if (elem.calcTop)
	 	return elem.calcTop;
	 var oElem=elem;
	 while(elem){		
	 	 if ((elem.tabsCurrentStyle)&& (!isNaN(parseInt(elem.tabsCurrentStyle.borderTopWidth)))&&(x!=0))
		 	x+=parseInt(elem.tabsCurrentStyle.borderTopWidth); 
		 x+=elem.offsetTop;
	         elem=elem.offsetParent;
 	 } 
 	 oElem.calcTop=x;
 	 return x;
 	 
}

var ah,ab;
function applyStyles() {
	if(ab)
		oDv.removeChild(dvBdy);
	if (ah)
		oDv.removeChild(dvHdr);
	dvHdr=document.createElement("div");
	dvBdy=document.createElement("div");
	CBE.boCSSBDY?dvBdy.className=CBE.boCSSBDY:defBdyStyle();
	CBE.boCSSHDR?dvHdr.className=CBE.boCSSHDR:defHdrStyle();
	dvHdr.innerHTML=CBE.boHDR;
	dvBdy.innerHTML=CBE.boBDY;
	ah=false;
	ab=false;
	if (CBE.boHDR!='') {		
		oDv.appendChild(dvHdr);
		ah=true;
	}	
	if (CBE.boBDY!=''){
		oDv.appendChild(dvBdy);
		ab=true;
	}	
}

var CSE,iterElem,LSE,CBE,LBE, totalScrollLeft, totalScrollTop, width, height ;
var ini=false;

// Customised function for inner window dimension
function SHW() {
   if (document.body && (document.body.clientWidth !=0)) {
      width=document.body.clientWidth;
      height=document.body.clientHeight;
   }
   if (document.documentElement && (document.documentElement.clientWidth!=0) && (document.body.clientWidth + 20 >= document.documentElement.clientWidth)) {
      width=document.documentElement.clientWidth;   
      height=document.documentElement.clientHeight;   
   }   
   return [width,height];
}


var ID=null;
function moveMouse(e) {
   //boxMove=true;
	e?evt=e:evt=event;
	
	CSE=evt.target?evt.target:evt.srcElement;
	
	if (!CSE.hasbox) {
	   // Note we need to scan up DOM here, some elements like TR don't get triggered as srcElement
	   iElem=CSE;
	   while ((iElem.parentNode) && (!iElem.hasbox)) {
	      scanBO(iElem);
	      iElem=iElem.parentNode;
	   }	   
	}
	
	if ((CSE!=LSE)&&(!isChild(CSE,dvHdr))&&(!isChild(CSE,dvBdy))){		
	   if (!CSE.boxItem) {
			iterElem=CSE;
			while ((iterElem.hasbox==2)&&(iterElem.parentNode))
					iterElem=iterElem.parentNode; 
			CSE.boxItem=iterElem;
			}
		iterElem=CSE.boxItem;
		if (CSE.boxItem&&(CSE.boxItem.hasbox==1))  {
			LBE=CBE;
			CBE=iterElem;
			if (CBE!=LBE) {
				applyStyles();
				if (!CBE.requireclick)
					if (CBE.fade) {
						if (ID!=null)
							clearTimeout(ID);
						ID=setTimeout("fadeIn("+CBE.fadespeed+")",CBE.delay);
					}
					else {
						if (ID!=null)
							clearTimeout(ID);
						COL=1;
						ID=setTimeout("oDv.style.visibility='visible';ID=null;",CBE.delay);						
					}
				if (CBE.IEbugfix) {hideSelects();} 
				fixposx=!isNaN(CBE.fixX)?Left(CBE)+CBE.fixX:CBE.absX;
				fixposy=!isNaN(CBE.fixY)?Top(CBE)+CBE.fixY:CBE.absY;			
				lockX=0;
				lockY=0;
				boxMove=true;
				ox=CBE.offX?CBE.offX:10;
				oy=CBE.offY?CBE.offY:10;
			}
		}
		else if (!isChild(CSE,dvHdr) && !isChild(CSE,dvBdy) && (boxMove))	{
			// The conditional here fixes flickering between tables cells.
			if ((!isChild(CBE,CSE)) || (CSE.tagName!='TABLE')) {   			
   			CBE=null;
   			if (ID!=null)
  					clearTimeout(ID);
   			fadeOut();
   			showSelects();
			}
		}
		LSE=CSE;
	}
	else if (((isChild(CSE,dvHdr) || isChild(CSE,dvBdy))&&(boxMove))) {
		totalScrollLeft=0;
		totalScrollTop=0;
		
		iterElem=CSE;
		while(iterElem) {
			if(!isNaN(parseInt(iterElem.scrollTop)))
				totalScrollTop+=parseInt(iterElem.scrollTop);
			if(!isNaN(parseInt(iterElem.scrollLeft)))
				totalScrollLeft+=parseInt(iterElem.scrollLeft);
			iterElem=iterElem.parentNode;			
		}
		if (CBE!=null) {
			boxLeft=Left(CBE)-totalScrollLeft;
			boxRight=parseInt(Left(CBE)+CBE.offsetWidth)-totalScrollLeft;
			boxTop=Top(CBE)-totalScrollTop;
			boxBottom=parseInt(Top(CBE)+CBE.offsetHeight)-totalScrollTop;
			doCheck();
		}
	}
	
	if (boxMove&&CBE) {
		// This added to alleviate bug in IE6 w.r.t DOCTYPE
		bodyScrollTop=document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;
		bodyScrollLet=document.documentElement&&document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;
		mouseX=evt.pageX?evt.pageX-bodyScrollLet:evt.clientX-document.body.clientLeft;
		mouseY=evt.pageY?evt.pageY-bodyScrollTop:evt.clientY-document.body.clientTop;
		if ((CBE)&&(CBE.windowLock)) {
			mouseY < -oy?lockY=-mouseY-oy:lockY=0;
			mouseX < -ox?lockX=-mouseX-ox:lockX=0;
			mouseY > (SHW()[1]-oDv.offsetHeight-oy)?lockY=-mouseY+SHW()[1]-oDv.offsetHeight-oy:lockY=lockY;
			mouseX > (SHW()[0]-dvBdy.offsetWidth-ox)?lockX=-mouseX-ox+SHW()[0]-dvBdy.offsetWidth:lockX=lockX;			
		}
		oDv.style.left=((fixposx)||(fixposx==0))?fixposx:bodyScrollLet+mouseX+ox+lockX+"px";
		oDv.style.top=((fixposy)||(fixposy==0))?fixposy:bodyScrollTop+mouseY+oy+lockY+"px";		
		
	}
}

function doCheck() {	
	if (   (mouseX < boxLeft)    ||     (mouseX >boxRight)     || (mouseY < boxTop) || (mouseY > boxBottom)) {
		if (!CBE.requireclick)
			fadeOut();
		if (CBE.IEbugfix) {showSelects();}
		CBE=null;
	}
}

function pauseBox(e) {
   e?evt=e:evt=event;
	boxMove=false;
	evt.cancelBubble=true;
}

function showHideBox(e) {
	oDv.style.visibility=(oDv.style.visibility!='visible')?'visible':'hidden';
}

function hideBox(e) {
	oDv.style.visibility='hidden';
}

var COL=0;
var stopfade=false;
function fadeIn(fs) {
		ID=null;
		COL=0;
		oDv.style.visibility='visible';
		fadeIn2(fs);
}

function fadeIn2(fs) {
		COL=COL+fs;
		COL=(COL>1)?1:COL;
		oDv.style.filter='alpha(opacity='+parseInt(100*COL)+')';
		oDv.style.opacity=COL;
		if (COL<1)
		 setTimeout("fadeIn2("+fs+")",20);		
}


function fadeOut() {
	oDv.style.visibility='hidden';
	
}

function isChild(s,d) {
	while(s) {
		if (s==d) 
			return true;
		s=s.parentNode;
	}
	return false;
}

var cSrc;
function checkMove(e) {
	e?evt=e:evt=event;
	cSrc=evt.target?evt.target:evt.srcElement;
	if ((!boxMove)&&(!isChild(cSrc,oDv))) {
		fadeOut();
		if (CBE&&CBE.IEbugfix) {showSelects();}
		boxMove=true;
		CBE=null;
	}
}

function showSelects(){
   var elements = document.getElementsByTagName("select");
   for (i=0;i< elements.length;i++){
      elements[i].style.visibility='visible';
   }
}

function hideSelects(){
   var elements = document.getElementsByTagName("select");
   for (i=0;i< elements.length;i++){
   elements[i].style.visibility='hidden';
   }
}
//=====================================================================================================================
/*

Image Caption v1.3
(c) Arc90, Inc.

http://www.arc90.com
http://lab.arc90.com

Licensed under : Creative Commons Attribution 2.5 http://creativecommons.org/licenses/by/2.5/

*/

/* Globals */
var arc90_navigator = navigator.userAgent.toLowerCase();
var arc90_isOpera = arc90_navigator.indexOf('opera') >= 0? true: false;
var arc90_isIE = arc90_navigator.indexOf('msie') >= 0 && !arc90_isOpera? true: false;
var arc90_isSafari = arc90_navigator.indexOf('safari') >= 0 || arc90_navigator.indexOf('khtml') >= 0? true: false;

function arc90_imgcaption() {
var O = document.getElementsByTagName('P'); // For safari???
for (var i = 0, l = O.length; i < l; i++)
	O[i].appendChild(arc90_newNode('span'));

	var O = document.getElementsByTagName('IMG');
	for (i = 0, l = O.length; i < l; i++) {
		var o = O[i];
		if (o != null && o.className && o.className.indexOf('imgcaption') >= 0) {
			try {
				var f = o.className.replace(/(.*)float(l|r)(.*)/, '$2');
				var s = arc90_newNode('div', 'arc90_imcaption'+ i, 'arc90_imgcaption'+ (f.length == 1? ' float'+ f: ' floatl'));

				var I = o.cloneNode(true);
				I.className = 'arc90_imgcaptionIMG';

				s.appendChild(I);
				
				var x = arc90_newNode('p', '', 'arc90_imgcaptionTXT');
				var y = arc90_newNode('p', '', 'arc90_imgcaptionALT');
				var z = arc90_newNode('span', '', 'arc90_imgcaptionALT');

				if (o.alt != '') {
					z.innerHTML = arc90_gtlt(o.alt);
					y.appendChild(z);
					s.appendChild(y);
				}

				if (o.title != '') {
					x.innerHTML = arc90_gtlt(o.title);
					s.appendChild(x);
				}

				o.parentNode.insertBefore(s, o);
				o.parentNode.removeChild(o);

				if (document.all || arc90_isSafari) {
					var w = parseInt(I.offsetWidth);
					if (w != '')
						s.style.width = w +'px';
				} else {
					w = arc90_getStyle(I, 'width', 'width');
					if (w != '') {
						s.style.width = (parseInt(w)) + 'px';
						x.style.width = (parseInt(w)) + 'px';
						y.style.width = (parseInt(w)) + 'px';
					}
				}
			} catch (err) { o = null; }
		}
	}
var O = document.getElementsByTagName('P'); // For safari???
for (i = 0, l = O.length; i < l; i++)
	O[i].appendChild(arc90_newNode('span'));
}

function arc90_gtlt(s) {
	s = s.replace(/&gt;/g, '>');
	s = s.replace(/&lt;/g, '<');
	return s;
}

function arc90_getStyle(obj, styleIE, styleMoz) {
	if (arc90_isString(obj)) obj = document.getElementById(obj);
	if (window.getComputedStyle)
		return document.defaultView.getComputedStyle(obj, null).getPropertyValue(styleMoz);
	else if (obj.tabsCurrentStyle)
		return obj.tabsCurrentStyle[styleIE];
}

function arc90_findDimension(obj, pType) {
	if (arc90_isString(obj)) obj = document.getElementById(obj);
	var cur = 0;
	if(obj.offsetParent)
		while(obj.offsetParent) {
			switch(pType.toLowerCase()) {
			case "width":
				cur += obj.offsetWidth; break;
			case "height":
				cur += obj.offsetHeight; break;
			case "top":
				cur += obj.offsetTop; break;
			case "left":
				cur += obj.offsetLeft; break;
			}
			obj = obj.offsetParent;
		}
	return cur;
}

/* Events */
function arc90_isString(o) { return (typeof(o) == "string"); }

function arc90_addEvent(e, meth, func, cap) {
	if (arc90_isString(e))	e = document.getElementById(e);

	if (e.addEventListener){
		e.addEventListener(meth, func, cap);
    	return true;
	}	else if (e.attachEvent)
		return e.attachEvent("on"+ meth, func);
	return false;
}

/* Nodes */
function arc90_newNode(t, i, s, x, c) {
	var node = document.createElement(t);
	if (x != null && x != '') {
		var n = document.createTextNode(x);
		node.appendChild(n);
	}
	if (i != null && i != '')
		node.id = i;
	if (s != null && s != '')
		node.className = s;
	if (c != null && c != '')
		node.appendChild(c);
	return node;
}

/* Onload */
//arc90_addEvent(window, 'load', arc90_imgcaption);
//=======================================================================================================================
function opacity(id, opacStart, opacEnd, millisec) {
	//speed for each frame
	var speed = Math.round(millisec / 100);
	var timer = 0;

	//determine the direction for the blending, if start and end are the same nothing happens
	if(opacStart > opacEnd) {
		for(i = opacStart; i >= opacEnd; i--) {
			setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
			timer++;
		}
	} else if(opacStart < opacEnd) {
		for(i = opacStart; i <= opacEnd; i++)
			{
			setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
			timer++;
		}
	}
}

//change the opacity for different browsers
function changeOpac(opacity, id) {
	var object = document.getElementById(id).style; 
	object.opacity = (opacity / 100);
	object.MozOpacity = (opacity / 100);
	object.KhtmlOpacity = (opacity / 100);
	object.filter = "alpha(opacity=" + opacity + ")";
}

function shiftOpacity(id, millisec) {
	//if an element is invisible, make it visible, else make it ivisible
	if(document.getElementById(id).style.opacity == 0) {
		opacity(id, 0, 100, millisec);
	} else {
		opacity(id, 100, 0, millisec);
	}
}

function blendimage(divid, imageid, imagefile, millisec) {
	var speed = Math.round(millisec / 100);
	var timer = 0;
	
	//set the current image as background
	document.getElementById(divid).style.backgroundImage = "url(" + document.getElementById(imageid).src + ")";
	
	//make image transparent
	changeOpac(0, imageid);
	
	//make new image
	document.getElementById(imageid).src = imagefile;

	//fade in image
	for(i = 0; i <= 100; i++) {
		setTimeout("changeOpac(" + i + ",'" + imageid + "')",(timer * speed));
		timer++;
	}
}

function currentOpac(id, opacEnd, millisec) {
	//standard opacity is 100
	var currentOpac = 100;
	
	//if the element has an opacity set, get it
	if(document.getElementById(id).style.opacity < 100) {
		currentOpac = document.getElementById(id).style.opacity * 100;
	}

	//call for the function that changes the opacity
	opacity(id, currentOpac, opacEnd, millisec)
}
//=========================================================================================================

//Scroller
<!-- 
// Use Freely as long as following disclaimer is intact ::
//---------------------------------------------------------------
// Cross Browser Multi-Directional Scroller v1.0 24th August 2004
// This script written by Rik Comery. www.ricom.co.uk
// For support, visit the "Resources" section at www.ricom.co.uk           
// All rights reserved.   
// Featured in the SimplytheBest DHTML Scripts Library at http://simplythebest.net/scripts/
                                     
Article = new Array;
i=0;

/* DEFINE SCROLLER ELEMENTS
  Define new scroller elements here in the following format.
  Article[i] = new Array ("display text", "URL", "frame target to load link in");i++  
  Note: If you do not want the item to be a link, change the URL value to "none".
*/
  
function assignArticle(i,artTitle,artUrl,artTarget,artAuthor,artNumber){
	  //alert("hello")
	  Article[i] = new Array (artTitle,artUrl,artTarget,artAuthor,artNumber);i++
	  //Article[i] = ("Welcome to PlanMagic", "http://planmagic.com", "_blank");i++  
	  //return Article[i];
	  //alert(Article)
}
  //Article[i] = new Array ("Welcome to PlanMagic", "http://planmagic.com", "_blank");i++  
//  Article[i] = new Array ("We offer a wide range of business planning software:", "none", "");i++
//  Article[i] = new Array ("Business plan", "http://planmagic.com/business_plan.html", "_blank");i++
//  Article[i] = new Array ("Marketing plan", "http://planmagic.com/marketing_plan.html", "_blank");i++
//  Article[i] = new Array ("Financial plan", "http://planmagic.com/financial_plan.html", "_blank");i++
//  Article[i] = new Array ("Restaurant business plan", "http://planmagic.com/business_plan/restaurant_business_plan.html", "_blank");i++
//  Article[i] = new Array ("Hotel business plan", "http://planmagic.com/business_plan/hotel_business_plan.html", "_blank");i++
//  Article[i] = new Array ("Resort business plan", "http://planmagic.com/business_plan/hotel/resort_business_plan.html", "_blank");i++
//  Article[i] = new Array ("and more..", "http://planmagic.com", "_blank");i++

////// SCROLLER CONFIGURATION ///////////////////////////////////////////////////////////////////  

orientation = "Vertical"        // Orientation of scroller (Horizontal or vertical)
scrollerWidth = "180"             // Width of entire scroller.
scrollerHeight = "200"             // Height of Scroller.
borderWidth = 1                   // Width of border. (use 0 for no border).
borderColour = "#FFFFFF"          // Colour of scroller border. (Use either hexadecimal or text values. e.g. "#FF0000" or "Red") 
backColour = "#FFFFFF"              // Colour of scroller background. (Use either hexadecimal or text values. e.g. "#FF0000" or "Red") 
staticColour = "#000000"          // Colour of scroller items that are NOT a link. (including scrollerDivider characters)
stopScroll = 1                    // Pause the scroller on mouseOver. (use 0 for no.)
textAlignment="left"            // Alignment of each scroller item.  Only really makes a difference on vertical scroller
                                  // (center, left, right, justify)

// Scroller Links
linkFont = "arial"                // Font of scroller links;
linkWeight = "normal"             // Weight of scroller links;
linkColour = "#4585C5"            // Colour of scroller links
linkSize = "10"                   // Size of links (in points)
linkDecoration = "none"           // Decoration of links. (underline, overline, none)

// Scroller Links On MouseOver
slinkFont = "arial"               // Font of scroller links;
slinkWeight = "normal"            // Weight of scroller links;
slinkColour = "#4585C5"           // Colour of scroller links
slinkSize = "10"                  // Size of links (in points)
slinkDecoration = "underline"     // Decoration of links. (underline, overline, none)

scrollerDivider = "<br><br>" // Character to place between each scroller item. 
                                  // <img> tags can be used if an image is required. 
                                  // Use "0" for nothing.  For Vertical scrollers, it is best to use "<br>"

/* 
  Because Netscape version 4 does not support this scroller, configure the values below so NS4 users do not see an error. 
  In the scroller's place will be a static title which can be a link if require.  The appearance of the static text (colour, scroller border etc)
  will be exactly the same as for the working version in other browsers.
*/
ns4Text = "";  // Alternative text to display in Netscape 4.
ns4URL = "none";            // URL of link in NS4. If no URL is required, enter "none"
ns4Target = "_top";                           // Frame target for link in NS4

////// DO NOT EDIT BELOW THIS LINE  ///////////////////////////////////////////////////////////////////

//Browser Sniffer
var isIE = (document.getElementById && document.all)?true:false;
var isNS4 = (document.layers)?true:false;
var isNS6 = (document.getElementById && !document.all)?true:false;

style='<style type="text/css">';
style+='#table p{font-family:'+linkFont+'; color:'+staticColour+'; font-size:'+linkSize+'px; font-weight:'+linkWeight+'; text-align:'+textAlignment+'}';
style+='a.rcScroller,a.rcScroller:active,a.rcScroller:visited{color:'+linkColour+';text-decoration:'+linkDecoration+'; font-weight:'+linkWeight+'}';
style+='a.rcScroller:hover{color:'+slinkColour+';text-decoration:'+slinkDecoration+'; font-weight:'+slinkWeight+'}';
style+='rcScrollerHoverNS{color:red;text-decoration:'+slinkDecoration+'; font-weight:'+slinkWeight+'}';
style+='<\/style>';
document.writeln(style);

// Build the scroller and place it on the page
function buildScroller()
{
  if(isNS4){
    scroller='<table border="0" cellpadding="0" cellspacing="0" width="'+scrollerWidth+'" bgcolor="'+borderColour+'"><tr><td>'
    scroller+='<table border="0" cellpadding="3" cellspacing="1" width="100%" height="'+scrollerHeight+'" bgcolor="'+backColour+'"><tr><td align="center" nowrap><p>';
    if(ns4URL.toLowerCase()!="none"){scroller+='<a href="'+ns4URL+'" class="rcScroller" target="'+ns4Target+'">'+ns4Text+'</a>';}
    else{scroller+=ns4Text;} 
    scroller+='</p></td></tr></table></td></tr></table>'   
  }else{
    scroller='<table border="0" cellpadding="0" cellspacing="0" style="width:'+scrollerWidth+';height:'+scrollerHeight+';border:'+borderWidth+'px solid '+borderColour+';background-color:'+backColour+'">';
    scroller+='<tr valign="middle"><td><div id="div" style="';
    if(orientation.toLowerCase()=="vertical"){scroller+='height:'+scrollerHeight+';';}
    scroller+='width:'+scrollerWidth+'; position:relative; background-color:'+backColour+'; overflow:hidden">';
    scroller+='<div id="div1" style="position:relative; left:0; z-index:1">';
    scroller+='<table border="0" name="table" id="table" style="font-size:10px"';
    if(orientation.toLowerCase()=="vertical"){scroller+='style="width:'+scrollerWidth+'"';}
    scroller+='><tr>';
    y=0;
    while (y<4)
    {
      for (x=0; x<(Article.length); x++)
      {
        if(orientation.toLowerCase()=="vertical"){scroller+='<tr>';}
        scroller+='<td style="padding:0; margin:0" ';
        if(orientation.toLowerCase()=="horizontal"){scroller+='nowrap';} if(stopScroll==1){scroller+=' onMouseOver="stopScroller();" onMouseOut="setWidth()"';}
        scroller+='>';
        if(Article[x][1].toLowerCase()!="none"){scroller+='<a class="rcScroller" href="'+Article[x][1]+'" target="'+Article[x][2]+'" >'+Article[x][4]+'. '+Article[x][0]+'<\/a><br>by '+Article[x][3]+scrollerDivider;
        }else{scroller+=Article[x][0];}          
        scroller+='<\/td>';
        
        if(orientation.toLowerCase()=="vertical"){scroller+='<\/tr>';}         
      }
      y++
    }
    scroller+='<\/tr><\/table><\/div><\/div><\/td><\/tr><\/table>';  
  }
  document.writeln(scroller);
}
// Ensure the width of the scroller is divisible by 2. This allows smooth flowing of the scrolled content
function setWidth()
{ 
  tableObj=(isIE)?document.all("table"):document.getElementById("table"); 
  obj=(isIE)?document.all.div1:document.getElementById("div1");   
  objWidth=(orientation.toLowerCase()=="horizontal")?getOffset(tableObj,"width"):getOffset(tableObj,"height");
  HalfWidth=Math.floor(objWidth/2);
  newWidth = (HalfWidth*2)+2;
  obj.style.width=newWidth
  moveLayer(obj, newWidth);
  
}

// Move the layer by one pixel to the left
function moveLayer(obj, width)
{
  
  maxLeft = (0-(width/2)+2)/2
  if(orientation.toLowerCase()=="horizontal"){
    obj.style.left=(parseInt(obj.style.left) <= maxLeft)?0:parseInt(obj.style.left)-1
  }else{
    if(obj.style.top==""){obj.style.top=0;}
   // alert(obj.style.top)
    if (parseInt(obj.style.top)<(0-(width/2)+6)){
      obj.style.top = 0
    }else{
      obj.style.top = parseInt(obj.style.top)-1
    }
  }
  timer = setTimeout ("moveLayer(obj, "+width+");", 50); 
}

// Get width and height of layer
function getOffset(obj, dim) 
{
  if(dim=="width")
  {
    oWidth = obj.offsetWidth
    return oWidth
  }  
  else if(dim=="height")
  {
    oHeight = obj.offsetHeight
    return oHeight
  }    
}

function stopScroller()
{
  clearTimeout(timer)  
}

function runScroller(){
  if(!isNS4){setWidth()}
}
//====================================================================================================================

var crossFadeDuration = 1

var Pic = new Array() // don't touch this
Pic[0] = '/images/courseThumb_1.jpg'
Pic[1] = '/images/courseThumb_2.jpg'
Pic[2] = '/images/courseThumb_3.jpg'
Pic[3] = '/images/courseThumb_4.jpg'
Pic[4] = '/images/courseThumb_5.jpg'

var courseThumb
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runCourseSlide(){
   if (document.all){
      document.images.courseSlide.style.filter="blendTrans(duration=1)"
      document.images.courseSlide.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.courseSlide.filters.blendTrans.Apply()      
   }
   document.images.courseSlide.src = preLoad[j].src
   if (document.all){
      document.images.courseSlide.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0   
   courseThumb = setTimeout("runCourseSlide()", 5000)
}
function startCourseSlide(){
	clearTimeout(courseThumb);
	courseThumb = setTimeout("runCourseSlide()", 2000)
}
function stopCourseSlide(){
	clearTimeout(t);	
}

//=================================================================

function searchFieldFocus(){
	if( document.getElementById("q").value == "search"){
		 document.getElementById("q").value = "";
	} else {
		 document.getElementById("q").value =  document.getElementById("q").value;
		 document.getElementById("q").select();
	}
}

function searchFieldBlur(){
	if( document.getElementById("q").value == ""){
		 document.getElementById("q").value = "search";
	} else {
		 document.getElementById("q").value =  document.getElementById("q").value;
	}
}

//============================================================================
function contactForm(stremailto,stremailcc,strdpt){
	ajaxLoader('/Support/includes/contactUs_form.asp','apDivContactForm');	
	document.getElementById("apDivContactForm").style.display = '';
	document.getElementById("apDivContactFade").style.display = '';
	setTimeout("document.getElementById('stremailto').value='"+stremailto+"'",1000);
	setTimeout("document.getElementById('stremailcc').value='"+stremailcc+"'",1000);
	setTimeout("document.getElementById('strdpt').innerHTML='CONTACT: "+strdpt+"'",1000);
	if(document.getElementById("sliderHome"))
		document.getElementById("sliderHome").style.visibility = 'hidden'
   
}
function closeContactForm(){
	document.getElementById("apDivContactForm").style.display='none';
	document.getElementById("apDivContactFade").style.display='none';
	document.getElementById("strdpt").innerHTML='';
	if(document.getElementById("sliderHome"))
		document.getElementById("sliderHome").style.visibility = 'visible'
}

function sendEmail()
{
    var xml = getXhttp();
    if ( !xml )
       return false; //Usually you alert something but I don't :d
 
    xml.open('POST', '/Support/includes/mailForm_contact.asp');
    xml.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    
	var strname = document.getElementById("strname").value
	var stremail = document.getElementById("stremail").value
	var strsubject = document.getElementById("strsubject").value
	var strmessage = document.getElementById("strmessage").value
	var stremailto = document.getElementById("stremailto").value
	var stremailcc = document.getElementById("stremailcc").value
	
	strsubject = strsubject.replace(/ /g, "%20")
	strname = strname.replace(/ /g, "%20")
	strmessage = strmessage.replace(/ /g, "%20")
	strmessage = strmessage.replace(/</g, "%3C")
	strmessage = strmessage.replace(/>/g, "%3E")
	strmessage = strmessage.replace(/#/g, "%23")
	strmessage = strmessage.replace(/&/g, "%26")
	strmessage = strmessage.replace(/,/g, "%2C")
	strmessage = strmessage.replace(/:/g, "%3A")
	strmessage = strmessage.replace(/;/g, "%3B")
	strmessage = strmessage.replace(/=/g, "%3D")
	strmessage = strmessage.replace(/@/g, "%40")
	
    //CHECKS DONE HERE.
 
    xml.send('strname=' + strname + '&stremail=' + stremail + '&strsubject=' + strsubject + '&strmessage=' + strmessage + '&stremailto=' + stremailto + '&stremailcc=' + stremailcc);
	
    //ANYTHING EXTRA IS ADDED HERE.
	//document.getElementById("ajaxGif").style.display='';
	 setTimeout("document.getElementById('umiEmailForm').style.display='none'",2000);
	 setTimeout("document.getElementById('emailSent').style.display=''",2000);
	 
}