/* 
	Quiznos JS utilities
	Heavenspot 2010
	Sebastian Villa
*/

var flashHeader = "flashHeader";
var flashContent = "flashContent";


function flashHeaderLoaded(){
	
	$('#' + flashHeader).css('height', '130px');
	
	}
	
	
function flashContentLoaded(){
	
	$('#' + flashContent).css('height', '682px');
	
	}
	

function getFlashContent(movieName){
 	
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	return (isIE) ?  document.getElementById(movieName) : document[movieName];
	
	}
	

function facebook(){

	window.open('http://www.facebook.com/sharer.php?u=' + encodeURIComponent(url) + '&t=' + encodeURIComponent(title), "Share");
	
	}
	
	
function twitter(){
	
	window.open('http://twitter.com/home?status=' + encodeURIComponent('Tron'), "Share");
	
	}
	
	
function stumble(){
	
	window.open('http://www.stumbleupon.com/submit?url=' + encodeURIComponent(url + 'title=' + title), "Share");
	
	}
	
	
function myspace(){
	
	var targetUrl = 'http://www.myspace.com/index.cfm?fuseaction=postto&' + 't=' + encodeURIComponent(title) + '&c=' + 
	encodeURIComponent('<img src="http://www.tron.com/IMG-TODO" /><p>TO DO</p>') + '&u=' + 
	encodeURIComponent('http://www.tron.com') + '&l=1';
	window.open(targetUrl);
	
	}
	
	
function digg(){
	
	window.open('http://digg.com/submit?url=' + encodeURIComponent(url) + '&amp;title=' + encodeURIComponent(title), 'Share');
	
	}
