// JavaScript Document
function flash(swf, w, h, wmode, id)
{
	if(!wmode) wmode="opaque";
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id="'+id+'" width="'+w+'" height="'+h+'">');
	document.write('<param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+swf+'" /><param name="wmode" value="'+wmode+'" /><embed src="'+swf+'" id="'+id+'" name="'+id+'" wmode="'+wmode+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" swLiveConnect=true allowScriptAccess="sameDomain" /></object>');
}
// Pop up Ali-B TV
function alibTV(){
	window.open('popupAlibtv.php','AliBTV','width=875,height=570,location=no,left=20,top=20');
}
var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function alibtv_DoFSCommand(command, args) {
	var menuObj = isInternetExplorer ? document.all.alibtv : document.alibtv;
	//
	if (command == "popup") {
  		alibTV();
  	}
	//
}
function yesrTV(){
	window.open('http://www.yes-r.nl/yes-r_tv.php','YesrTV','width=875,height=600,location=no,left=20,top=20');
}

// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub alibtv_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call alibtv_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}
function popUpsnippet(file){
	window.open('/snippets/player.php?mp3='+file,'Snippet','width=340,height=170,location=no,left=20,top=20');
}
function popUpp(file, name, width, height){
	window.open(file,name,'width='+width+',height='+height+',location=no,left=20,top=20');
}

function viewimage(imgId) {
	window.open("viewthumb.php?id="+imgId, "imageView", "width=640,height=480,location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no,top=200,left=200", true);
}