 ////////////////////////////////////////////////////////
	function openWin(URL,type,w,h) {
	
	var bname = navigator.appName;
	var bversion = parseInt(navigator.appVersion);
	var bplatform = navigator.platform;
	var status = 'no';
	var reSize = 'no';
	var scroll = 'no';
	var toolbar = 'no';
	var location = 'no';
	var menubar = 'no';
	var directories = 'no';
	var ewindow;
	
// use this for video pop-up	
	if (type == "video" || type == "video_lo" || type == "video_md" || type == "video_hi") {
		if (!w) {
			w = 400;
		}
		if (!h) {
			h= 550;
		}
		reSize = 'yes';		
	} 	
	
	
	else if (type == "int") {
		if (!w) {
			w = 600;
		}
		if (!h) {
			h= 400;
		}
		reSize = 'yes';		
	} 	
	
	else if (type == "video_WiMP") {
		if (!w) {
			w = 350;
		}
		if (!h) {
			h= 360;
		}
		reSize = 'yes';		
	} 	
	
	else if (type == "standards" || type == "teachingtips" || type == "tech_tip" || type == "ell_tip" || type == "safety") {
		if (!w) {
			w = 560;
		}
		if (!h) {
			h= 700;
		}
		reSize = 'yes';		
	 	scroll = 'yes';
		
	}
	
	else if (type == "tour") {
		if (!w) {
			w = 640;
		}
		if (!h) {
			h = 480;
		}
		reSize = 'no';
	}
	
	
	
	
	var windowFeatures = 'width='+w+',height='+h+
									',toolbar='+toolbar+',status='+status+
									',scrollbars='+scroll+',resizable='+reSize+
									',menubar='+menubar+
									',location='+location+
									',directories='+directories+''
									
	ewindow = window.open(URL,type,windowFeatures);   
	ewindow.focus();
}

////////////////////////////////////
function getURL(subject) {		
	if (subject) {
		document.location = '/afterschool/toolkits/' + subject + '/index.html';
	}
	else {
		document.location = '/afterschool/toolkits/index.html';
	}			
} 		
////////////////////////////////////

