function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


/*Buttom Active*/
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}


/*Registration*/
var IsResize = true;
var ResizeControls = ["marquees","marquees2"];
var tempId;

/*-------------------------------------------Registration---------------------------------------------------------*/
function ResizeControl(cId)
			  {	
				this.Controls = Tools.Get(cId);
				with(this.Controls.style)
				{
					this.Width = arguments[1] || 300;;
					this.Height = arguments[2] || 300;;
					this.Display = display;
					this.setUp = 1;
					
				}
				this.Resize = function ()
				{
					if(this.Display == "none")
					{						
						this.Controls.style.display = "block";
						timer = window.setTimeout("Display('"+cId+"')",10);
					}
					else
					{
					if(timer)
					clearTimeout(timer);
						timer = window.setTimeout("Hidden('"+cId+"')",10);
					}
				}

			  }
				function Display(id)
				{
					var con = Tools.Get(id).style;
					var cons = Tools.Get(id);
					if(parseInt(cons.scrollHeight) <= parseInt(cons.clientHeight) )
					{
						window.clearTimeout(timer);
						return ;
					}
					con.height = (parseInt(con.height) +10 ) +"px";
					timer = window.setTimeout("Display('"+id+"')",1);
				}

				function Hidden(id)
				{
					var con = Tools.Get(id).style;
					if(parseInt(con.height) <= 10 )
					{
						con.display ="none";
						window.clearTimeout(timer);
						return ;
					}
					con.height = (parseInt(con.height) - 10 ) +"px";
					timer = window.setTimeout("Hidden('"+id+"')",1);
				}


			  function Tools()
			  {

			  }
			  Tools.Get = function (name)
			  {
				return document.getElementById(name);
			  }
			  Tools.Resize = function ()
			  {
					 var v = new ResizeControl("marquees",200,200);
			  v.Resize();
			  } 
			  
			  Tools.Resize = function (count)
			  {		
				  if(IsResize)
				  {
					var tempcount = count || 0;
					var v = new ResizeControl(ResizeControls[tempcount],200,200);
					v.Resize();
					IsResize = false;
				  }
				  else
				  {
					
					Tools.Get(ResizeControls[count==0?1:0]).style.display = "none";
					if(ResizeControls[count] == tempId)
					{
						v = new ResizeControl(ResizeControls[count],200,200);
						v.Resize();
						Tools.Get(ResizeControls[count==0?1:0]).style.height=1;
						IsResize = true;
					}
					else
					{	
						Tools.Get(ResizeControls[count]).style.display = "";
						Tools.Get(ResizeControls[count]).style.height = 200;
					}
					
				  }
				  tempId= ResizeControls[count];
					
			  }
			   			  
			  
/*-------------------------------------------page eiffce------------------------------------------------*/
var config = {step:100,id:"info"}
function DDisplay(cF)
{
	this.config = cF;
	this.cntFiter = 10;
}
DDisplay.prototype =
{	
	Display:function ()
	{
		
		if( typeof(this.tempDiv) == "undefined")
			this.tempDiv = document.getElementById(this.config.id);
		if(this.tempDiv.style.display != "block")
			this.tempDiv.style.display ="block";
		if(window.ActiveXObject)
			this.tempDiv.style.filter = "Alpha(opacity="+this.cntFiter+")";
		else
			this.tempDiv.style.opacity = this.cntFiter/100;
		if(this.cntFiter>=98)
		{
			clearTimeout(this.timerId);
			return;
		}
		this.cntFiter += 10;
		this.call("t");
	},
	Hidden:function ()
	{
		if( typeof(tempDiv) == "undefined" || tempDiv.id != this.config.id)
		{
			this.tempDiv = document.getElementById(this.config.id);
		}
		if(window.ActiveXObject)
		{
			
			this.tempDiv.style.filter = "Alpha(opacity="+this.cntFiter+")";
		}
		else
		{
			this.tempDiv.style.opacity = this.cntFiter/100;
		}
		this.cntFiter -= 10;
		if(this.cntFiter<=10)
		{
			this.tempDiv.style.display = "none";
			clearTimeout(this.timerId);
			this.cntFiter = 10;
			return;
		}
		
		this.call("f");
	},
	call:function (D)
	{

		var my = this;
					
		this.timerId = setTimeout(function ()
		{if(D == "t"){return my.Display();}else{return my.Hidden(); }},config.step);
		
	
	}
}

