$(document).ready(function(){
	//Drop Down Menus
	$(".menu a").hover(function() {
		$(this).next("em").show();
	}, function() {
		$(this).next("em").hide();
	});
	
	$("em.sub01").hover(function() {
		$("em.sub01").show();
	}, function() {
		$(this).hide();
	});
	
	$("em.sub02").hover(function() {
		$("em.sub02").show();
	}, function() {
		$(this).hide();
	});
	
	$("em.sub03").hover(function() {
		$("em.sub03").show();
	}, function() {
		$(this).hide();
	});
	
	$("em.sub04").hover(function() {
		$("em.sub04").show();
	}, function() {
		$(this).hide();
	});
	
	//News Rotator
	$('#news_rotation').innerfade({
		speed: 'slow',
		timeout: 5000,
		type: 'random',
		containerheight: '70px'
	});
	
	//Testimonial Rotator
	$('#testimonial_rotation').innerfade({
		speed: 'slow',
		timeout: 10000,
		type: 'random',
		containerheight: '90px'
	});
	
	//Portfolio
	$("#portfolio_images #controller").jFlow({
		slides: "#slides",
		width: "618px",
		height: "400px"
	});
	
	//Image Pop Ups
	$("a[rel^='prettyPhoto']").prettyPhoto();
	
	//Form Submissions
	$("#submit_company_request_quote").click(function() {
		$("#form_quote").submit();
		return false;
	});
	$("#submit_web_request_quote").click(function() {
		$("#form_quote").submit();
		return false;
	});
	$("#submit_it_request_quote").click(function() {
		$("#form_quote").submit();
		return false;
	});
});