// no conflicts with other frameworks
var $j = jQuery.noConflict();

//
// window.onload function to setup various javascripts
//
$j(function() {
	//fix png transparency in IE<6
	//$j('img[@src$=.png]').ifixpng();
	
	//Pretty Photo
		$j("a[rel^='prettyPhoto']").prettyPhoto({
			animationSpeed: 'fast', /* fast/slow/normal */
			padding: 40, /* padding for each side of the picture */
			opacity: 0.9, /* Value betwee 0 and 1 */
			showTitle: false, /* true/false */
			allowresize: false, /* true/false */
			counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
			theme: 'dark_square', /* light_rounded / dark_rounded / light_square / dark_square */
			hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
			modal: false, /* If set to true, only the close button will close the window */
			changepicturecallback: function(){}, /* Called everytime an item is shown/changed */
			callback: function(){} /* Called when prettyPhoto is closed */
		});
		
		$j('.big_text_field').click(function() {
            if (this.value == this.defaultValue) {
                this.value = '';
            }
        });
        
        $j('.big_text_field').blur(function() {
            if (this.value == '') {
                this.value = this.defaultValue;
            }
        });

      //stick the footer at the bottom of the page if we're on an iPad/iPhone due to viewport/page bugs in mobile webkit
      if(navigator.platform == 'iPad' || navigator.platform == 'iPhone' || navigator.platform == 'iPod')
      {
      	 $j(".social_networks").css("position", "static");
      	 $j(".social_networks").css("height", "52px");
      	 $j(".footer").css("padding-bottom", "0");
      	 $j(".social_networks ul").css("padding-top", "18px");
      };

});



