$(function() {

$(".mylink img").hover(
  function () {
    this.src = this.src.replace("_off","_over");
  }, 
  function () {
   this.src = this.src.replace("_over","_off");
  }
);

$('#imgslideshow').cycle({
		fx: 'fade',
		speed:  2500 
   	
		 // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
 
if ( $.browser.msie && parseInt($.browser.version, 10)==7) {
 	$("#content").css("margin-left","60px");
 	$("#contentsub").css("margin-left","60px");
 	$("#header").css("margin-top","0");
 	$("#footer").css({"margin-left":"46px"});
 	$("#container").css({"padding-top":"220px","display":"inline-block"});
	$("#contentbodyindex").css({'padding-top':'220px','left':'60px'});
	$('#contentsubbody').prepend("<div id='warningcontainer'><div id='warning'>Some elements of this website will not display correctly in older browsers. Please consider updating your browser to the latest version.</div></div>");
	$('#contentbodyindex').prepend("<div id='warningcontainer'><div id='warning'>Some elements of this website will not display correctly in older browsers. Please consider updating your browser to the latest version.</div></div>");
	
	
}
if ( $.browser.msie && parseInt($.browser.version, 10)==6) {
 	var url = "http://oaktenn.becausecreate.com/ie";
 	$(location).attr('href',url);

}

if ($.browser.msie==true && ($(location).attr('href')=='http://oaktenn.becausecreate.com/' || $(location).attr('href')=='http://oaktenn.becausecreate.com/home/')){
	$("h1").css({'background-color':'transparent','background-image': 'none','color': '#000000','width':'480px','visibility':'visible'});

}else{
	$("h1").css({'visibility':'visible'});
	

}
$("#imageroomscontainer a").slimbox();

})
