var JQ = jQuery.noConflict();

JQ(document).ready(function(){
    JQ('#topMenu').hover(function(){
		JQ(this).find('#childMenu').slideToggle(250);
    })

	//set the starting bigestHeight variable  
	var biggestHeight = 0;  
	//check each of them  
	JQ('.equal_height').each(function(){ 
		//if the height of the current element is  
		//bigger then the current biggestHeight value  
		if(JQ(this).height() > biggestHeight){  
			//update the biggestHeight with the  
			//height of the current elements  
			biggestHeight = JQ(this).height();  
		}  
	});  
	JQ('#sidebar').height(biggestHeight);
	JQ('#content').height(biggestHeight);

	JQ('.row').each(function(){
		//alert(JQ(this).height());
		var biggestHeight = 0;
		JQ(this).find('.equal_height').each(function(){
			if(JQ(this).height() > biggestHeight){  
				//update the biggestHeight with the  
				//height of the current elements  
				biggestHeight = JQ(this).height();  
			}                       
		});
		JQ(this).find('.equal_height').each(function(){
			JQ(this).height(biggestHeight);
		}); 
	});
 
	JQ('.post-type-archive-news .news .post, .home .news .post, .home .featured .post,#featured .post, #content .current .post, #sidebar #currentReleases .post, .additions .post, #wrapperShop .block .post, #sidebar .gigs .post').click(function(){
		var link3 = JQ(this).find('h3 a');
		var href3 = JQ(link3).attr('href');
		window.location = href3;
	});

	JQ('#wrapperPress .post').click(function(){
		var link3 = JQ(this).find('h4 a');
		var href3 = JQ(link3).attr('href');
		window.location = href3;
	});
          
	JQ('#wrapperShop #content .post').click(function(){
		var link3 = JQ(this).find('h4 a');
		var href3 = JQ(link3).attr('href');
		window.location = href3;
	});

	JQ('.home .heading').click(function(){
		var link3 = JQ(this).find('h2 a');
		var href3 = JQ(link3).attr('href');
		window.location = href3;
	});

	JQ('.home .heading, #sidebar .gigs .heading, #singlePress .heading,#singleNews .heading').click(function(){
		var link3 = JQ(this).find('span a');
		var href3 = JQ(link3).attr('href');
		window.location = href3;
	});
          
	JQ('#wrapperSearch .post .b-holder').click(function(){
		var link3 = JQ(this).parent().find('h2 a');
		var href3 = JQ(link3).attr('href');
		window.location = href3;
	});
	
	JQ('.page-id-215 #content select').styledSelect({       
		selectClass: 'styledSelect',
		openSelectClass: 'open',
		optionClass: 'option',
		selectedOptionClass: 'selected',
		closedOptionClass: 'closed',
		firstOptionClass: 'first',
		lastOptionClass: 'last',
		zIndexApply: false,
		zIndexStart: 250,
		deactiveOnBackgroundClick: true
	});



	
});

