jQuery(function() {

jQuery(".gallery-icon a").prettyPhoto({animationSpeed:'normal',theme:'light_square', show_title : false});
jQuery("a[rel^='prettyPhoto'], .gallery-icon a").prettyPhoto({animationSpeed:'normal',theme:'light_square', show_title : false});
jQuery('#footer-content .one-third:last').addClass('last');
jQuery('#flickr_badge_image3').css({ 'margin-right': 0 });
jQuery('#flickr_badge_image6').css({ 'margin-right': 0 });
jQuery('#flickr_badge_image9').css({ 'margin-right': 0 });
jQuery('#flickr_badge_image12').css({ 'margin-right': 0 });
jQuery('.games:last').css({ 'border-bottom': 0 });

 jQuery('.archive-post-thumb, .thumbnail_300, .thumbnail_50, .flickr_badge_image').hover(function(){

        jQuery(this).stop().animate({ opacity: 0.6 }, 250);

}, function(){

        jQuery(this).stop().animate({ opacity: 1 }, 350);

    });

});

$(document).ready(function(){ 
        $("ul.menu, .topmenu").superfish(); 
    }); 

$(function(){
	$(".tipos").tipTip({maxWidth: "auto", edgeOffset: 10});
});

jQuery(window).load(function() {

               jQuery('#slider').nivoSlider({
					 pauseTime:5000,
                pauseOnHover:true,
                effect:'random', //Specify sets like: 'fold,fade,sliceDown'
                slices:15,
                animSpeed:500, //Slide transition speed
                directionNav:true, //Next & Prev
                captionOpacity:0.9, //Universal caption opacity
					 controlNav:false //1,2,3...

	});

        dropDown();

        }); 



 jQuery(document).ready(function(){
                jQuery("a[rel^='prettyPhoto']").prettyPhoto();
            });

            jQuery(document).ready(function(){
                jQuery("a[rel^='prettyPhoto']").prettyPhoto({

                    allow_resize: true, /* Resize the photos bigger than viewport. true/false */
                    default_width: 1100,
                    default_height: 700,
                    counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
                    theme: 'light_rounded' /* light_rounded / dark_rounded / light_square / dark_square / facebook */



                });
            });
 
 
 
 
/* TEXT SIZE
------------------------------------------------------------- */
var min=13;
var max=16;
function increaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
   }
}
function decreaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}

function getUrlVars() {
    var vars = [], hash;
    var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
    for(var i = 0; i < hashes.length; i++)
    {
        hash = hashes[i].split('=');
        vars.push(hash[0]);
        vars[hash[0]] = hash[1];
    }
    return vars;
	 
}
 
