function flashInit() {
	
	if($('div#flashBG').length == 0) return;
	
	var params = {
	  wmode: "transparent"
	};
	
	// videos: turquoise_b.swf, indigo_b.swf, indigo_a.swf, red_turqoise2.swf
	
	
	switch(document.body.id){
		case "body-home":
			var rand_no = Math.floor(3*Math.random())
			switch(rand_no){
				case 0:
					flashPath = "./flash/red_turqoise2_left.swf"
					break;
				case 1:
					flashPath = "./flash/turquoise_b_slower.swf"
					break;
				case 2:
					flashPath = "./flash/indigo_b.swf"
					break;
			}
			flashH = "600"
			break;    
		case "body-studio-ink":
			flashPath = "../flash/indigo_b.swf"
			flashH = "600"
			break;
		case "body-studio-partners":
			flashPath = "../flash/turquoise_b_slower.swf"
			flashH = "600"
			break;
		case "body-studio-capabilities":
			flashPath = "../flash/red_turqoise2_left.swf"
			flashH = "600"
			break;
		case "body-studio-news":
			flashPath = "../flash/indigo_a.swf"
			flashH = "600"
			break;
	}


	
	swfobject.embedSWF(flashPath, "flashBG", "836", flashH, "9.0.0", "", "", params);
}

function objFadeIn() {
	floatingDivs = $('div#floating-div');
	if(floatingDivs.length == 0) return;
	bquotes = $('blockquote');
	connects = $('#connect');
	
	floatingDivs.eq(0).fadeIn(1800);
	bquotes.eq(0).fadeIn(1800);
	connects.eq(0).fadeIn(1800);
}

function objFadeInIE() {
	floatingDivs = $('div#floating-div');
	if(floatingDivs.length == 0) return;
	bquotes = $('blockquote');
	connects = $('#connect');
	
	floatingDivs.eq(0).show();
	bquotes.eq(0).show();
	connects.eq(0).show();
}

$(document).ready(function(){
	
	flashInit();
		
	if(!$.browser.msie){	
		objFadeIn();
	}else{
		objFadeInIE();
	}

});
