﻿var flashVersion = true;
var elBigpage = document.getElementById("bigpage");
if(elBigpage!=null) 
{ 
	elBigpage.style.display = "none"; 
}

var onLoadOverload = null;
if (window.onload!=null)
	onLoadOverload = window.onload;

window.onload = function()
{
	if (onLoadOverload!=null)
		onLoadOverload();
		
	var queryString = location.search;
	var getValue = false;
	
	
	queryString = queryString.replace("?","");
	
	var querys = queryString.split("&");
	for(var index=0;index<querys.length;index++)
	{
		var values = querys[index].split("=");
		for (var subIndex=0;subIndex<values.length;subIndex++)
		{
			if ((subIndex%2)==0)
			{
				if (values[subIndex] == 'op')
					getValue = true;
			}
			else
			{
				if (getValue == true)
				{
					if (values[subIndex]=='on')	
					{
						flashVersion = false;
					}
					getValue = false; 
				}
			}
		}
	}
	
	if (checkFlash(8)<8)
	{
		flashVersion = false;
	}
	
	if (flashVersion) 
	{ 
		addFlash(8,"learning_home00.swf",778,584,"f0,htmlpage","menu:false" );
		var el = document.getElementById("bigpage");
		if(el!=null)
		{ 
			el.style.display = "none"; 
		}
	}
	else
	{
		var el = document.getElementById("bigpage");
		if (el!=null)
		{
			el.style.display = "block";	
		}
	}
}