/*


*/

function thisMovie(movieName) {
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName];
	}
	else {
		return document[movieName];
	}
}

function sendToActionScript(videourl, videotitle){
	thisMovie('videoplayer').playVideo(videourl, videotitle);
}

var strVideoURL = "";
var strVideoTitle = "";

// perform actions when DOM is ready
if ($.query.get('vid') != "") {
	if ($.query.get('vid') == "monkey") {
		strVideoURL = "/flash/watch/TINGA TINGA - MONKEY CLIP_VP6_1Mbps.flv";
		strVideoTitle = "Monkey tricks Crocodile!";
	} else if ($.query.get('vid') == "lion") {
		strVideoURL = "/flash/watch/TINGA TINGA - LION CLIP_VP6_1Mbps.flv";
		strVideoTitle = "Watch Lion take charge";
	} else if ($.query.get('vid') == "elephant") {
		strVideoURL = "/flash/watch/TINGA TINGA - ELEPHANT CLIP_VP6_1Mbps.flv";
		strVideoTitle = "Why Elephant has a trunk?";
	} else if ($.query.get('vid') == "tortoise") {
		strVideoURL = "/flash/watch/TINGA TINGA - TORTOISE CLIP_VP6_1Mbps.flv";
		strVideoTitle = "I am not a rock!";
	} else if ($.query.get('vid') == "tickbird") {
		strVideoURL = "/flash/watch/TINGA TINGA - TICKBIRD CLIP_VP6_1Mbps.flv";
		strVideoTitle = "Tickbird challenges Hippo!";
	} else if ($.query.get('vid') == "hippo") {
		strVideoURL = "/flash/watch/TINGA TINGA - HIPPO CLIP_VP6_1Mbps.flv";
		strVideoTitle = "Watch Hippo cool off";
	}
	//setTimeout("sendToActionScript(strVideoURL, strVideoTitle)", 1000);
}

$(document).ready(function() {

});

