function createFlash(movie, wdth, hght, bgnd, idName, cel, fVars) {
       obj_setFlash = document.getElementById(cel);
       objTag = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='"+wdth+"' height='"+hght+"' id='"+idName+"'>";
       objTag2 = "<object data='"+movie+"' type='application/x-shockwave-flash' width='"+wdth+"' height='"+hght+"' id='"+idName+"'>";
       paramTag = "<param name='movie' value='"+movie+"' /><param name='bgcolor' value='"+bgnd+"' /><param name='quality' value='high' /><param name='menu' value='false' /><param name='FlashVars' value='"+fVars+"' /><param name='wmode' value='transparent' /></object>";
       if (typeof HTMLElement != "undefined") {
              obj = document.createElement("object");
              obj.setAttribute("data", movie);
              obj.setAttribute("type", "application/x-shockwave-flash");
              obj.setAttribute("width", wdth);
              obj.setAttribute("height", hght);
              obj.setAttribute("id", idName);
              par = document.createElement("param");
              par.setAttribute("name", "quality");
              par.setAttribute("value", "high");
              obj.appendChild(par);
              par = document.createElement("param");
              par.setAttribute("name", "bgcolor");
              par.setAttribute("value", bgnd);
              obj.appendChild(par);
              par = document.createElement("param");
              par.setAttribute("name", "menu");
              par.setAttribute("value", "false");
              obj.appendChild(par);
              par = document.createElement("param");
              par.setAttribute("name", "FlashVars");
              par.setAttribute("value", fVars);
              obj.appendChild(par);
              par = document.createElement("param");
              par.setAttribute("name", "wmode");
              par.setAttribute("value", "transparent");
              obj.appendChild(par);
              par = document.createElement("param");
              par.setAttribute("name", "pluginspage");
              par.setAttribute("value", "http://www.macromedia.com/go/getflashplayer");
              obj.appendChild(par);
              obj_setFlash.appendChild(obj);
       } else {
              obj_setFlash.insertAdjacentHTML('beforeEnd',objTag+paramTag);
       }
}

function fix_ie()
{
	var browserName=navigator.appName; 
	if (browserName=="Microsoft Internet Explorer")
	{
		var d = document.getElementById('a1');
		var b1 = document.getElementById('bgLeft');
		var b2 = document.getElementById('bgRight');
		b1.style.height = d.offsetHeight+'px';
		b2.style.height = d.offsetHeight+'px';
	}
	
}

function showLoginForm( val )
	{
		var c = document.getElementById('LoginAcc');
		var d = document.getElementById('NewAcc');
		if ( val == true )
		{
			c.style.display = 'block';
			d.style.display = 'none';
		}
		else
		{
			c.style.display = 'none';
			d.style.display = 'block';
		}
		var browserName=navigator.appName; 
		if (browserName=="Microsoft Internet Explorer")
		{
			var d = document.getElementById('a1');
			var b1 = document.getElementById('bgLeft');
			var b2 = document.getElementById('bgRight');
			b1.style.height = d.offsetHeight+'px';
			b2.style.height = d.offsetHeight+'px';
		}
		return true;
	}
	function change( state )
    {
    	var d = document.getElementById('state01');
    	var d1 = document.getElementById('state02');
    	if ( state == true )
    	{
    		d.style.display = 'block';
    		d1.style.display = 'none';
    	}
    	else
    	{
    		d1.style.display = 'block';
    		d.style.display = 'none';
    	}
    	var browserName=navigator.appName; 
		if (browserName=="Microsoft Internet Explorer")
		{
			var d = document.getElementById('a1');
			var b1 = document.getElementById('bgLeft');
			var b2 = document.getElementById('bgRight');
			b1.style.height = d.offsetHeight+'px';
			b2.style.height = d.offsetHeight+'px';
		}
    	return true;
    }
