// JavaScript Document
function wind_print2(id,w,h){
	var x=(screen.width/2)-(w/2);var y=(screen.height/2)-(h/2);
window.open(id, 'orto' ,config='left='+x+', top='+y+', height='+h+', width='+w+', scrollbars=no, resizable=no,location=no').focus(); 
}
function f_submit(t) {
document.f_mp3_alp.let.value=t;
document.f_mp3_alp.submit();	
}
function doLoad_panorama(rec_start,rec_start_nav,prf,id) {
    var req = new JsHttpRequest();
    req.onreadystatechange = function() {
        if (req.readyState == 4) {
			document.getElementById('dv_left').innerHTML = req.responseJS.left;
			document.getElementById('dv_right').innerHTML = req.responseJS.right;
			document.getElementById('div_0').innerHTML = req.responseText;
        }
    }
    req.open(null, 'includes/gallery_video_sub_ajax.php', true);
    req.send( { rec_start: rec_start, rec_start_nav: rec_start_nav,prf: prf,id: id } );
}
function open_foto(id){
window.open(id, 'foto' ,config='scrollbars=yes, resizable=yes,location=no').focus(); 
}
function window_onload() {	
	window.close();  	
}
function pr_set_image(t) {
	document.getElementById('ima').src='photos_sportsmens/'+t+'.jpg';
	//document.getElementById('hrf').href=id;	
}
function pr_set(dir,id) {
	//document.getElementById('ima').src='photos_projects/'+t;
	//document.getElementById('hrf').href=id;	
	CreateFlashObject_transp("div_pr","div_pr",271, 112, "photos_projects"+dir+"/"+id+"_swf.swf");
}
function srch_go(t) {
	var forma  = document.getElementById(t);
	forma.submit();
}
function wind_print(id,w,h){
	var x=(screen.width/2)-(w/2);var y=(screen.height/2)-(h/2);
window.open(id, 'orto' ,config='left='+x+', top='+y+', height='+h+', width='+w+', scrollbars=yes, resizable=no,location=no').focus(); 
}
var cl = 0;
function clear_value_ser(t) {
	if (cl == 0) {
		var forma  = document.getElementById(t);
		forma.q.value = "";
		cl = 1;
	}
}

var cl2 = 0;
function clear_value_ser2(t) {
	if (cl2 == 0) {
		var forma  = document.getElementById(t);
		forma.q_mp3.value = "";
		cl2 = 1;
	}
}


