(function($) {
		  
$(document).ready(function(){
						   
						   

// Fading Img's //



//tickets
$(document).ready(function() {
$("ul.tickets li").hover(function() { //On hover...

var thumbOver = $(this).find("img").attr("src"); //Get image url and assign it to 'thumbOver'

//Set a background image(thumbOver) on the <a> tag - Set position to bottom
$(this).find("a.thumb").css({'background' : 'url(' + thumbOver + ') no-repeat center bottom'});

//Animate the image to 0 opacity (fade it out)
$(this).find("span").stop().fadeTo('normal', 0 , function() {
$(this).hide() //Hide the image after fade
});
} , function() { //on hover out...
//Fade the image to full opacity 
$(this).find("span").stop().fadeTo('normal', 1).show();
});

});


//CTA's
$("ul.cta li, ul.cta2 li").hover(function() { //On hover...

var thumbOver = $(this).find("img").attr("src"); //Get image url and assign it to 'thumbOver'

//Set a background image(thumbOver) on the &lt;a&gt; tag 
$(this).find("a.thumb").css({'background' : 'url(' + thumbOver + ') no-repeat center bottom'});
//Fade the image to 0 
$(this).find("span").stop().fadeTo('normal', 0 , function() {
$(this).hide() //Hide the image after fade
}); 
} , function() { //on hover out...
//Fade the image to 1 
$(this).find("span").stop().fadeTo('normal', 1).show();
});


//social icons
$("ul.social li").hover(function() { //On hover...

var thumbOver = $(this).find("img").attr("src"); //Get image url and assign it to 'thumbOver'

//Set a background image(thumbOver) on the &lt;a&gt; tag 
$(this).find("a.thumb").css({'background' : 'url(' + thumbOver + ') no-repeat center bottom'});
//Fade the image to 0 
$(this).find("span").stop().fadeTo('normal', 0 , function() {
$(this).hide() //Hide the image after fade
}); 
} , function() { //on hover out...
//Fade the image to 1 
$(this).find("span").stop().fadeTo('normal', 1).show();
});



//Round corners //
$(".rounded, .rounded2").corner("corner color: cc:#xxx");



//Drop Down Menu //
jQuery(function(){
jQuery('ul.sf-menu').superfish();
});


//Inline Modal Window //


$("a#em1").bind("click", function () {
$("#popup2").bPopup();
return false
});

$("a#em2").bind("click", function () {
$("#popup3").bPopup();
return false
});


$("a#em4").bind("click", function () {
$("#popup4").bPopup();
return false
});
	   

//Animating PNG Images //

var i;
for (i in document.images) {
if (document.images[i].src) {
var imgSrc = document.images[i].src;
if (imgSrc.substr(imgSrc.length-4) === '.png' || imgSrc.substr(imgSrc.length-4) === '.PNG') {
document.images[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='crop',src='" + imgSrc + "')";
}
}
}
	 
	 


	
// End of the Script //
});

})(jQuery);