GragObject.catchFlyBar= function (e)
{	
	
	this.bIsCatchFlyBar = true;
	
	var theEvent = window.event || arguments[0];
	
	var tempCX=0;
	var tempCY=0;
	
		if(window.ActiveXObject)
		{
			var x=theEvent.clientX;   
			var y=theEvent.clientY;
			var r = /%/gi;
			if(r.test(this.currentStyle.left))
			{
			tempCX=x-parseInt(this.document.body.clientWidth * this.currentStyle.left.replace(r,"")/100); 
			tempCY=y-parseInt(this.document.body.clientHeight * this.currentStyle.top.replace(r,"")/100-280);
			}
			else
			{
				tempCX=x - parseInt(this.currentStyle.left);
				tempCY=y - parseInt(this.currentStyle.top);
			}
			this.dragClickX = tempCX;
			this.dragClickY = tempCY;
			this.setCapture();
			this.onmousemove = GragObject.moveFlyBar;
		}
		else
		{
			var x=theEvent.layerX;   
			var y=theEvent.layerY;
			tempCX=x; 
			tempCY=y;
			
			document.bIsCatchFlyBar = true;
			document.captureEvents(Event.MOUSEMOVE);
			document.dragClickY = tempCY;
			document.dragClickX = tempCX;
			document.clientId= this.id;
			document.onmousemove = GragObject.moveFlyBar;	
		}
		
}
GragObject.releaseFlyBar=function(e){   

  if(window.ActiveXObject)
  {this.bIsCatchFlyBar = false;
this.releaseCapture(); 
}else
{document.bIsCatchFlyBar = false;
document.releaseEvents(Event.MOUSEMOVE); 
}
document.onmousemove = null;   
}
GragObject.moveFlyBar= function(){
	
var theEventa = window.event || arguments[0];
		if(this.bIsCatchFlyBar){
		document.getElementById(this.clientId).style.cursor = "pointer";
		document.getElementById(this.clientId).style.left = (theEventa.clientX+ document.body.scrollLeft-this.dragClickX) +"px";
		document.getElementById(this.clientId).style.top = (theEventa.clientY+ document.body.scrollTop- this.dragClickY)+"px";

		} 
	}
function GragObject(cF)
{
	this.config = cF;
	if(cF.GId == "")
	    cF.GId = cF.Did;
	this.divFlyBar = document.getElementById(cF.GId);
	if(this.divFlyBar == null || typeof this.divFlyBar=="undefined")
	    return;
	this.divFlyBar.bodyBar = document.getElementById(cF.Did);
	if(window.ActiveXObject)
	{
		this.divFlyBar.dragClickY = 0;
		this.divFlyBar.dragClickX = 0;
		this.divFlyBar.bIsCatchFlyBar = false;
	}
	else
	{
		document.dragClickY = 0;
		document.dragClickX = 0;
		document.bIsCatchFlyBar = false;
		document.onmouseup = GragObject.releaseFlyBar;
	}
	this.divFlyBar.clientId = cF.Did;
	this.divFlyBar.headId = cF.Gid;
	this.divFlyBar.onmousedown =  GragObject.catchFlyBar;
	this.divFlyBar.onmouseup =GragObject.releaseFlyBar;
}

var d1 = new DDisplay({step:150,id:"info"});
var d = new GragObject({Did:"info"});
var d2 = new DDisplay({step:150,id:"info1"});
var d3 = new GragObject({Did:"info1"});