string = new Array;
string["Numele"] = "Numele dumneavoastra"; 
string["E-mail"] = "E-mailul dumneavoastra";
string["Catre"]= "Catre";
string["Subiect"] = "Subiect";
string["Mesaj"] = "Mesaj";
string["Trimite"] = "Trimite";
string["send_success"] = "Mesajul a fost trimis cu succes. Multumim!";
string["send_failure"] = "In timpul expedierii a avut loc o eroare!";

function start(pagina,plugin,cpa){
	load_location();
	caseta_cautare();
	
	if(cpa){
		start_cpa(pagina, plugin);
	}
	
	if(plugin){
		$(plugin.split(",")).each(function(){
			$.post('include/functii.php', 'function=set_plugin&arg1=' + this, function(p){
				eval(p);
			})
		})
	}
}

function round_corners(){
	$(".div_continut, .container_footer, .caseta, .titlu_info_contact, .widget").corner("4px");
	$(".decoratie_meniu").corner("bottom 4px;");
	$(".top_caseta, .wgtitle").corner("top 4px");
}

//nefolosita (inca?)
function arr2str(arr, separator){
	var send = '';
	var post = new Array();
	$.each(arr, function(i,n){
		post.push(n);
	});
	send = post.join(separator);
	return send;
}

function imagine_content(){
	$('.continut img').each(function(){
		var w= $(this).css("width");
		var h = $(this).css("height");
		var obj = $(this);
		var dv = '<div style="float:left;border:1px solid red;padding:5px;">'+obj+'</div>';
		$(this).after(dv).remove();
// 		$(this).css("width", '100px');
	});
}


function load_location(){
	$(document).localizare({
		mod : '67,79,78,69,67,84,65,82,69',
		activated : function(){
			$.post('include/functii.php', 'function=startup', function(startup){
				window.location.href=startup;
			})
		}
	});
}

function caseta_cautare(){
	$('.container_cautare').jcautare({
		mod:'advanced', //simple
		doajax:true,
		mod_debug:false,
		up_icon:'img/button_up.gif',
		down_icon:'img/button_down.gif',
		str_search:'Cautare...',
		str_any: 'Orice cuvant',
		str_all: 'Toate cuvintele',
		str_exact: 'Exact',
		ajax_page : 'include/functii.php',
		ajax_function:'function=expresie_cautata'
	});
}



function set_zile(){
	alert("fuc");
}

