var player;

function center_me(w,h){
	if(navigator.appName.indexOf('Explorer')+1){
		var win_width=w;
		var win_height=h;
	} else {
		var win_width=window.outerWidth;
		var win_height=window.outerHeight;
	}
	var pos_x=(screen.width-win_width)/2;
	var pos_y=(screen.height-win_height)/2;
	moveTo(pos_x,pos_y);
}
   function go_top_left(){

	moveTo(10,10);
}

function open_pop(url,w,h){
	window.open(url,'pop','height='+h+',width='+w+'location=no,resizable=yes,scrollbars=yes');
}

function open_it(url,w,h){
	window.open(url,'pop','height='+h+',width='+w+'location=no,resizable=no,scrollbars=no');
}

function open_01(url,w,h){
	now=new Date();
	v1=window.open(url,'pop'+now.getMinutes()+now.getMilliseconds(),'height='+h+',width='+w+'location=no,resizable=no,scrollbars=yes');
}

function open_02(url,w,h){
	now=new Date();
	v1=window.open(url,'pop'+now.getMinutes()+now.getMilliseconds(),'height='+h+',width='+w+'location=no,resizable=no,scrollbars=no');
}


function open_player(url,w,h){

	now=new Date();
	if(!player){
				setcookie('pop_player',1,"","","","");
			player=window.open(url,'pop'+now.getMinutes()+now.getMilliseconds(),'height='+h+',width='+w+'location=no,resizable=no,scrollbars=no');
 }

	}




function setcookie(name, value, expires, path, domain, secure)
{
document.cookie= name + "=" + escape(value) +
((expires)? "; expires=" + expires.toGMTString() : "") +
((path)? "; path=" + path : "") +
((domain)? "; domain=" + domain : "") +
((secure)? "; secure" : "");
}
