// Asset Path;
var path = "http://www.bubbleguru.com/case_studies/letstalk/assets/";


// Do Not Modify Anything Below This Line




// 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.		

var text = document.getElementById("accountID").src;function delineate(str){theleft = str.indexOf("=") + 1;theright = str.lastIndexOf("&");return(str.substring(theleft, theright));}

//set vars
document.write('<script src="' + path + 'detection.js" language="JavaScript" type="text/javascript"></script>');
document.write('<script src="' + path + 'getflashversion.vbs" language="VBScript" type="text/vbscript"></script>');

var ua        = navigator.userAgent.toLowerCase(); 
var is_pc_ie  = ( (ua.indexOf('msie') != -1 ) && ( ua.indexOf('win') != -1 ) && ( ua.indexOf('opera') == -1 ) && ( ua.indexOf('webtv') == -1 ) );

function setVariables(movieid, flashquery){
	var i,values;
	var divcontainer = "flash_setvariables_"+movieid;
	
	if(!document.getElementById(divcontainer)){
			var divholder = document.createElement("div");
			divholder.id = divcontainer;
			document.body.appendChild(divholder);
		}
	document.getElementById(divcontainer).innerHTML = "";
	var divinfo = "<embed src='" + path + "empty.swf' FlashVars='lc="+movieid+"&fq="+escape(flashquery)+"' width='0' height='0' type='application/x-shockwave-flash'></embed>";
	document.getElementById(divcontainer).innerHTML = divinfo;

}

//showme
var isNav4, isNav6, isIE4;

function setBrowser(){
if (navigator.appVersion.charAt(0) == "4"){
	if (navigator.appName.indexOf("Explorer") >= 0) {
	  isIE4 = true;
	  }
        else {
        isNav4 = true;
        }
  } else if (navigator.appVersion.charAt(0) > "4"){
    	isNav6 = true;
    }
}

setBrowser();

var whatBlurb ='normal';
var talking ='talking';
var sendmovie ='sendmovie';

function setIdProperty( id, property, value ) {
	if (isNav6) {
		var styleObject = document.getElementById( id );
        if (styleObject != null)
        {
         styleObject = styleObject.style;
         styleObject[ property ] = value;
        }
    } 
    
    
    else if (isNav4) {
    	document[id][property] = value;
     	} else if (isIE4) {
     	document.all[id].style[property] = value;
    }
    
}

function showDiv(newBlurb) {setIdProperty( newBlurb, "display", "block" );}
function hideDiv(newBlurb) {setIdProperty( newBlurb, "display", "none" );}

function initStatLyr() {
	var statLyr = new Glider("glideDiv",0,0,null,null,1000,-1);
  statLyr.show();
}  
  
  
function sayit(moviename){
	setTimeout("setVariables(\'bubblemovie\',\'var1=startitall&var2=" + moviename +"\')",1000);
}


document.write('<script src="' + path + 'dw_lib.js" language="JavaScript" type="text/javascript"></script>');
document.write('<script src="' + path + 'dw_glider.js" language="JavaScript" type="text/javascript"></script>');
document.write('<script src="' + path + 'swfobject.js" language="JavaScript" type="text/javascript"></script>');
document.write('<table id="sendmovie" width="95%" height="1" cellspacing="0" cellpadding="0" border="0" style="position:absolute; left:0px; top:0px;"><tr><td>' +
'<div id="bandwidth" style="width: 1px; height: 1px;"></div>' +
'<div id="position" style="position:absolute; width:250px; height:250px; right:75px; top:100px;">' +
'<div id="glideDiv" style="position:absolute; z-index:20000; left:0px; top:0px; width:250px; height:250px;">' +
'<div id="bgmovie" style="position:relative; width: 250px; height: 250px; left:0px; top:0px;"></div>' +
'</div></div></td></tr></table>');
