/**
 * @author Brett Dworaczyk
 */

$(document).ready(function(){
	$(".div4 a").hover(function()
	{
		//$(this).hide("explode", 1000);
		//$(this).show("explode", 1000);
	});
	
	$(".list img").hover(function()
	{
		$(this).fadeTo("slow", 0.5);
	},
	function()
	{
		$(this).fadeTo("slow", 1.0);
	});
				
	$("#breadcrumb a").hover(function()
	{
		$(this).animate({
			//color: "#999999"
			color: "#ffffff"
		});
	},
	function()
	{
		$(this).animate({
			//color: "#1B57A3"
			//color: "#ffffff"
			color: "#999999"
		});
	});
	
	$(".div3 a").hover(function()
	{
		$(this).animate(
		{
			color: "#ffffff"
		});
	}, function()
	{
		$(this).animate({
			color: "#999999"
		});
	});
	
	//for social links
	$(".soc_ind_lnk a").hover(function()
	{
		$(this).effect("bounce", {times: 3}, 300);
	});
	
	//end for social links
	
	$(".man_links_div").hover(function()
	{
		$(this).effect("bounce", {times: 1}, 1000);
	});
	
	$("#categories a").hover(function()
	{
		$(this).effect("highlight", {color: "#0F67A1"});
	},
	function()
	{
		$(this).css("background-color", "#2f414B");
		//$(this).css("background-color", "#333333");
		$(this).css("color", "#ffffff");
	});
	
	$("#categories a b").parent().css({"backgroundColor": "#0F67A1", "color": "#ffffff"});
	$("#print_items_list ul li ul li a b").parent().addClass("sub_select");
	
	
	$("#rotr_store_link a").hover(function()
	{
		current_color = $("#rotr_store_link").css("background-color");
		/*$("#rotr_store_link").animate(
		{
			backgroundColor: "#ffffff"
		});*/
		$("#rotr_store_link a").animate(
		{
			color: "#FA6602"
		});
	},
	function()
	{
		/*$("#rotr_store_link").animate(
		{
			backgroundColor: '#0F67A1'
		});*/
		$("#rotr_store_link a").animate(
		{
			color: "#ffffff"
		});
	});
	
	$(".table_cell_image_div img").hover(function()
	{
		$(this).parent().parent().next().next().css("font-weight", "bold");
	}, function()
	{
		$(this).parent().parent().next().next().css("font-weight", "normal");
	});
	
	/* For Google Maps */
	
	function initializeGoogleMaps(){
		var myLatlng = new google.maps.LatLng(30.634983,-96.354794);
		var myOptions = {
			zoom: 15,
			center: myLatlng,
			mapTypeId: google.maps.MapTypeId.ROADMAP
		};
		var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
		
		var icon = "image/google_logo_marker.png";
		
		var marker = new google.maps.Marker({
			position: myLatlng,
			icon: icon,
			title: "Screened Images, Inc."
		});
		
		marker.setMap(map);
	}
	
	var doc_href = window.location.href;
	
	if(doc_href.indexOf("information_id=4") != -1)
	{
		//alert("doc_href is: " + doc_href);
		initializeGoogleMaps();
	}
	
	/* End google maps code */
	
	/* current specials banner rollover effect on homepage */
	$("#cookoff_ad img").hover(function()
	{
		$(this).fadeTo("slow", 0.80);
		$(this).css("border", "1px dashed #ff0000");
	},
	function()
	{
		$(this).fadeTo("slow", 1.0);
		$(this).css("border", "1px solid #000000");
	});	
});


