var $j=jQuery.noConflict();

$j(document).ready(function() 
{
	$j('#imulated').mouseover(function()
	{
		$j('.im_button').addClass('act');
		$j(this).css('cursor','pointer');   
	});
	
	$j('#imulated').mouseout(function()
	{
		$j('.im_button').removeClass('act');
	});
	
	$j('#imulated').change(function()
	{
		$j('.im_input input').val($j(this).val());
	});
	
	$j('.im_input input').click(function()
	{
		$j('#imulated').trigger('click');
	});
	
	$j('#form_dropdown_service').change(function()
	{
		var val=$j(this).val();
		if (val==23)
		{
			$j('#form_input_text_other').show();
		}
		else
		{
			$j('#form_input_text_other').hide();
		}
	});
	
	$j('#form_text_contact_country, #form_text_contact_city, #form_text_contact_phone').keyup(function()
	{
		phoneChange();
	});
	
	$j('#form_text_contact_country, #form_text_contact_city, #form_text_contact_phone').change(function()
	{
		phoneChange();
	});
	
	function phoneChange()
	{
		var country=$j('#form_text_contact_country').val();
		var city=$j('#form_text_contact_city').val();
		var phone=$j('#form_text_contact_phone').val();
		if (phone!="")
		{
			$j('#form_text_contact').val('+'+country+' ('+city+') '+phone);
		}
		else
		{
			$j('#form_text_contact').val('');
		}
	}
	
});

hs.graphicsDir = '/images/highslide/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.outlineType = 'rounded-white';
hs.fadeInOut = true;
hs.dimmingOpacity = 0.75;

// Add the controlbar
hs.addSlideshow({
	//slideshowGroup: 'group1',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: 'fit',
	overlayOptions: {
		opacity: .75,
		position: 'bottom center',
		hideOnMouseOut: true
	}
});

function resetFullForm()
{
	$j('#form_input_text_other').hide();
}
