// JavaScript Document
function pngfix(){
		var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])

if ((version >= 5.5) && (document.body.filters)) 
{
	allobjs=document.all;
	for(i=0; i<allobjs.length; i++){
		if(allobjs[i].style.backgroundImage!=''){
			if(allobjs[i].style.backgroundImage.substr(allobjs[i].style.backgroundImage.length-5)=='.png)'){
				url=allobjs[i].style.backgroundImage.substr(4,allobjs[i].style.backgroundImage.length-5);
				allobjs[i].style.backgroundImage='';
				allobjs[i].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+url+"',sizingMethod='scale')";
			}
		}
	}
   for(var i=0; i<document.images.length; i++)
   {
      var img = document.images[i]
      var imgName = img.src.toUpperCase()
      if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
      {
         var imgID = (img.id) ? "id='" + img.id + "' " : ""
         var imgClass = (img.className) ? "class='" + img.className + "' " : ""
         var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
         var imgStyle = "display:inline-block;" + img.style.cssText 
         if (img.align == "left") imgStyle = "float:left;" + imgStyle
         if (img.align == "right") imgStyle = "float:right;" + imgStyle
         if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
         var strNewHTML = "<span " + imgID + imgClass + imgTitle
         + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
         + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
         + "(src=\'" + img.src + "\', sizingMethod='scale');\" onclick=\""+img.getAttribute('onclick')+"\"></span>" 
         img.outerHTML = strNewHTML
         i = i-1
      }
   }
}
			// png background
			/*
			if(navigator.appName=="Microsoft Internet Explorer"){
				document.getElementById("edo").style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/contacts.png',sizingMethod='scale')";
			} else {
				document.getElementById("edo").style.backgroundImage="url(images/contacts.png)";
			}
			*/
}

function showVideo( name )
{
	document.getElementById('video_main').style.display = "block";

	 var scrOfX = 0, scrOfY = 0;
	  if( typeof( window.pageYOffset ) == 'number' ) {
		//Netscape compliant
		scrOfY = window.pageYOffset;
		scrOfX = window.pageXOffset;
	  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
		//DOM compliant
		scrOfY = document.body.scrollTop;
		scrOfX = document.body.scrollLeft;
	  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
		//IE6 standards compliant mode
		scrOfY = document.documentElement.scrollTop;
		scrOfX = document.documentElement.scrollLeft;
	  }
	  scrOfY += 150;
	var b = (document.height || document.body.scrollHeight || document.body.style.pixelHeight);
	document.getElementById('video_main').style.height = b+"px";
	document.getElementById('play_video').style.marginTop = scrOfY+"px";
	


document.getElementById('play_video').innerHTML="<object type='application/x-shockwave-flash'"+
"data='uflvplayer_500x375.swf' height='265' width='352'>"+
"<param name='bgcolor' value='#FFFFFF' /><param name='allowFullScreen' value='true' />"+
"<param name='allowScriptAccess' value='always' />"+
"<param name='movie' value='uflvplayer_500x375.swf' />"+
"<param name='FlashVars' value='way=./UserFiles/"+name+".flv&amp;swf=uflvplayer_500x375.swf&amp;w=400&amp;h=300&amp;pic="+
"http://&amp;autoplay=1&amp;tools=2&amp;skin=black&amp;volume=70&amp;q=1&amp;comment=' /></object>";

}

function showVideo0000( name )
{
	document.getElementById('video_main').style.display = "block";

	 var scrOfX = 0, scrOfY = 0;
	  if( typeof( window.pageYOffset ) == 'number' ) {
		//Netscape compliant
		scrOfY = window.pageYOffset;
		scrOfX = window.pageXOffset;
	  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
		//DOM compliant
		scrOfY = document.body.scrollTop;
		scrOfX = document.body.scrollLeft;
	  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
		//IE6 standards compliant mode
		scrOfY = document.documentElement.scrollTop;
		scrOfX = document.documentElement.scrollLeft;
	  }
	  scrOfY += 150;
	var b = (document.height || document.body.scrollHeight || document.body.style.pixelHeight);
	document.getElementById('video_main').style.height = b+"px";
	document.getElementById('play_video').style.marginTop = scrOfY+"px";
	
document.getElementById('play_video').innerHTML="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' "+
	"codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='352'  "+
	"height='288' id='FLVPlayer'> "+
  "<param name='movie' value='FLVPlayer_Progressive.swf' /> "+
  "<param name='salign' value='lt' /> "+
  "<param name='quality' value='high' /> "+
  "<param name='scale' value='noscale' /> "+
  "<param name='FlashVars' value='&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName=UserFiles/"+name+"&autoPlay=false&autoRewind=false' /> "+
  "<embed src='FLVPlayer_Progressive.swf'  "+
  "flashvars='&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName=UserFiles/"+name+"&autoPlay=false&autoRewind=false' "+
  "quality='high' scale='noscale' width='352' height='264' name='FLVPlayer' salign='LT' "+
  "type='application/x-shockwave-flash' "+
  "pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' /> "+
"</object>";
}


function showVideo1( i )
{
	document.getElementById('module_pic'+i).style.display = "none";
	document.getElementById('module_video'+i).style.display = "block";
}

