function OpenWin(Num) {
	if (Num  != ''){
		var picWidth = 600;
		var picHeight = 450;
		var myNum;

   switch (Num) {

       case "Video1Large" :
			window.open('http://www.payitforward.com/cmp/chalkboard480.html','video','width=530,height=310');
			break;
       case "Video1Small" :
			window.open('http://www.payitforward.com/cmp/chalkboard320.html','video','width=400,height=300');
			break;
       case "Trailer1Hi" :
			window.open('http://www.payitforward.com/cmp/trailer480.html','video','width=530,height=310');
			break;
       case "Trailer1Med" :
			window.open('http://www.payitforward.com/cmp/trailer320.html','video','width=400,height=300');
			break;
       case "Trailer1Low" :
			window.open('http://www.payitforward.com/cmp/trailer320-15.html','video','width=400,height=300');
			break;			
       case "Webcards" :
			window.open('http://www.wb.com/pages/payitforward/webcards.jsp','wercards','width=650,height=480');
			break;	
       case "TV1" :
			window.open('http://www.payitforward.com/cmp/tvspot1.html','tv','width=400,height=300');
			break;	
       case "TV2" :
			window.open('http://www.payitforward.com/cmp/tvspot2.html','tv','width=400,height=300');
			break;											
       default :
			intNum = parseInt(Num);
			if (intNum <= 12) {	
				window.open('Gallery/haley'+Num+'.html','Haley','status=yes,width='+picWidth+',height='+picHeight);
			}else{
				myNum = intNum - 12;
				if ((intNum > 12)&&(intNum <= 24)) {
					window.open('Gallery/hunt'+myNum+'.html','Hunt','status=yes,width='+picWidth+',height='+picHeight);
				}else{
					myNum = intNum - 24;
					if ((intNum > 24)&&(intNum <= 36)) {
						window.open('Gallery/spacey'+myNum+'.html','Spacey','status=yes,width='+picWidth+',height='+picHeight);
					}else{
						alert("A gremlin has gotten into this site! Aghhhh!!");
					}
				}
			}
			break;
		}
    } 
}


