jQuery(document).ready(function($){
	$(document).pngFix(); 
});


function loadPremiere(url, mapto, w, h) {
	var so = '';
	var divtomap = mapto;
	var contentsWidth = w;
	var contentsHeight = h;
	if (url.match(/youtube\.com\/watch/i)) {
		var videoId = url.split('=');
		this.videoID = videoId[1];
		swfobject.embedSWF("http://www.youtube.com/v/"+this.videoID+"&autoplay=1", mapto, contentsWidth, contentsHeight, "9.0.0", "expressInstall.swf");
	} else if (url.match(/dailymotion\.com/i)) {
		swfobject.embedSWF(url, mapto, contentsWidth, contentsHeight, "9.0.0", "expressInstall.swf");	
	} else if (url.match(/metacafe\.com\/watch/i)) {
		var videoId = url.split('/');
		this.videoID = videoId[4];
		swfobject.embedSWF("http://www.metacafe.com/fplayer/"+this.videoID+"/.swf", mapto, contentsWidth, contentsHeight, "9.0.0", "expressInstall.swf");
	} else if (url.match(/google\.com\/videoplay/i)) {
		var videoId = url.split('=');
		this.videoID = videoId[1];
		swfobject.embedSWF("http://video.google.com/googleplayer.swf?docId="+this.videoID+"&hl=en", mapto, contentsWidth, contentsHeight, "9.0.0", "expressInstall.swf");
	} else if (url.match(/\.swf/i)) {
		swfobject.embedSWF(url, mapto, contentsWidth, contentsHeight, "9.0.0", "expressInstall.swf");
	} else if (url.match(/\.flv/i)) {
		swfobject.embedSWF("http://iaian7.com/js/mediaplayer.swf?file="+url+"&displayheight="+contentsHeight+"&usefullscreen=false&backcolor=#000000&frontcolor=#000000&lightcolor=#000000&autoplay=1", mapto, contentsWidth, contentsHeight, "9.0.0", "expressInstall.swf");
	} else if (url.match(/\.mov/i)) {
		var movh = h+16;
// autoplay="false" autostart="false"
		document.getElementById(mapto).innerHTML = '<embed src="'+url+'" width="'+w+'px" height="'+h+'px" bgcolor="#000000" />';
	}
}
