	function toggelshipping() {
		
		var display = (document.getElementById('shippingSameBilling').checked == true) ? 'none !important' : 'block'
			document.getElementById('shippinginfofiels').style.display = display+" !important"
			
//		alert('HERE')
	}


	function form_focus(id) {
		va = document.getElementById(id).value
		if (va == 'Name' || va == 'Email' || va == 'Message' || va == 'Join email list' || va == 'Website URL' || va == 'Comment..' || va == 'Email' || va == 'Password') {
		 document.getElementById(id).value = ''
		}
		document.getElementById(id).style.color='#ccc'
		va = document.getElementById(id).value
	}
	
	function form_blur(id) {
		va = document.getElementById(id).value
		if (va == 'Name' || va == 'Email' || va == 'Message' || va == 'Join email list' || va == 'Website URL' || va == 'Comment..' || va == 'Email' || va == 'Password') {
		  document.getElementById(id).style.color='#555'
		} else {
		  document.getElementById(id).style.color='#999'
		}
		
		/* If empty */
		if (va == '')  {
			var defaults=new Array();
			defaults['f3021'] 	= 'Name'
			defaults['f8391'] 	= 'Email'
			defaults['f1223'] 	= 'Message'
			defaults['a3321'] 	= 'Join email list'
			defaults['author'] 	= 'Name'
			defaults['email'] 	= 'Email'
			defaults['url'] 	= 'Website URL'
			defaults['comment'] = 'Comment..'	
			defaults['cliente'] = 'Email'
			defaults['clientp'] = 'Password'			
			document.getElementById(id).style.color='#555'
			document.getElementById(id).value = defaults[id]
		}
	}
	
	
	
		jQuery(document).ready(function($) {	
			
			// CLIENTS
			$('#padlock').click(function() {
				$('#userpass').fadeIn(1000);
				$('#padlock').animate({
				    left: '0'
				  }, 800, function() {
				   
				  });				
  				
			});
			
			
			
			
			/* footer rollovers */	
			var onMouseOutOpacity = 0.14;
			$('.foot_logos a').opacityrollover({
				mouseOutOpacity:   onMouseOutOpacity,
				mouseOverOpacity:  1.0,
				fadeSpeed:         'slow',
				exemptionSelector: '.selected'
			});
			
			/* footer rollovers */	
			var onMouseOutOpacity = 0.3;
			$('ul.wpinstagram li img').opacityrollover({
				mouseOutOpacity:   onMouseOutOpacity,
				mouseOverOpacity:  1.0,
				fadeSpeed:         'slow',
				exemptionSelector: '.selected'
			});

			
			/*index.php thumbs*/ 
			var onMouseOutOpacity = 0.3;
			$('.index_thumbs li, .a_client_project a.prjt_pev').opacityrollover({
				mouseOutOpacity:   onMouseOutOpacity,
				mouseOverOpacity:  1.0,
				fadeSpeed:         'slow',
				exemptionSelector: '.selected'
			});
			
			
			var onMouseOutOpacity = 0.5;
			$('#rss a img').opacityrollover({
				mouseOutOpacity:   onMouseOutOpacity,
				mouseOverOpacity:  1.0,
				fadeSpeed:         'slow',
				exemptionSelector: '.selected'
			});
			
			
			
			
			var onMouseOutOpacity = 0.2;
			$('#store_preview_image, .single_portfolio_navigation li a, li.creditoutput a').opacityrollover({
				mouseOutOpacity:   onMouseOutOpacity,
				mouseOverOpacity:  1.0,
				fadeSpeed:         'slow',
				exemptionSelector: '.selected'
			});
			
			
			var onMouseOutOpacity = 0.5;
			$('#pinkytoe a, #content ul#print_icons li').opacityrollover({
				mouseOutOpacity:   onMouseOutOpacity,
				mouseOverOpacity:  1.0,
				fadeSpeed:         'slow',
				exemptionSelector: '.selected'
			});
			
		
			/* contact form placeholder colors.. insert placeholders w js to prevent spam. */
			$('#f3021').val('Name');
			$('#f8391').val('Email');
			$('#f1223').val('Message');
			$('#a3321').val('Join email list');
		});

