$(document).ready(function(){

var IE = (navigator.userAgent.indexOf("MSIE 6")>=0 || navigator.userAgent.indexOf("MSIE 7")>=0 || navigator.userAgent.indexOf("MSIE 5")>=0) ? true : false;
if(IE){

	$(function(){
		
		$("<div>")
			.css({
				'position': 'absolute',
				'top': '0px',
				'left': '0px',
				backgroundColor: 'black',
				'opacity': '0.75',
				'width': '100%',
				'height': $(window).height(),
				zIndex: 5000
			})
			.appendTo("body");
			
		$("<div><p>Sorry I hate to stop you there but this website is best experienced in another browser. It is good to have a safe and reliable browser and the one you are useing is not that.  <br /><br />Here are a few for you to choose from <br /><a style='color:#FFF;' href ='http://www.mozilla.com/en-US/'>Fire Fox >></a><br/><a href='http://www.google.com/chrome' style='color:#FFF;'>Chrome >></a><br/><a href='http://www.opera.com/browser/' style='color:#FFF;'>Opera >></a><br/><a href='http://www.microsoft.com/windows/internet-explorer/default.aspx' style='color:#FFF;'>Internet Explorer 8 >></a></p>")
			.css({
				backgroundColor: '#FF371A',
				color:'#FFF',
				'top': '50%',
				'left': '50%',
				marginLeft: -210,
				marginTop: -100,
				width: 410,
				paddingRight: 10,
				height: 200,
				'position': 'absolute',
				zIndex: 6000,
				'text-align':'center'
				
			})
			.appendTo("body");
	});		
}

	var arrowbool = 0;
    function arrowswitch()
	{
		if(arrowbool == 0)
		{
		$("#arrowImg").remove();
		$("#menuShow").append('<img id="arrowImg" style="margin-top:25px;" src="http://www.lampstandcreative.com/wp-content/themes/LampstandCreative/images/arrowDown.png" />');	
		arrowbool = 1;
		}
		else
		{
		$("#arrowImg").remove();
		$("#menuShow").append('<img id="arrowImg" style="margin-top:25px;" src="http://www.lampstandcreative.com/wp-content/themes/LampstandCreative/images/arrowUp.png" />');		
		arrowbool = 0;
		}
	}
 arrowswitch();
	
	$(".commentBody") .find("#commentform").hide().end() .find("#leaveAComment").click(function () {
     
		$("#commentform").slideToggle("slow");
    
	});
	
	$("#wrapp").find("#navFlyout").hide().end().find("#menuShow").click(function () {
	
		$("#navFlyout").slideToggle("slow");
		 arrowswitch();
    
	});
	
	var path = window.location.href;
	var replyPath = /replytocom/;
	var results = path.search(replyPath);	
	if (results != -1)
	{
		$("#commentform").slideToggle("slow");
	}


	});
	
	