$(document).ready(function(){
	//INPUT ELEMENTS	
		var st = '#263035';
		var en = '#636a6e';
		var fn = '#999da0';
		
		$('input[type=hidden]').each(function(){
			$(this).css('display', 'none');
		});
			
		$(':input').focus(function(){
			if($(this).val() == $(this).attr('rel')){
				$(this).css('color', en);
				$(this).keydown(function(){
					if($(this).val() == $(this).attr('rel')){					
						$(this).val('');
						$(this).css('color', st);
					}
				});
			}
		}).blur(function(){
			if($(this).val() == '' || $(this).val() == $(this).attr('rel')){
				var atty = $(this).attr('rel');
				$(this).val(atty).css('color', fn);
			}
		});
		
		//CHECKBOX
		$('input[type=checkbox]').each(function(){
			$(this).css({'display' : 'inline', 'width' : 'auto', 'padding' : '0px', 'margin-right' : '5px'});
		});
	//INPUT ELEMENTS
	
	//innner hover and stuff
	$('#inner a').each(function(){
		if($(this).attr('rel') == 'selected'){
			$(this).css({'color' : '#ffffff', 'background-image' : 'url(images/innerbg_alt.png)', 'font-weight' : 'bold'}).next().attr('class', 'flag_alt');
		}
	}).hover(function(){
		$(this).css({'color' : '#ffffff', 'background-image' : 'url(images/innerbg_alt.png)'}).next().attr('class', 'flag_alt');
	},function(){
		$(this).css({'color' : '#1e1e1e', 'background-image' : 'url(images/testimonialbg.png)'}).next().attr('class', 'flag');	
	});
	
	//more button
	$('.more_button').next().css({
		'display' : 'none',
		'margin' : '-7px 0px 7px 15px'
	}).end().toggle(function(){
		$(this).next().slideDown('slow');
	},function(){
		$(this).next().slideUp('fast');
	
	});

	//COLORBOX
	$("a[rel='example1']").colorbox();
	$("a[rel='example2']").colorbox();	
	
	//FIND LOGO
	$('#logo').css('cursor', 'pointer').bind({
		click: function(){
			window.location = './?page=home';	
		}
	});
	
	$('#foot_logo').css('cursor', 'pointer').bind({
		click: function(){
			window.location = './?page=home';	
		}
	});
});
