function hideall(){
$("#step2, #step3, #step4, #step5").hide();
$("#"+strs[0]).addClass("current");
$("#shag").html(1);
}

	var steps = new Array();
	steps = Array('step1', 'step2', 'step3', 'step4', 'step5');
	
		var strs = new Array();
	strs = Array('str1', 'str2', 'str3', 'str4', 'str5');

function showStep(id){
		for (i=1; i<=5; i++) {
			$("#"+steps[i-1]).hide();
		}
	$("#"+steps[id-1]).show();
	$("#"+strs[id-1]).removeClass("gray");
	$("#"+strs[id-1]).addClass("current");
	$("#"+strs[id-2]).removeClass("current");
	$("#"+strs[id-2]).addClass("ready");
	$("#shag").html(id);
}
  
function goTo(where) {
document.location.replace(where);
return false;
}

function radio(){
var r1=$("#ch1").attr("checked");
var r2=$("#ch2").attr("checked");

if (r1) {showField();$("#komp").attr("value","")};
if (r2) {hideField();$("#komp").attr("value","Νες")};
}

function hideField(){
$("#komp").slideUp("slow");
$("#komp1").slideUp("slow");
}

function showField(){
$("#komp").slideDown("slow");
$("#komp1").slideDown("slow");
}


function checkField(id,text){
	if ($("#check"+id).attr("checked"))
	{
		$("#vid"+id).val(text);

	} else 
	{
		$("#vid"+id).val('');
	}
}

function showFile(id){
    var fBoxTemplate = $("#popotzyv"+id).html();
    $.floatbox({
        content: fBoxTemplate,
        fade: true
    });
}

$(document).ready(function(){
	$("#yearSelect").change(function(){
		window.location.href= $("#yearSelect option:selected").val();
	});
	$("#yearMonthSelect").change(function(){
		window.location.href= $("#yearMonthSelect option:selected").val();
	});
	
	$("#tipRabot").change(function(){
		window.location.href= $("#tipRabot option:selected").val();
	});
	
	$("#otrasl").change(function(){
		window.location.href= $("#otrasl option:selected").val();
	});
	
	$("#vidSelector").change(function(){ 
		window.location.href= $("#vidSelector option:selected").val();
	});
	
	//	contacts
	$("#contactsTabs a").live('click',function(){
		
		//selector cherez class ne xochet rabotat' :/
		$("#ph1").hide();
		$("#ph2").hide();
		$("#ph3").hide();
		$("#ph4").hide();
		$("#ph5").hide();	
		
		//var alldivs = $('.contactsPhones');
		//alldivs.hide();
			
		$("#ph"+$(this).parent().attr("id")).show();
	
	
		$(".activeTab").wrapInner("<a href=\"#\">");
		$("li").removeClass("activeTab");
		
		$(this).parent().addClass("activeTab");
		$(this).parent().html($(this).html());
		
		return false;
	});

	$(".servicesBlocks").hover(function(){
		$(this).find("ul").show();
	},function(){
		$(this).find("ul").hide();
	});

});