//start loading bar
var myCount=6;
function refreshflash()
{
	var bar = document.getElementById("line");	
	var bar1 = document.getElementById("loadpercent");
    var movie = getFlashMovieObject("mov");	
if(movie){

	       bar.style.width=movie.PercentLoaded()*1.5+"px";
	       if(movie.PercentLoaded()<100)
		      {

bar1.innerHTML="Loading " +  movie.PercentLoaded() + "%";
		      }
           else{
	        bar1.innerHTML="Loading 100%";
	        //document.getElementById('schedule').style.display='none';
            clearInterval(num);
			tt3=window.setTimeout('count()',1000);
		    tt2=window.setTimeout('hideAd()', (myCount+2)*1000);
               }
         }
}

function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
      return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);

  } 
}	


function hideAd()
   {
   document.getElementById('loadlayer').style.display='none';
   document.getElementById('flash').style.display='';
   clearInterval(tt3);
   clearTimeout(tt2);
   clearTimeout(tt1);
   }

function skiphideAd()
   {
   document.getElementById('loadlayer').style.display='none';
   document.getElementById('flash').style.display='';
   }

function count(){ 
document.getElementById("loadpercent").innerHTML = myCount; 
myCount--; 
tt1=window.setTimeout('count()',1000); 
} 







function show_flash(src, height, width, isfull) {
	if (isfull==1) 
	{
		height = document.body.clientHeight - 44;
		width = document.body.clientWidth;
		sxf_isdisplay = "";
	}
	else {
		sxf_isdisplay = "display: none;";
		document.writeln('<div id="flash" style="' + sxf_isdisplay + '">');
		}
	document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + width + '" height="' + height + '" id="mov">');
	document.writeln('<param name="movie" value="' + src + '">');
	document.writeln('<param name="quality" value="high">');
	document.writeln('<embed src="' + src + '" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" menu="0"></embed>');
	document.writeln('</object>');
if (isfull!=1) 
	{
		document.writeln('</div>');
	}

if ((navigator.userAgent.indexOf('MSIE') >= 0) && (navigator.userAgent.indexOf('Opera') < 0) && isfull != 1)
{ 
num=setInterval("refreshflash()",50);
}
else
{
	if (isfull!=1) 
	{
tt3=window.setTimeout('count()',1000);
tt2=window.setTimeout('hideAd()', (myCount+2)*1000);
	}
}



}

function show_shockwave(src, height, width, isfull) {
if (isfull!=1) 
	{
		sxf_isdisplay = "display: none;";
		document.writeln('<div id="flash" style="' + sxf_isdisplay + '">');
	}

	
	document.writeln('<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=7,0,2,0" width="' + width + '" height="' + height + '">');
	document.writeln('<param name="swRemote" value="swSaveEnabled=\'true\' swVolume=\'true\' swRestart=\'true\' swPausePlay=\'true\' swFastForward=\'true\' swContextMenu=\'true\'">');
	document.writeln('<param name="swStretchStyle" value="meet">');
	document.writeln('<param name="bgColor" value="#000000">');
	document.writeln('<param name="src" value="' + src + '">');
	document.writeln('<embed src="' + src + '" width="' + width + '" height="' + height + '" bgColor="#000000" swRemote="swSaveEnabled=\'true\' swVolume=\'true\' swRestart=\'true\' swPausePlay=\'true\' swFastForward=\'true\' swContextMenu=\'true\'" swStretchStyle="meet" type="application/x-director" pluginspage="http://www.macromedia.com/shockwave/download/"></embed>');
	document.writeln('</object>');
	
if (isfull!=1) 
	{
		document.writeln('</div>');
tt3=window.setTimeout('count()',1000);
tt2=window.setTimeout('hideAd()', (myCount+2)*1000);
	}

}

function show_frame(src, height, width, isfull) {
	if (isfull!=1) 
	{
		sxf_isdisplay = "display: none;";
		document.writeln('<div id="flash" style="' + sxf_isdisplay + '">');
	}
		
	document.writeln('<iframe src="' + src + '" height="' + height + '" width="' + width + '" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>');
	
	if (isfull!=1) 
	{
		document.writeln('</div>');
		tt3=window.setTimeout('count()',1000);
tt2=window.setTimeout('hideAd()', (myCount+2)*1000);
	}


}


