// Globals
// If some problems - move this section to head. -JKI
// Major version of Flash required
var requiredMajorVersion = 8;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 0;
// Version check based upon the values entered above in "Globals" 
function scroll( i ) {
	if ( i == 0 ) {
		window.scrollTo( 0, 0 );
	} else {
		window.scrollBy( 0, i );
	}
}
function searchTop( lang ) {
	window.location.href = ( "../" + lang + "/?SearchView&Count=15&Query=" + document.forms[0].QueryTop.value );
}
function search( lang ) {
	window.location.href = ( "../" + lang + "/?SearchView&Count=15&Query=" + document.forms[0].Query.value );
}
function changeCountry( p ) {
	window.location.href = ( 
		p + 
		"?open&country=" + 
		document.forms[0].country[document.forms[0].country.selectedIndex].text
	);
}
function changeCity( p ) {
	window.location=( 
		p + 
		"?open&country=" + 
		document.forms[0].country[document.forms[0].country.selectedIndex].text +  
		"&city=" + document.forms[0].city[document.forms[0].city.selectedIndex].text
	);
}
function popup( url ) {
	opener = window.open( url,'_blank','width=400,height=485,menubar=no,status=no,scrollbars=no' );
}
function submitenter(e, o)
{
	var keycode;
	if (window.event) 
	{
		keycode = window.event.keyCode;
	}
	else if (e) 
	{
		keycode = e.which;
	}
	else return true;
	if (keycode == 13)
	{
		document.location='?SearchView&Count=15&Query=' + o.value;
		return false;
	} else {
	   return true;
	}
}
