<!-- // Start of AdSubtract JavaScript block; you can ignore this.
     // It is used when AdSubtract blocks cookies or pop-up windows.
document.iMokie = "cookie blocked by AdSubtract";
document.iMferrer = "referrer blocked by AdSubtract";
function iMwin() {
	this.location = "";
	this.frames = new Array(9);
	this.frames[0] = this;
	this.frames[1] = this;
	this.frames[2] = this;
	this.frames[3] = this;
	this.frames[4] = this;
	this.frames[5] = this;
	this.frames[6] = this;
	this.frames[7] = this;
	this.frames[8] = this;
	this.length = 0;
}
// End of AdSubtract JavaScript block. -->
function getCookie( name ) {
  var start = document.cookie.indexOf( name + "=" );
  var len = start + name.length + 1;
  if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) ) {
    return null;
  }
  if ( start == -1 ) return null;
  var end = document.cookie.indexOf( ";", len );
  if ( end == -1 ) end = document.cookie.length;
  return unescape( document.cookie.substring( len, end ) );
}

function setCookie( name, value, expires, path, domain, secure ) {
  var today = new Date();
  today.setTime( today.getTime() );
  if ( expires ) {
    expires = expires * 1000 * 60 * 60 * 24;
  }
  var expires_date = new Date( today.getTime() + (expires) );
  document.cookie = name+"="+escape( value ) +
    ( ( expires ) ? ";expires="+expires_date.toGMTString() : "" ) + //expires.toGMTString()
    ( ( path ) ? ";path=" + path : "" ) +
    ( ( domain ) ? ";domain=" + domain : "" ) +
    ( ( secure ) ? ";secure" : "" );
}



function makeFlashMovie(){
var cookieName="";
cookieName="flashMovie";
	var start = getCookie(cookieName);
	var autoplayEmbed = "true";
	var autoplayParam = "true";
	var filename="intro.swf";
	var flashMovieVal="";
	var id="flashmov";
	if (start == null){
		setCookie ("flashMovie", "yes", "0");
		autoplayEmbed="true";
		autoplayParam="1";
		filename="intro.swf";
    } else {
		autoplayEmbed="false";
		autoplayParam="false";
		filename="CBFintro3-2_noplay.swf";
    }
	
if(document.getElementsByTagName){
	if(document.getElementById(id) != null){ // make sure the id exists
   		var movie = document.getElementById(id);
	
document.getElementById("flashmov").innerHTML="<OBJECT title=\"intro\" codeBase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" height=\"185\" width=\"273\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\">\n<PARAM NAME=\"Movie\" VALUE=\"../media/"+filename+"\" />\n<PARAM NAME=\"Src\" VALUE=\"../media/"+filename+"\" />\n<PARAM NAME=\"WMode\" VALUE=\"Transparent\" />\n<PARAM NAME=\"autoplay\" value=\""+autoplayParam+"\"/>\n<PARAM NAME=\"Play\" VALUE=\"-1\" />\n<PARAM NAME=\"Loop\" VALUE=\"-1\" />\n<PARAM NAME=\"Quality\" VALUE=\"High\" />\n<PARAM NAME=\"AllowScriptAccess\" VALUE=\"sameDomain\" />\n<PARAM NAME=\"Scale\" VALUE=\"ShowAll\" />\n<PARAM NAME=\"EmbedMovie\" VALUE=\"0\" />\n<PARAM NAME=\"BGColor\" VALUE=\"\" />\n<embed src=\"../media/"+filename+"\" wmode=\"transparent\" quality=\"high\" autoplay=\""+autoplayEmbed+"\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"273\" height=\"185\"></embed>\n</OBJECT>";
	}
}
}
