		$(document).ready(function() {

			// FANCYBOX 
			
			$("a[href$=.jpg]").fancybox();
			
			// SLIDESHOW
			
		    $('#portfolioDiv').cycle({ fx: 'fade' });
			
			
			// SECURITY
			
			$("img").bind("contextmenu", function(e) {
			    return false;
			});
			
			$("img").bind("mousedown", function(e) {
			    return false;
			});	
			
			
			// NORMAL

			$('#fashionDiv').hide().fadeOut('fast');
			$('#lifestyleDiv').hide().fadeOut('fast');
			$('#contactDiv').hide().fadeOut('fast');

			
			$('#portfolio').click(function() {
				$('#fashionDiv').fadeOut('slow');
				$('#lifestyleDiv').fadeOut('slow');
				$('#contactDiv').fadeOut('slow');
				$('#portfolioDiv').delay(1000).fadeIn('slow');
				return false;
				});
				
			$('#fashion').click(function() {
				$('#portfolioDiv').fadeOut('slow');
				$('#lifestyleDiv').fadeOut('slow');
				$('#contactDiv').fadeOut('slow');
				$('#fashionDiv').delay(1000).fadeIn('slow');
				return false;
				});
				
			$('#lifestyle').click(function() {
				$('#fashionDiv').fadeOut('slow');
				$('#portfolioDiv').fadeOut('slow');
				$('#contactDiv').fadeOut('slow');
				$('#lifestyleDiv').delay(1000).fadeIn('slow');
				return false;
				});
				
			$('#contact').click(function() {
				$('#fashionDiv').fadeOut('slow');
				$('#lifestyleDiv').fadeOut('slow');
				$('#portfolioDiv').fadeOut('slow');
				$('#contactDiv').delay(1000).fadeIn('slow');
				return false;
				});		

			// COPYRIGHT IMAGES
			
			$('#copyright img').each(function() {
						$(this).hover(function() {
							$(this).stop().animate({ opacity: 1.0 }, "fast");
						},
					   function() {
						   $(this).stop().animate({ opacity: 0.4 }, "fast");
					   });
					});
					
			$('#fashionDiv img').each(function() {
						$(this).hover(function() {
							$(this).stop().animate({ opacity: 1.0 }, "fast");
						},
					   function() {
						   $(this).stop().animate({ opacity: 0.7 }, "fast");
					   });
					});
			
			
			// CONTACT

			$('#contact:last').submit(function() {
				$('#contactSuccess').hide();
				$('.error').hide();  
				
				var fullname = $("input#fullname");
				var emailadr = $("input#emailadr");
				var phonenum = $("input#phonenum");
				var esubject = $("input#esubject");
				var cmessage = $("input#cmessage");

				var dataString = 'fullname=' + fullname + '&emailadr=' + emailadr + '&phonenum=' + phonenum + '&esubject=' + esubject + '&cmessage=' + cmessage;

				$.ajax({  
					   
					url: "contact.php",   
					type: "POST", 
					data: dataString,
			        cache: false, 
					success: function (chnge) { 
					
					$('#contactSuccess').delay(1000).fadeIn('slow').html(chnge);
						
						}
					}); 
	
				return false;
				});

			});
			

			/* $('#aboutDescShow').click(function() {
				$('#aboutDescShow').fadeOut('slow');
				$('#aboutDesc').delay(400).slideDown('slow');
				$('#aboutDescHide').delay(1000).fadeIn('slow');
				return false;
				});			
			
			$('#aboutDescHide').click(function() {
				$('#aboutDescHide').fadeOut('slow');
				$('#aboutDesc').delay(400).slideUp('slow');
				$('#aboutDescShow').delay(1000).fadeIn('slow');
				return false;
				}); */
			

			
		
			/* $.urlParam = function(name, src) {
				var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(src || window.location.href);
				if (!results) {
					return 0;
				}
				return results[1] || 0;
			} */
