function workshop(which){
	var uploaded=[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];

	if (uploaded[which-1]){
		window.open("workshopsmx/workshop_"+which+".htm",'workshop',"toolbar=false, width=550, height=430, menubar=false") ;
		workshopNum=which;
	}else{
		alert("These will be available very shortly.  Feel free to email me and I'll tell you when the files are up: flash6@phillipkerman.com");
	}
}


var available=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];


function downloadOne(which){
	window.open("workshop_"+which+".zip");
	
}
function readOne(which){
	which=Number(which);
	if (available[which-1]){
		var stringNum=which;
		if (stringNum<10){
				stringNum="0"+stringNum;
		}
		window.open("/actionscripting/workshop_"+stringNum+".pdf");
	}else{
		alert ("Workshop "+which+" is not available to read online.");
	}
}

function closeWindow(){
	window.close();
}

function popup(param){

	var url= param.substr(0, param.indexOf(",")   )  ;
	var features=param.substr(param.indexOf( ",")+1 );
	//alert(url);
	//alert(features);
	window.open( url,"",features );
}

