﻿<!--
function changelang(sel)
{
	i = sel.selectedIndex;
	uri = sel[i].value;
	uri_test = uri.search(/www.+/);
	
	if (uri != "")
	{        
        if(uri_test != -1)
        {
            win_extern = window.open('http://'+uri, "hk_extern");        
	        win_extern.focus();
	    }
	    else
	    {
	        window.location.href = '/index.php?'+uri;
	    }	    
	}
}

function popup_video(url,w,h)
{    
    var left=window.screen.width/2-(w/2);
 	var top=window.screen.height/2-(h/2);
 	if (win){
 		win.focus();
 	}
 	else {
		var win = window.open(url,'popup_video','toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, copyhistory=0, menuBar=0, width='+w+', height='+h+', left='+left+', top='+top+'');
		win.focus();
 	}
}

function popup_image(url,w,h)
{    
    var left=window.screen.width/2-(w/2);
 	var top=window.screen.height/2-(h/2);
 	if (win){
 		win.focus();
 	}
 	else {
		var win = window.open(url,'popup_image','toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, copyhistory=0, menuBar=0, width='+w+', height='+h+', left='+left+', top='+top+'');
		win.focus();
 	}
}
//-->