function createFlashControl( elemId, clsID, codebase, width, height, path)
{
	var elem = document.getElementById(elemId);
	var innerhtml;
	innerhtml = '<object classid="clsid:' +clsID+ '" ' +
							'codebase="' +codebase+ '" ' +
							'width="' +width+ '" ' +
							'height="' +height+ '">';
	innerhtml += '<param name="movie" value="' +path+ '">';
	innerhtml += '<param name="quality" value="high">';
	innerhtml += '<param name="autoStart" value="-1">';
	innerhtml += '<embed src="' +path+ '" ' +
						'quality="high" ' +
						'pluginspage="http://www.macromedia.com/go/getflashplayer" ' +
						'type="application/x-shockwave-flash" ' +
						'width="' +width+ '" ' +
						'height="' +height+ '"></embed>';
	innerhtml += '</object>';

	elem.innerHTML = innerhtml;
}

function headerFlash( elemId, clsID, codebase, width, height, path)
{
	var elem = document.getElementById(elemId);
	var innerhtml;
	innerhtml = '<object classid="clsid:' +clsID+ '" ' +
							'codebase="' +codebase+ '" ' +
							'width="' +width+ '" ' +
							'height="' +height+ '">';
	innerhtml += '<param name="movie" value="' +path+ '">';
	innerhtml += '<param name="quality" value="high">';
	innerhtml += '<param name="autoStart" value="-1">';
	innerhtml += '<embed src="' +path+ '" ' +
						'quality="high" ' +
						'pluginspage="http://www.macromedia.com/go/getflashplayer" ' +
						'type="application/x-shockwave-flash" ' +
						'width="' +width+ '" ' +
						'height="' +height+ '"></embed>';
	innerhtml += '</object>';

	elem.innerHTML = innerhtml;
}

function changeId(old_id, new_id) {
 var div_node = document.getElementById(old_id);
 div_node.id = new_id;

}

       /*
       
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1000" height="210" id="FlashID" title="Website header">
      <param name="movie" value="header-v2.swf" />
      <param name="quality" value="high" />
      <param name="wmode" value="opaque" />
      <param name="swfversion" value="7.0.70.0" />
      <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
      <param name="expressinstall" value="Scripts/expressInstall.swf" />
      <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="header-v2.swf" width="1000" height="210">
        <!--<![endif]-->
        <param name="quality" value="high" />
        <param name="wmode" value="opaque" />
        <param name="swfversion" value="7.0.70.0" />
        <param name="expressinstall" value="Scripts/expressInstall.swf" />
        <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
        <div>
          <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
          <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
        </div>
        <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>
    
    */


 /*
function calculateHeight(firstDiv,SecondDiv) {
  var firstDivHeight = document.getElementById(firstDiv).clientHeight;
  var secondDivHeight = document.getElementById(SecondDiv).clientHeight;
  //alert(firstDivHeight);
  //alert(secondDivHeight);
  if (firstDivHeight > secondDivHeight) {
    document.getElementById(SecondDiv).style.height = firstDivHeight;
  } else {
    document.getElementById(firstDiv).style.height = secondDivHeight;
  }

}
function changewidth(DivParent,DivChild,minus){
 var DivHeightParent = document.getElementById(DivParent).clientHeight;
 var DivHeightChild = document.getElementById(DivChild).clientHeight;
 //var DivHeightMinus = document.getElementById(DivMinus).clientHeight;
 //alert(DivHeightParent);
 //alert(DivHeightChild);
 //alert(DivHeightMinus);
 document.getElementById(DivChild).style.height = DivHeightParent - minus;// - DivHeightMinus;
}

function changewidth_old(DivParent,DivChild){
 var DivHeightParent = document.getElementById(DivParent).clientHeight;
 var DivHeightChild = document.getElementById(DivChild).clientHeight;
 //alert(DivHeightParent);
 //alert(DivHeightChild);
 if (DivHeightParent < DivHeightChild)
 {
 //DivHeightParent = DivHeightChild;

 document.getElementById(DivParent).style.height = DivHeightChild;
 }else {
 //DivHeightChild = DivHeightParent;
 document.getElementById(DivChild).style.height = DivHeightParent;
 }
}
*/
/*
//function makeCalculations(firstDiv,SecondDiv,DivParent,DivChild,minus) {
function makeCalculations(firstDiv,SecondDiv) {

  var firstDivHeight = document.getElementById(firstDiv).clientHeight;
  var secondDivHeight = document.getElementById(SecondDiv).clientHeight;
  //alert(firstDivHeight);
  //alert(secondDivHeight);
  if (firstDivHeight > secondDivHeight) {
    document.getElementById(SecondDiv).style.height = firstDivHeight;
    document.getElementById(firstDiv).style.height = firstDivHeight;
  } else {
    document.getElementById(firstDiv).style.height = secondDivHeight;
    document.getElementById(SecondDiv).style.height = secondDivHeight;
  }

} 


var menu=function(){
	var t=15,z=50,s=6,a;
	function dd(n){this.n=n; this.h=[]; this.c=[]}
	dd.prototype.init=function(p,c){
		a=c; var w=document.getElementById(p), s=w.getElementsByTagName('ul'), l=s.length, i=0;
		for(i;i<l;i++){
			var h=s[i].parentNode; this.h[i]=h; this.c[i]=s[i];
			h.onmouseover=new Function(this.n+'.st('+i+',true)');
			h.onmouseout=new Function(this.n+'.st('+i+')');
		}
	}
	dd.prototype.st=function(x,f){
		var c=this.c[x], h=this.h[x], p=h.getElementsByTagName('a')[0];
		clearInterval(c.t); c.style.overflow='hidden';
		if(f){
			p.className+=' '+a;
			if(!c.mh){c.style.display='block'; c.style.height=''; c.mh=c.offsetHeight; c.style.height=0}
			if(c.mh==c.offsetHeight){c.style.overflow='visible'}
			else{c.style.zIndex=z; z++; c.t=setInterval(function(){sl(c,1)},t)}
		}else{p.className=p.className.replace(a,''); c.t=setInterval(function(){sl(c,-1)},t)}
	}
	function sl(c,f){
		var h=c.offsetHeight;
		if((h<=0&&f!=1)||(h>=c.mh&&f==1)){
			if(f==1){c.style.filter=''; c.style.opacity=1; c.style.overflow='visible'}
			clearInterval(c.t); return
		}
		var d=(f==1)?Math.ceil((c.mh-h)/s):Math.ceil(h/s), o=h/c.mh;
		c.style.opacity=o; c.style.filter='alpha(opacity='+(o*100)+')';
		c.style.height=h+(d*f)+'px'
	}
	return{dd:dd}
}();
*/
