var lastPopUpWindow = null;
function pop (sCase)
{
	switch (sCase)
	{
	case "icon" :
		window.open('icon.html?file=icon1', '_BLANK','location=0,status=0,scrollbars=0,width=400,height=300');
		break;
	case "iphone" :
		window.open('iphone.html', '_BLANK');
		break;
	case "twitter" :
		window.open('twitter.html', '_BLANK');
		break;
	case "wallpaper" :
		var id = pop.arguments [1];
		var size = pop.arguments [2];
		window.open('wallpaper.html?id=' + id + '&size=' + size, '_BLANK');
		break;
	case "shareVideo" :
		var id = pop.arguments [1];
		window.open('widget/videoWidget.html?v='+id,'_BLANK','location=0,status=0,scrollbars=0,width=420,height=385');
		break;
	case "shareVideo1" :
		var id = pop.arguments [1];
		window.open('widget/videoWidget.html?v=t1','_BLANK','location=0,status=0,scrollbars=0,width=420,height=385');
		break;
	case "shareVideo2" :
		var id = pop.arguments [1];
		window.open('widget/videoWidget.html?v=t2','_BLANK','location=0,status=0,scrollbars=0,width=420,height=385');
		break;
	case "shareVideo3" :
		var id = pop.arguments [1];
		window.open('widget/videoWidget.html?v=tv1','_BLANK','location=0,status=0,scrollbars=0,width=420,height=385');
		break;
	case "shareVideo4" :
		var id = pop.arguments [1];
		window.open('widget/videoWidget.html?v=tv2','_BLANK','location=0,status=0,scrollbars=0,width=420,height=385');
		break;
	case "shareVideo5" :
		var id = pop.arguments [1];
		window.open('widget/videoWidget.html?v=clip1','_BLANK','location=0,status=0,scrollbars=0,width=420,height=385');
		break;
	case "shareVideo6" :
		var id = pop.arguments [1];
		window.open('widget/videoWidget.html?v=vg','_BLANK','location=0,status=0,scrollbars=0,width=420,height=385');
		break;
	case "shareVideo7" :
		var id = pop.arguments [1];
		window.open('widget/videoWidget.html?v=intl','_BLANK','location=0,status=0,scrollbars=0,width=420,height=385');
		break;
	case "shareVideo8" :
		var id = pop.arguments [1];
		window.open('widget/videoWidget.html?v=t3','_BLANK','location=0,status=0,scrollbars=0,width=420,height=385');
		break;
	}
}
