// JavaScript Document
function GBG25Intro() {
	if ( !1) {
//	if ( getCookie('introPlayed') != 1) {
		MM_effectAppearFade('slideshow01', 1000, 0, 100, false);
		setTimeout('MM_effectAppearFade(\'slideshow01\', 1000, 100, 0, false);MM_effectAppearFade(\'slideshow02\', 1000, 0, 100, false)',3000);
		setTimeout('MM_effectAppearFade(\'slideshow02\', 1000, 100, 0, false);MM_effectAppearFade(\'slideshow03\', 1000, 0, 100, false)',6000);
		setTimeout('MM_effectAppearFade(\'slideshow03\', 1000, 100, 0, false);MM_effectAppearFade(\'slideshow04\', 1000, 0, 100, false)',9000);
		setTimeout('MM_effectAppearFade(\'slideshow04\', 1000, 100, 0, false);MM_effectAppearFade(\'slideshow05\', 1000, 0, 100, false)',12000);
		setTimeout('MM_effectAppearFade(\'slideshow05\', 1000, 100, 0, false);MM_effectAppearFade(\'tbase\', 1000, 0, 100, false)',15000);
	  obj=document.getElementById('slideshow01');
		obj.style.visibility='hidden'; 
	  obj=document.getElementById('slideshow02');
		obj.style.visibility='hidden'; 
	  obj=document.getElementById('slideshow03');
		obj.style.visibility='hidden'; 
	  obj=document.getElementById('slideshow04');
		obj.style.visibility='hidden'; 
	  obj=document.getElementById('slideshow05');
		obj.style.visibility='hidden'; 
	  setCookie('introPlayed','1',0,0,0,'/','vermontstudiocenter.org');
	}
	else {MM_effectAppearFade('tbase', 1000, 0, 100, false)}
}

function getCookie(c_name)
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=");
  if (c_start!=-1)
    { 
    c_start=c_start + c_name.length+1; 
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length;
    return unescape(document.cookie.substring(c_start,c_end));
    } 
  }
return "";
}

function setCookie ( name, value, exp_y, exp_m, exp_d, path, domain, secure )
{
  var cookie_string = name + "=" + escape ( value );

  if ( exp_y )
  {
    var expires = new Date ( exp_y, exp_m, exp_d );
    cookie_string += "; expires=" + expires.toGMTString();
  }

  if ( path )
        cookie_string += "; path=" + escape ( path );

  if ( domain )
        cookie_string += "; domain=" + escape ( domain );
  
  if ( secure )
        cookie_string += "; secure";
  
  document.cookie = cookie_string;
}

