// Copyright 2007 Bubble Guru LLC. Patent Pending.
// This file and instructions are part of code licensed by Letstalk and is limited by Bubble Guru LLC.
// This code and all connected code, is bound by our TERMS AND CONDITIONS OF USE policy. This policy can be found here: http://www.bubbleguru.com/termsofservice.html
// Permission granted to use this code only for the purpose of running Bubble Guru files and as long as this entire notice is included.		

// Do Not Modify Anything Below This Line

var requiredMajorVersion = 7;
var requiredMinorVersion = 0;
var requiredRevision = 0;
var jsVersion = 1.0;
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

if (hasReqestedVersion) {

var so = new SWFObject("" + path + "lt_04.swf", "bubblemovie", "250", "250", "7", "#FFFFFF");
   so.addParam("allowScriptAccess", "always");
   so.addParam("quality", "high");
   so.addParam("scale", "noscale");
   so.addParam("loop", "false");
   so.addParam("wmode", "transparent");
   so.addVariable("movieid", "bubblemovie");
   so.addVariable("var3", ""+ path +"");
   so.write("bgmovie");
} else {
	hideDiv('sendmovie');
}


hideDiv('sendmovie');

function passIt(VideoID){
	// optional line if we sniff flash here
	if (hasReqestedVersion) {
		setTimeout("showDiv('sendmovie'); initStatLyr(); sayit('videos/" + VideoID +".flv');",500);
	}
}



// cookie stuff

function setBGCookie(name, value, expires, path, domain, secure)
{
   // turn this off for demo
   /* 
   		document.cookie= name + "=" + escape(value) +
        ((expires) ? "; expires=" + expires.toGMTString() : "") +
        ((path) ? "; path=" + path : "") +
        ((domain) ? "; domain=" + domain : "") +
        ((secure) ? "; secure" : "");
    */    
}

function getBGCookie(name)
{
    var dc = document.cookie;
    var prefix = name + "=";
    var begin = dc.indexOf("; " + prefix);
    if (begin == -1)
    {
        begin = dc.indexOf(prefix);
        if (begin != 0) return null;
    }
    else
    {
        begin += 2;
    }
    var end = document.cookie.indexOf(";", begin);
    if (end == -1)
    {
        end = dc.length;
    }
    return unescape(dc.substring(begin + prefix.length, end));
}


