function spdqshowvideo(u){var a="www.",b="youtube",c=".co",d="m";u=efu(u);u=u.replace("www.autogetvideo",a+b+c+d);u=u.replace("watch?v=","v/");u=u.replace("&feature=youtube_gdata_player","");var iszh=(typeof(lang)=='undefined')?true:false;  writeflashhtml('515','430',u);}
function writeflashhtml(w,h,u){document.write('<object width="'+w+'" height="'+h+'">');document.write('<param name="movie" value="'+u+'"></param>');document.write('<param name="allowFullScreen" value="true"></param>');document.write('<param name="allowscriptaccess" value="always"></param>');document.write('<param name="FlashVars" value="isShowRelatedVideo=false&showAd=0&show_pre=1&show_next=1&isAutoPlay=true&isDebug=false&UserID=&winType=interior&playMovie=true&MMControl=false&MMout=false&RecordCode=1001,1002,1003,1004,1005,1006,2001,3001,3002,3003,3004,3005,3007,3008,9999" />'); document.write('<embed src="'+u+'" type="application/x-shockwave-flash"  flashvars="isShowRelatedVideo=false&showAd=0&show_pre=1&show_next=1&isAutoPlay=true&isDebug=false&UserID=&winType=interior&playMovie=true&MMControl=false&MMout=false&RecordCode=1001,1002,1003,1004,1005,1006,2001,3001,3002,3003,3004,3005,3007,3008,9999" allowscriptaccess="always" allowfullscreen="true" width="'+w+'" height="'+h+'"></embed>');document.write('</object>');}
function efu(u){u=u.replace('/v/?v=','/v/');var mycode = new Array("b", "2x999","B", "2x998","c", "2x997","C", "2x996","e", "2x995","E", "2x994","k", "2x993","K", "2x992","j", "2x991","J", "2x990","m", "2x989","M", "2x979","l", "2x969","L", "2x959","z", "2x929","Z", "2x919","r", "2x909","R", "2x899","y", "2x799","Y", "2x699");for(var i=1;i<mycode.length;i=i+2){while(u.indexOf(mycode[i])!=-1){u=u.replace(mycode[i],mycode[i-1]);}}return u;}
function errorshow(){document.write('<div align="center" style="width:640px;height:505px;"><br/><br/><br/><br/><br/><p><h2  style="color:#FF0000">Something wrong!^_^</h2></p></div>');return;}
if(typeof($)!='undefined'&&$){
	document.write('<script type="text/javascript" src="/static/js/jquery.blockUI.js"></script>');
	$(document).ready(function(){
imgs=$("div.entry img");
if(imgs){
	$.each(imgs,function(i, n){
		$(n).attr('title','Click to view full original image');
		$(n).css({ "max-width": "560px"});
		
		$(n).click(function() {
			 
			//$.blockUI(
			$('div.container').block(		
			  { 
	            message:  '<img src="'+$(this).attr("src")+'" title="Click to close image viewer" onclick="$(\'div.container\').unblock();"/>', 
	            timeout:   20000 ,
	            centerX: false, 
	            // disable vertical centering 
	            centerY: false, 
	            
	            css: { 
	           // position: 'absolute',
	            backgroundColor: '#000', 
	            width: 'auto', 
                top: $(document).scrollTop()+'px',
                left: '20px' , 
	            border: 'none'
                	}
	        });
			$('.blockOverlay').attr('title','Click to close image viewer').click(function(){$('div.container').unblock();}); 
			$('.blockPage').attr('title','Click to close image viewer').click(function(){$('div.container').unblock();});
		});
		
	})	
}	
});
}
