/**

for img
startSubWindow({f:'img',t:'',tp:{url:''}})
*/
function startSubWindow(){
	var frameURL='http://'+location.host+_imBrowserConfig.basePath+'/frame.php';
	var a=arguments[0];
	var re=new RegExp("MSIE ([0-9])","g");
	re.exec(navigator.userAgent);
	var bVH=navigator.userAgent.indexOf("Gecko")>-1 || (RegExp.$1 &&  parseInt(RegExp.$1)>=5 && navigator.userAgent.indexOf("Win")>-1 && !(navigator.userAgent.indexOf("MSIE 5.0")>-1));
	var f='width=100, height=100';
	var inv=frameURL+'?f='+a.f;
	inv+="&encoding="+window._imBrowserConfig.encoding
	var t=a.t?a.t:window._imBrowserConfig.uniwersalTitle;//title
	inv+='&t='+t;
	inv+='&h=';
	try{
		window._br_ext_w1.close();
		}catch(e){	};//_bVH_//;
	if(!bVH){
		var cw=window.open(inv+'0','ebw',f+', left=10, top=0');
		}
	else{
		try{
			f+=', left='+(window.screenLeft+window.event.x);
			f+=', top='+(window.screenTop+window.event.y);
			}catch(e){
			f+=', left=10, top=0';
			};
			
		var cw=window.open(inv+'1','ebw',f);
		cw.focus();
		};
	if(typeof(a.tp)=='object'){
		window._ext_b_tp=a.tp;
		window._ext_b_tp.tit=t;//title
		//window._ext_b_tp.url=window._ext_b_tp.url;
		};
	window._br_ext_w1=cw;
	return cw;
	};
	function startImagesBrowserSimple(url){
	startSubWindow({f:'img',t:'',tp:{url:url}})
	}
window._imBrowserConfig={}

