/*
                 Site:  web.blog.TwelveHorses.com
          Site Design:  Twelve Horses
                  URL:  http://web.twelvehorses.com
   Designer+Developer:  Tim Miley
============================================================= */


if(typeof sIFR == "function"){
	
//sIFR.replaceElement(named({sSelector:".primary_title", sFlashSrc:"/wp-content/themes/12h_blog_redesign_2009/assets/swf/stone_sans_semibold.swf", sColor:"#0b79bf", sLinkColor:"#0b79bf", sBgColor:"null", sHoverColor:"#0a97f1", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left"}));
	
//sIFR.replaceElement(named({sSelector:".secondary_title",sFlashSrc:"/wp-content/themes/12h_blog_redesign_2009/assets/swf/stone_sans_bold.swf", sColor:"#666666", sLinkColor:"#0b79bf", sBgColor:"null", sHoverColor:"#0a97f1", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left"}));
};

window.onload = function()
{
 var txtSearch= document.getElementById("searchfield");
 txtSearch.onfocus = function() {
 if(this.value == "Search") {
 this.value = "";
 	}
 }
 txtSearch.onblur = function() {
 if(this.value == "") {
 this.value = "Search";
 	}
 }
};
$(document).ready(function(){	
	$(".btn_slide").click(function(){
		$("#network").slideToggle("slow");
		$(".arrow").toggleClass("up");
		return false;
	});		
	$(".thumbs a").wrap("<span>" + "</span>");
  $(".vid_thumbs a").prepend("<em class='play'></em>");
	$('.play').animate({ opacity: 0.5 });
	$(".vid_thumbs a").hover(function () {
			$(this).children('.play').stop().animate({ opacity: 0 }, 190);			
		}, function() {
			$('.play').stop().animate({ opacity: 0.5 }, 100);
    });	 

function vidwrap(object) {
	$(".media").wrap("<div align='center'>" + "</div>")
	.before("<div class='video_top'></div>").after("<div class='video_btm'></div><div style='clear:both'></div>");
	$(".video_top").toggle("1");
	$(".video_btm").toggle("1");
	$(".media").toggle("1");
	$("#mastfoot").toggle("1");
	}	
vidwrap();

});
