/*
 * jQuery Address Plugin v1.1
 * http://www.asual.com/jquery/address/
 *
 * Copyright (c) 2009 Rostislav Hristov
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-10-09 23:41:25 +0300 (Fri, 09 Oct 2009)
 */
/*(function($) {
	//var base = $.address.baseURL().split(document.domain)[1];
	var base = $.address.baseURL();
	var areas = ['#fill-content'];
	var areas_cat = ['#allposts'];
	var includes = '.more-link, .swf-title a, .older a, .newer a, .author a';
	var excludes = 'a[href=#], a[href*=/feed/], a[href*=/wp-], a.noajax, #bnewsletter *';
	var blog_url = 'http://diesel-fragrance-factory.com/';
	var theme_url = blog_url+'wp-content/themes/diesel-life-factory/';
	
	$.address.change(function(event) {
						
		url_c = $.address.baseURL(); // Get current URL
		value = window.location.href;
		path = $.address.path();
		
		var validePath = path.substr(0, path.length-1);
		var array = validePath.split('/');
		var pageID = array[array.length-1];
		
		if(array.length > 2)
		{
			cmCreatePageviewTag(pageID, array[array.length-2]);
		}else if (array.length < 2){
			cmCreatePageviewTag("Home");	
		}else{
			cmCreatePageviewTag(pageID);
		}
						
		if (path.indexOf("/#comments") != '-1') {
			anchor = 'comments';
			temp = event.value;
			temp = temp.split("/#comments");
			event.value = temp[0];
		} else if (path.indexOf("/%23comments") != '-1') {
			anchor = 'comments';
			temp = event.value;
			temp = temp.split("/%23comments");
			event.value = temp[0];			
		} else {
			anchor = '';
		}
		if(url_c.indexOf("?s=") == -1 && url_c.indexOf("newsletter") == -1) { // No Ajax, if search
			if (path == "/creative/" || path == "/crazy/" || path == "/shocking/" || path == "/fortune/") {
				$("#allposts").html('<div class="load" style="">LOADING</div>'); // Show Loader
				$("#footer").css('display', 'none');
				$.ajax({url: base + event.value, cache: true, type: "GET", dataType: "html", data: {type: "ajaxCat"},
				complete: function() {
					//called when complete
				},
				success: function(data) {
					$(areas_cat).each(function() { // For each results
						var area = this.toString();
						$(area).html(data); // Push html data in the right
						$(area).removeClass('load'); // Remove loader
						$("#footer").css('display', 'block');
						$(document).ready(function() {
							if ($.browser.msie) { DD_roundies.addRule('.roundify', '5px'); };
							//FB.init("e1d23a94245210b4dc91eaf97541c99b","http://diesel-fragrance-factory.com/wp-content/themes/diesel-life-factory/xd_receiver.htm");
							$('.like a').unbind();
							$(".navigation_group").css('top', '550px').makeFloat({x:"current",y:"current",speed:'fast'});
							$(area).masonry({columnWidth: 243,itemSelector: '.eachpost'});
							$('.eachpost').css('position', 'absolute');
						});
						$(window).load(function() {
							$(area).masonry({columnWidth: 243,itemSelector: '.eachpost'});
							if ($.browser.msie) { DD_roundies.addRule('.roundify', '5px'); };
						});
						$(includes).not('a[href^=http]:not("[href*=' + document.domain + ']")').not(excludes).address(function() {
							return $(this).attr('href').split(base)[1];
						});
					});
				},
				error: function() {
					alert("Something went wrong, please reload the page");
				}});
			} else {
				$.scrollTo({ top:'0', left:'0' }); // Go to the top of the page
				$("#fill-content").html('<div class="load" style="margin-bottom:400px;">LOADING</div>'); // Show Loader
				$("#footer").css('display', 'none');
				$.ajax({url: base + event.value, cache: true, type: "GET", dataType: "html", data: {type: "ajax"},
				complete: function() {
					//called when complete
				},
				success: function(data) {
					//called when successful
					$(areas).each(function() { // For each results
						var area = this.toString();
						$(area).html(data); // Push html data in the right
						$(area).removeClass('load'); // Remove loader
						$("#footer").css('display', 'block');
						AC_FL_RunContent(
							'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0',
							'width', '100%',
							'height', '100%',
							'src', "http://www.diesel-fragrance-factory.com/swf/menu2?url="+blog_url,
							'quality', 'best',
							'pluginspage', 'http://www.adobe.com/go/getflashplayer',
							'wmode', 'transparent',
							'id', "splash-home",
							'name', "splash-home",
							'menu', 'false',
							'allowFullScreen', 'false',
							'allowScriptAccess', 'always',
							'movie', "http://www.diesel-fragrance-factory.com/swf/menu2?url="+blog_url+"&xpath="+blog_url+"spotlight.xml",
							'salign', 'lt'
							);
						str_menu = str;
						var if_comments = event.value; // Are the user wanted to go to comments ?
						$(document).ready(function() {
							if ($.browser.msie) { DD_roundies.addRule('.roundify', '5px'); };
							$('#splash-home').html(str_menu);
						});
						$(window).load(function() { if ($.browser.msie) { DD_roundies.addRule('.roundify', '5px');  }; });
						if(if_comments.indexOf("#comments") != '-1'){
							$.scrollTo('#comments'); // Scroll to comments
						} else {
							$.scrollTo({ top:'0', left:'0' }); // Scroll to top
						}
						$(includes).not('a[href^=http]:not("[href*=' + document.domain + ']")').not(excludes).address(function() {
							return $(this).attr('href').split(base)[1];
						});
					});
				},
				error: function() {
					alert("Something went wrong, please reload the page");
				}});
			}
		} else {
		}
	});
})(jQuery);*/

/*************************************************
**  jQuery Masonry version 1.0.1
**  copyright David DeSandro, licensed GPL & MIT
**  http://desandro.com/resources/jquery-masonry
**************************************************/
;(function($){$.fn.masonry=function(options,callback){function placeBrick($brick,setCount,setY,setSpan,props){var shortCol=0;for(i=0;i<setCount;i++){if(setY[i]<setY[shortCol])shortCol=i}$brick.css({top:setY[shortCol],left:props.colW*shortCol+props.posLeft});for(i=0;i<setSpan;i++){props.colY[shortCol+i]=setY[shortCol]+$brick.outerHeight(true)}}function masonrySetup($wall,opts,props){props.$bricks=opts.itemSelector==undefined?opts.$brickParent.children():opts.$brickParent.find(opts.itemSelector);if(opts.columnWidth==undefined){props.colW=props.masoned?$wall.data('masonry').colW:props.$bricks.outerWidth(true)}else{props.colW=opts.columnWidth}props.colCount=Math.floor($wall.width()/props.colW);props.colCount=Math.max(props.colCount,1)}function masonryArrange($wall,opts,props){if(!props.masoned)$wall.css('position','relative');if(!props.masoned||opts.appendedContent!=undefined){props.$bricks.css('position','absolute')}var cursor=$('<div />');$wall.prepend(cursor);props.posTop=Math.round(cursor.position().top);props.posLeft=Math.round(cursor.position().left);cursor.remove();if(props.masoned&&opts.appendedContent!=undefined){props.colY=$wall.data('masonry').colY;for(i=$wall.data('masonry').colCount;i<props.colCount;i++){props.colY[i]=props.posTop}}else{props.colY=[];for(i=0;i<props.colCount;i++){props.colY[i]=props.posTop}}if(opts.singleMode){props.$bricks.each(function(){var $brick=$(this);placeBrick($brick,props.colCount,props.colY,1,props)})}else{props.$bricks.each(function(){var $brick=$(this);var colSpan=Math.ceil($brick.outerWidth(true)/props.colW);colSpan=Math.min(colSpan,props.colCount);if(colSpan==1){placeBrick($brick,props.colCount,props.colY,1,props)}else{var groupCount=props.colCount+1-colSpan;var groupY=[0];for(i=0;i<groupCount;i++){groupY[i]=0;for(j=0;j<colSpan;j++){groupY[i]=Math.max(groupY[i],props.colY[i+j])}}placeBrick($brick,groupCount,groupY,colSpan,props)}})}props.wallH=0;for(i=0;i<props.colCount;i++){props.wallH=Math.max(props.wallH,props.colY[i])}$wall.height(props.wallH-props.posTop);callback.call(props.$bricks);$wall.data('masonry',props)}function masonryResize($wall,opts,props){var prevColCount=$wall.data('masonry').colCount;masonrySetup($wall,opts,props);if(props.colCount!=prevColCount)masonryArrange($wall,opts,props)}return this.each(function(){var $wall=$(this);var props=$.extend({},$.masonry);props.masoned=$wall.data('masonry')!=undefined;var previousOptions=props.masoned?$wall.data('masonry').options:{};var opts=$.extend({},props.defaults,previousOptions,options);props.options=opts.saveOptions?opts:previousOptions;callback=callback||function(){};if(props.masoned&&opts.appendedContent!=undefined){opts.$brickParent=opts.appendedContent}else{opts.$brickParent=$wall}if(opts.$brickParent.children().length>0){masonrySetup($wall,opts,props);masonryArrange($wall,opts,props);var resizeOn=previousOptions.resizeable;if(!resizeOn&&opts.resizeable){$(window).bind('resize.masonry',function(){masonryResize($wall,opts,props)})}if(resizeOn&&!opts.resizeable)$(window).unbind('resize.masonry')}else{return this}})};$.masonry={defaults:{singleMode:false,columnWidth:undefined,itemSelector:undefined,appendedContent:undefined,saveOptions:true,resizeable:true},colW:undefined,colCount:undefined,colY:undefined,wallH:undefined,masoned:undefined,posTop:0,posLeft:0,options:undefined,$bricks:undefined,$brickParent:undefined}})(jQuery);


window.__flash__removeCallback = function() {
	return function(instance, name) {
		if (instance) instance[name] = null;
	}; // IE 6 dangling semicolon needed
}; // force another closure to prevent IE memory leaks

function globalDiesel(){
	blog_url = 'http://diesel-fragrance-factory.com/';
	theme_url = blog_url+'wp-content/themes/diesel-life-factory/';
	$(document).ready(function(){
		$('#allposts').masonry({columnWidth: 243,itemSelector: '.eachpost'});
		$('#s').focus(function(){$(this).css('background','#b9b9b9');});
		var search_val = $('#s').val();
		if(search_val != ''){$('#s').css('background','#b9b9b9');}
		$('a.playlinkbutton').click(function() {
			play($(this).attr('href'));
	        return false;
		});
	});
	$(window).load(function(){
		$('#allposts').masonry({columnWidth: 243,itemSelector: '.eachpost'});
	});
	
	window.__flash__removeCallback = function() {
		return function(instance, name) {
			if (instance) instance[name] = null;
		}; // IE 6 dangling semicolon needed
	}; // force another closure to prevent IE memory leaks
}

function uniqid()
{
	var newDate = new Date;
	return newDate.getTime();
}

function makeTitlesBe () {
	$(document).ready(function(){
		var hasRightVersion = DetectFlashVer(9, 0, 0);
		if (hasRightVersion) {
			var swf_url = 'http://www.diesel-fragrance-factory.com/swf/title';
			$('.onecol, .twocols').each(function() {
				var current_height = $(this).find('h2 a').height();
				if (current_height > 0 && current_height < 54) {
					var height_swf = 44;
				} else if (current_height > 54 && current_height < 100 ) {
					var height_swf = 78;
				} else {
					var height_swf = 113;
				}
				if ($(this).hasClass("onecol") == true) {
					var width_swf = '155';
					if (current_height > 0 && current_height < 30) {
						var height_swf = 30; // 1
					} else if (current_height > 30 && current_height < 50) {
						var height_swf = 58; // 2
					} else if (current_height > 50 && current_height < 66) {
						var height_swf = 78; // 3
					} else if (current_height > 66 && current_height < 122) {
						var height_swf = 96; // 4
					} else {
						var height_swf = 102;
					}
				} else {
					var width_swf = '398';
					//var height_swf = $(this).find('.swf-title').height();
				}
				$(this).find('.swf-title').css('height', height_swf+'px');
				// Attributes
				var url_swf = $(this).find('.swf-title').attr("url");
				var category_swf = $(this).find('.swf-title').attr("category");
				var color_swf = $(this).find('.swf-title').attr("color");
				var title_swf = $(this).find('.swf-title').attr("title");
				
				AC_FL_RunContent(
					'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0',
					'width', ""+width_swf+"",
					'height', ""+height_swf+"",
					'src', ""+swf_url+"",
					'quality', 'best',
					'pluginspage', 'http://www.adobe.com/go/getflashplayer',
					'wmode', 'window',
					'id', $(this).find('.swf-title').attr('id'),
					'name', $(this).find('.swf-title').attr('id'),
					'menu', 'false',
					'allowScriptAccess', 'always',
					'allowFullScreen', 'false',
					'movie', ""+swf_url+"?id="+uniqid()+"&url="+url_swf+"&category="+category_swf+"&color="+color_swf+"&title="+title_swf+""
					);
				str_title = str;
				$(this).find('.swf-title').html(str_title);
			});
		} else { };
	});
}

function makeTitlesSinglePage() {
	$(document).ready(function() {
		var hasRightVersion = DetectFlashVer(9, 0, 0);
		if (hasRightVersion) {
			$('.s-top').each(function() {
				var current_height_sp = $(this).find('h2').height();
				if (current_height_sp > 0 && current_height_sp < 50) {
					var height_swf_sp = 54; // 1 line
				} else if (current_height_sp > 50 && current_height_sp < 90 ) {
					var height_swf_sp = 76; // 2 lines
				} else {
					var height_swf_sp = 112; // 3 lines & more
				}
				
				var title_url = $(this).attr('url');
				var title_cat = $(this).attr('category');
				var title_color = $(this).attr('color');
				var title_title = $(this).attr('title');
				var swf_url = 'http://www.diesel-fragrance-factory.com/swf/title';
				
				AC_FL_RunContent(
					'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0',
					'width', "675",
					'height', ""+height_swf_sp+"",
					'src', ""+swf_url+"",
					'quality', 'best',
					'pluginspage', 'http://www.adobe.com/go/getflashplayer',
					'wmode', 'window',
					'id', $(this).find('h2').attr('id'),
					'name', $(this).find('h2').attr('id'),
					'menu', 'false',
					'allowScriptAccess', 'always',
					'allowFullScreen', 'false',
					'movie', ""+swf_url+"?id="+uniqid()+"&category="+title_cat+"&color="+title_color+"&title="+title_title+"&url="+title_url+""
					);
				str_title_single = str;
				$(this).find('h2').html(str_title_single);
			});
		} else { }
	});
}

function fillComments(){
	$(window).load(function(){
		$('.commentlist').masonry({columnWidth: 243,itemSelector: '.comment'});
		
		$('#likes-share a, #the-content a, #logo a, .like a').unbind();
		$('.like a').click(function(event) {
			return false;
		});
	});
	$(document).ready(function(){
		$('.commentlist').masonry({columnWidth: 243,itemSelector: '.comment'});
		$('.right-btn').unbind();
		$('.right-btn').click(function(event){
			event.preventDefault();
			$('#commentform').slideToggle();
		})
		
		$('.commentlist li').each(function(){
			$(this).hover(function(){
				$(this).css({'background':'#000','color':'#fff'});
			},function(){
				$(this).css({'background':'#FFF','color':'#000'});
			});
		});
		
		$('.share').hover(function () {
			$(this).find('ul').css({'display':'block','background':'#fff','color':'#000'});
			$(this).find('.main').css({'background':'#fff','color':'#000'});
		}, function () {
			$(this).find('ul').css({'display':'none','background':'#000','color':'#FFF'});
			$(this).find('.main').css({'background':'#000','color':'#FFF'});
		});
		
		$('.likes-comms .comms').click(function(event) {
			$.scrollTo('#comments');
			return false;
		});
	});
}

function resetElements () {
	$(document).ready(function() {
		$('#allposts').masonry({columnWidth: 243,itemSelector: '.eachpost'});
		$(".navigation_group").makeFloat({x:"current",y:"current",speed:'fast'});
		$('.top').click(function(event) {
			$.scrollTo({ top:'0', left:'0' });
			return false;
		});
		$('.addtoany_list a').unbind(); // Remove ajax from the share links
		$('#related-posts').masonry({columnWidth: 243,itemSelector: '.eachpost'});
	});
}

function hoverOnSmallFit() {
	$(document).ready(function() {
		var hasRightVersion = DetectFlashVer(9, 0, 0);
		if (hasRightVersion) {
			// Make colored titles
			$('dl.eachpost dt, dl.eachpost .title-o').each(function() {
				var current_height = $(this).find('a').height();
				// 1 ligne  : 31px
				// 2 lignes : 57px
				// 3 lignes : 83px
				// 4 lignes : 109px
				if (current_height > 0 && current_height < 30) {
					var height_swf = 34; // 1
				} else if (current_height > 30 && current_height < 50) {
					var height_swf = 56; // 2
				} else if (current_height > 50 && current_height < 70) {
					var height_swf = 78; // 3
				} else if (current_height > 70 && current_height < 122) {
					var height_swf = 92; // 4
				} else {
					var height_swf = 106;
				};
				var title_url = $(this).attr('url');
				var title_cat = $(this).attr('category');
				var title_color = $(this).attr('color');
				var title_title = $(this).attr('title');
				var swf_url = 'http://www.diesel-fragrance-factory.com/swf/title';
				var bgcolor = $(this).attr('bgcolor');

				AC_FL_RunContent(
					'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0',
					'bgcolor', ""+bgcolor+"",
					'width', "190",
					'height', ""+height_swf+"",
					'src', ""+swf_url+"",
					'quality', 'best',
					'pluginspage', 'http://www.adobe.com/go/getflashplayer',
					'wmode', 'window',
					'id', $(this).find('h2').attr('id'),
					'name', $(this).find('h2').attr('id'),
					'menu', 'false',
					'allowScriptAccess', 'always',
					'allowFullScreen', 'false',
					'movie', ""+swf_url+"?hash="+uniqid()+"&category="+title_cat+"&color="+title_color+"&title="+title_title+"&url="+title_url+""
					);
				str_title_small = str;
				$(this).html(str_title_small);
			});
		} else { }
		// Make White title
		
		
		$('#search-posts dl, #related-posts dl, .right-first dl').each(function(index) {
			$(this).hover(function() {
				var dl_height = $(this).height();
				var title_height = $(this).find('.title').height();
				var author_height = $(this).find('.author').height();
				var final_margin = title_height+author_height+30;
				var final_height = ((dl_height-final_margin)/2)-36;
				$(this).find('.like').css('marginTop', final_height+'px');
				$(this).find('.comms').css('marginTop', final_height+'px');
				$(this).find('.overlay').css('height', dl_height+'px');
				$(this).find('.overlay').css('marginLeft', '0px');
				$(this).find('object').not('.overlay object').css('marginLeft', '-9999px');
			}, function() {
				$(this).find('.overlay').css('marginLeft', '-9999px')
				$(this).find('object').not('.overlay object').css('marginLeft', '0px');
			});			
		});
	});
	$(window).load(function(){
		$('#search-posts dl, #related-posts dl').each(function(index) {
			$(this).unbind();
			$(this).hover(function() {
				var dl_height = $(this).height();
				var title_height = $(this).find('.title').height();
				var author_height = $(this).find('.author').height();
				var final_margin = title_height+author_height+30;
				var final_height = ((dl_height-final_margin)/2)-36;
				$(this).find('.like').css('marginTop', final_height+'px');
				$(this).find('.comms').css('marginTop', final_height+'px');
				$(this).find('.overlay').css('height', dl_height+'px');
				$(this).find('.overlay').css('marginLeft', '0px');
				$(this).find('object').not('.overlay object').css('marginLeft', '-9999px');
			}, function() {
				$(this).find('object').not('.overlay object').css('marginLeft', '0px');
				$(this).find('.overlay').css('marginLeft', '-9999px');
			});
		});
		$('#search-posts').masonry({columnWidth: 243,itemSelector: '.each'});
		$('#related-posts').masonry({columnWidth: 243,itemSelector: '.eachpost'});
	});
}


var player = null;
function play(new_player_url) {
    player_url = new_player_url;
    /*if (player != null) {
        if (!player.closed) {
            player.focus();
        }
    }*/
    player = window.open(player_url, "_mixcloud_player_window_", "width=400,height=500");
}

/**
 * jQuery.ScrollTo - Easy element scrolling using jQuery.
 * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
 * Dual licensed under MIT and GPL.
 * Date: 5/25/2009
 * @author Ariel Flesler
 * @version 1.4.2
 *
 * http://flesler.blogspot.com/2007/10/jqueryscrollto.html
 */
;(function(d){var k=d.scrollTo=function(a,i,e){d(window).scrollTo(a,i,e)};k.defaults={axis:'xy',duration:parseFloat(d.fn.jquery)>=1.3?0:1};k.window=function(a){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){var a=this,i=!a.nodeName||d.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!i)return a;var e=(a.contentWindow||a).document||a.ownerDocument||a;return d.browser.safari||e.compatMode=='BackCompat'?e.body:e.documentElement})};d.fn.scrollTo=function(n,j,b){if(typeof j=='object'){b=j;j=0}if(typeof b=='function')b={onAfter:b};if(n=='max')n=9e9;b=d.extend({},k.defaults,b);j=j||b.speed||b.duration;b.queue=b.queue&&b.axis.length>1;if(b.queue)j/=2;b.offset=p(b.offset);b.over=p(b.over);return this._scrollable().each(function(){var q=this,r=d(q),f=n,s,g={},u=r.is('html,body');switch(typeof f){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(f)){f=p(f);break}f=d(f,this);case'object':if(f.is||f.style)s=(f=d(f)).offset()}d.each(b.axis.split(''),function(a,i){var e=i=='x'?'Left':'Top',h=e.toLowerCase(),c='scroll'+e,l=q[c],m=k.max(q,i);if(s){g[c]=s[h]+(u?0:l-r.offset()[h]);if(b.margin){g[c]-=parseInt(f.css('margin'+e))||0;g[c]-=parseInt(f.css('border'+e+'Width'))||0}g[c]+=b.offset[h]||0;if(b.over[h])g[c]+=f[i=='x'?'width':'height']()*b.over[h]}else{var o=f[h];g[c]=o.slice&&o.slice(-1)=='%'?parseFloat(o)/100*m:o}if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],m);if(!a&&b.queue){if(l!=g[c])t(b.onAfterFirst);delete g[c]}});t(b.onAfter);function t(a){r.animate(g,j,b.easing,a&&function(){a.call(this,n,b)})}}).end()};k.max=function(a,i){var e=i=='x'?'Width':'Height',h='scroll'+e;if(!d(a).is('html,body'))return a[h]-d(a)[e.toLowerCase()]();var c='client'+e,l=a.ownerDocument.documentElement,m=a.ownerDocument.body;return Math.max(l[h],m[h])-Math.min(l[c],m[c])};function p(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery);

(function($) {
	/*
		jquery.twitter.js v1.0
		Last updated: 26 October 2008

		Created by Damien du Toit
		http://coda.co.za/blog/2008/10/26/jquery-plugin-for-twitter

		Licensed under a Creative Commons Attribution-Non-Commercial 3.0 Unported License
		http://creativecommons.org/licenses/by-nc/3.0/
	*/

	$.fn.getTwitter = function(options) {
		var o = $.extend({}, $.fn.getTwitter.defaults, options);
	
		// hide container element
		$(this).hide();
	
		// add heading to container element
		if (o.showHeading) {
			$(this).append('<h2>'+o.headingText+'</h2>');
		}

		// add twitter list to container element
		$(this).append('<ul id="twitter_update_list"><li></li></ul>');

		// hide twitter list
		$("ul#twitter_update_list").hide();

		// add preLoader to container element
		var pl = $('<p id="'+o.preloaderId+'">'+o.loaderText+'</p>');
		$(this).append(pl);

		// add Twitter profile link to container element
		if (o.showProfileLink) {
			$(this).append('<a id="profileLink" href="http://twitter.com/'+o.userName+'">http://twitter.com/'+o.userName+'</a>');
		}

		// show container element
		$(this).show();
	
		$.getScript("http://twitter.com/javascripts/blogger.js");
		$.getScript("http://twitter.com/statuses/user_timeline/"+o.userName+".json?callback=twitterCallback2&count="+o.numTweets, function() {
			// remove preLoader from container element
			$(pl).remove();

			// show twitter list
			if (o.slideIn) {
				$("ul#twitter_update_list").slideDown(1000);
			}
			else {
				$("ul#twitter_update_list").show();
			}

			// give first list item a special class
			$("ul#twitter_update_list li:first").addClass("firstTweet");

			// give last list item a special class
			$("ul#twitter_update_list li:last").addClass("lastTweet");
		});
	};

	// plugin defaults
	$.fn.getTwitter.defaults = {
		userName: null,
		numTweets: 5,
		preloaderId: "preloader",
		loaderText: "Loading tweets...",
		slideIn: false,
		showHeading: true,
		headingText: "Latest Tweets",
		showProfileLink: true
	};
})(jQuery);

(function($){
	function FloatObject(jqObj, params)
	{
		this.jqObj = jqObj;
		
		switch(params.speed){
			case 'fast': this.steps = 5; break;
			case 'normal': this.steps = 10; break;
			case 'slow': this.steps = 20; break;
			default: this.steps = 10;
		};
		
		var offset = this.jqObj.offset();
		this.currentX = offset.left;
		this.currentY = offset.top;
		this.width = this.jqObj.width();
		this.height = this.jqObj.height();
		this.alwaysVisible = params.alwaysVisible;
		this.alwaysTop = params.alwaysTop;
		
		this.origX = typeof(params.x) == "string" ?  this.currentX : params.x;
		this.origY = typeof(params.y) == "string" ?  this.currentY : params.y;
		
		//now we make sure the object is in absolute positions.
		this.jqObj.css({'position':'absolute' , 'top':this.currentY ,'left':'50%'});
	}
	
	FloatObject.prototype.updateLocation = function()
	{
		this.updatedX = $(window).scrollLeft() + this.origX;
		//////////////////////////////////////////////////////////////////////////////
		// Extra feature
		//////////////////////////////////////////////////////////////////////////////
		this.footerHeight = $(document).height() - $('#footer').height() - 170;
		
		if(this.alwaysTop == false){
			this.updatedY = $(window).scrollTop()+ this.origY;
			
			if( this.alwaysVisible ){
				if( this.origX + this.width > this.windowWidth() ){
					this.updatedX = this.windowWidth() - this.width + $(window).scrollLeft();
				}
				
				if( this.origY + this.height > this.windowHeight() ){
					this.updatedY = $(window).scrollTop() + this.windowHeight() - this.height;
					if( this.updatedY < this.origY ) this.updatedY = this.origY;
				}
			}
		} else {
			if( $(window).scrollTop() > this.origY){
				this.updatedY = $(window).scrollTop() + 5;
			} else {
				this.updatedY = this.origY + 5;
			}
		}
		//this.dx = Math.abs(this.updatedX - this.currentX );
		this.dy = Math.abs(this.updatedY - this.currentY );
		
		return this.dx || this.dy;
	}
	
	FloatObject.prototype.windowHeight = function()
	{
		var de = document.documentElement;
		return self.innerHeight || (de && de.clientHeight) || document.body.clientHeight;
	}
	
	FloatObject.prototype.windowWidth = function()
	{
		var de = document.documentElement;
		return self.innerWidth || (de && de.clientWidth) || document.body.clientWidth;
	}
	
	FloatObject.prototype.move = function()
	{
		if( this.jqObj.css("position") != "absolute" ) return;
		var cx = 0;
		var cy = 0;
		
		if( this.dx > 0 ){
			if( this.dx < this.steps / 2 )
				cx = (this.dx >= 1) ? 1 : 0;
			else
				cx = Math.round(this.dx/this.steps);
			
			if( this.currentX < this.updatedX )
				this.currentX += cx;
			else
				this.currentX -= cx;
		}
		
		if( this.dy > 0 ){
			if( this.dy < this.steps / 2 )
				cy = (this.dy >= 1) ? 1 : 0;
			else
				cy = Math.round(this.dy/this.steps);
				
			if( this.currentY < this.updatedY)
				this.currentY += cy;
			else
				this.currentY -= cy;
				
			if (this.currentY < this.footerHeight) {
				this.currentY = this.currentY;
			} else {
				this.currentY -= cy;
			}
		}
		this.jqObj.css({'left':'50%', 'top': this.currentY });
	}	
/*----------------------------------------------------------------------------------
Object: floatMgr
-------------------------------------------------------------------------------------*/		
$.floatMgr = {
	FOArray: new Array() , timer: null , initializeFO: function(jqObj,params)
	{
		var settings =  $.extend({x: 0 , y: 0 , speed: 'normal'	, alwaysVisible: false , alwaysTop: false},params||{});
		var newFO = new FloatObject(jqObj,settings);
		
		$.floatMgr.FOArray.push(newFO);
		
		if( !$.floatMgr.timer ) $.floatMgr.adjustFO();
		
		//now making sure we are registered to all required window events
		if( !$.floatMgr.registeredEvents ){
			$(window).bind("resize", $.floatMgr.onChange);
			$(window).bind("scroll", $.floatMgr.onChange);
			$.floatMgr.registeredEvents = true;
		}
	},
	adjustFO: function()
	{
		$.floatMgr.timer = null;
		
		var moveFO = false;
		
		for( var i = 0 ; i < $.floatMgr.FOArray.length ; i++ ){
			FO = $.floatMgr.FOArray[i];
			if( FO.updateLocation() )  moveFO = true;
		}
		
		if( moveFO ){
			for( var i = 0 ; i < $.floatMgr.FOArray.length ; i++ ){
				FO = $.floatMgr.FOArray[i];
				FO.move();
			}
			if( !$.floatMgr.timer ) $.floatMgr.timer = setTimeout($.floatMgr.adjustFO,50);
		}
	}, stopFloatChk: false , onChange: function()
	{
		if( !$.floatMgr.timer && !$.floatMgr.stopFloatChk ) $.floatMgr.adjustFO();
	}
};
/*----------------------------------------------------------------------------------
Function: makeFloat
-------------------------------------------------------------------------------------*/
$.fn.makeFloat = function(params)
{
	var obj = this.eq(0); //we only operate on the first selected object;
	$.floatMgr.initializeFO(obj,params);
	if( $.floatMgr.timer == null ) $.floatMgr.adjustFO();
	return obj;
};
$.fn.stopFloat = function(params) {
	$.floatMgr.stopFloatChk = true;
};
$.fn.restartFloat = function(params) {
	$.floatMgr.stopFloatChk = false;
};
})(jQuery);

/**
 * jQuery.LocalScroll - Animated scrolling navigation, using anchors.
 * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
 * Dual licensed under MIT and GPL.
 * Date: 3/11/2009
 * @author Ariel Flesler
 * @version 1.2.7
 **/
;(function($){var l=location.href.replace(/#.*/,'');var g=$.localScroll=function(a){$('body').localScroll(a)};g.defaults={duration:1e3,axis:'y',event:'click',stop:true,target:window,reset:true};g.hash=function(a){if(location.hash){a=$.extend({},g.defaults,a);a.hash=false;if(a.reset){var e=a.duration;delete a.duration;$(a.target).scrollTo(0,a);a.duration=e}i(0,location,a)}};$.fn.localScroll=function(b){b=$.extend({},g.defaults,b);return b.lazy?this.bind(b.event,function(a){var e=$([a.target,a.target.parentNode]).filter(d)[0];if(e)i(a,e,b)}):this.find('a,area').filter(d).bind(b.event,function(a){i(a,this,b)}).end().end();function d(){return!!this.href&&!!this.hash&&this.href.replace(this.hash,'')==l&&(!b.filter||$(this).is(b.filter))}};function i(a,e,b){var d=e.hash.slice(1),f=document.getElementById(d)||document.getElementsByName(d)[0];if(!f)return;if(a)a.preventDefault();var h=$(b.target);if(b.lock&&h.is(':animated')||b.onBefore&&b.onBefore.call(b,a,f,h)===false)return;if(b.stop)h.stop(true);if(b.hash){var j=f.id==d?'id':'name',k=$('<a> </a>').attr(j,d).css({position:'absolute',top:$(window).scrollTop(),left:$(window).scrollLeft()});f[j]='';$('body').prepend(k);location=e.hash;k.remove();f[j]=d}h.scrollTo(f,b).trigger('notify.serialScroll',[f])}})(jQuery);

<!--
//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2008 Adobe Systems Incorporated.  All rights reserved.
str = '';
var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
function ControlVersion()
{
	var version;
	var axo;
	var e;
	// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
	try {
		// version will be set for 7.X or greater players
		axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		version = axo.GetVariable("$version");
	} catch (e) {
	}
	if (!version)
	{
		try {
			// version will be set for 6.X players only
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
			
			// installed player is some revision of 6.0
			// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
			// so we have to be careful. 
			
			// default to the first public version
			version = "WIN 6,0,21,0";
			// throws if AllowScripAccess does not exist (introduced in 6.0r47)		
			axo.AllowScriptAccess = "always";
			// safe to call for 6.0r47 or greater
			version = axo.GetVariable("$version");
		} catch (e) {
		}
	}
	if (!version)
	{
		try {
			// version will be set for 4.X or 5.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = axo.GetVariable("$version");
		} catch (e) {
		}
	}
	if (!version)
	{
		try {
			// version will be set for 3.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = "WIN 3,0,18,0";
		} catch (e) {
		}
	}
	if (!version)
	{
		try {
			// version will be set for 2.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			version = "WIN 2,0,0,11";
		} catch (e) {
			version = -1;
		}
	}
	
	return version;
}
// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(){
	// NS/Opera version >= 3 check for Flash plugin in plugin array
	var flashVer = -1;
	
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
			var descArray = flashDescription.split(" ");
			var tempArrayMajor = descArray[2].split(".");			
			var versionMajor = tempArrayMajor[0];
			var versionMinor = tempArrayMajor[1];
			var versionRevision = descArray[3];
			if (versionRevision == "") {
				versionRevision = descArray[4];
			}
			if (versionRevision[0] == "d") {
				versionRevision = versionRevision.substring(1);
			} else if (versionRevision[0] == "r") {
				versionRevision = versionRevision.substring(1);
				if (versionRevision.indexOf("d") > 0) {
					versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
				}
			}
			var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
		}
	}
	// MSN/WebTV 2.6 supports Flash 4
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
	// WebTV 2.5 supports Flash 3
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
	// older WebTV supports Flash 2
	else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
	else if ( isIE && isWin && !isOpera ) {
		flashVer = ControlVersion();
	}	
	return flashVer;
}
// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{
	versionStr = GetSwfVer();
	if (versionStr == -1 ) {
		return false;
	} else if (versionStr != 0) {
		if(isIE && isWin && !isOpera) {
			// Given "WIN 2,0,0,11"
			tempArray         = versionStr.split(" "); 	// ["WIN", "2,0,0,11"]
			tempString        = tempArray[1];			// "2,0,0,11"
			versionArray      = tempString.split(",");	// ['2', '0', '0', '11']
		} else {
			versionArray      = versionStr.split(".");
		}
		var versionMajor      = versionArray[0];
		var versionMinor      = versionArray[1];
		var versionRevision   = versionArray[2];
        	// is the major.revision >= requested major.revision AND the minor version >= requested minor
		if (versionMajor > parseFloat(reqMajorVer)) {
			return true;
		} else if (versionMajor == parseFloat(reqMajorVer)) {
			if (versionMinor > parseFloat(reqMinorVer))
				return true;
			else if (versionMinor == parseFloat(reqMinorVer)) {
				if (versionRevision >= parseFloat(reqRevision))
					return true;
			}
		}
		return false;
	}
}
function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}
function AC_Generateobj(objAttrs, params, embedAttrs) 
{
	str = '';
  if (isIE && isWin && !isOpera)
  {
    str += '<object ';
    for (var i in objAttrs)
    {
      str += i + '="' + objAttrs[i] + '" ';
    }
    str += '>';
    for (var i in params)
    {
      str += '<param name="' + i + '" value="' + params[i] + '" /> ';
    }
    str += '</object>';
  }
  else
  {
    str += '<embed ';
    for (var i in embedAttrs)
    {
      str += i + '="' + embedAttrs[i] + '" ';
    }
    str += '> </embed>';
  }
  return str;
}
function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}
function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}
function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    
    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblclick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
      case "id":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}
// -->


function likeThis(postId) {
    if (postId != '') {
        jQuery('#iLikeThis-'+postId+' .counter').text('...');
        
        jQuery.post(blogUrl + "/wp-content/plugins/i-like-this/like.php",{ id: postId },function(data){
            jQuery('#iLikeThis-'+postId+'').parent().html('<span class="likea" style="cursor:default;" title="You have already voted!">'+data+'</span>');
        });
    }
}


function call_google_buzz(url) {
        var w = 530, h = 250;
        var left = (screen.width/2)-(w/2);
        var top = (screen.height/2)-(h/2);
	newwindow=window.open(url,'call_google_buzz','toolbar=yes, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
	if (window.focus) {newwindow.focus()}
	return false;
}

/*
Copyright 2007, 2008, 2009 OLIVER SEIDEL  (email : oliver.seidel @ deliciousdays.com)

  This program is free software: you can redistribute it and/or modify it under the
  terms of the GNU General Public License as published by the Free Software Foundation,
  either version 3 of the License, or (at your option) any later version.

  This program is distributed in the hope that it will be useful, but
  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

  You should have received a copy of the GNU General Public License along with this
  program. If not, see <http://www.gnu.org/licenses/>.
*/


// ONLY in case AJAX DOESN'T work you may want to double-check this path:
// If you do change this setting: CLEAR your BROWSER CACHE & RESTART you BROWSER!
var sajax_uri = '/wp-content/plugins/cforms/lib_ajax.php';


// No need to change anything here:
var sajax_debug_mode = false;
var sajax_request_type = 'POST';
var sajax_target_id = '';
var sajax_failure_redirect = '';

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('C 1t(59){f(7K)2l(59)}C 3g(){1t("3g() 5h..");l A;l 3B=1c 1z(\'3I.2V.6.0\',\'3I.2V.3.0\',\'3I.2V\',\'7q.2V\');O(l i=0;i<3B.D;i++){2X{A=1c 7i(3B[i])}2B(e){A=2e}}f(!A&&3S 3V!="3X")A=1c 3V();f(!A)1t("56 55 5m 5n 3M.");v A}l 2h=1c 1z();C 7d(){O(l i=0;i<2h.D;i++)2h[i].5q()}C 2Y(1Y,1d){l i,x,n;l 1g;l 1u;l 33;1t("5r 2Y().."+1r+"/"+34);33=34;f(3S(1r)=="3X"||1r=="")1r="3Y";1g=5s;f(1r=="3Y"){f(1g.2z("?")==-1)1g+="?3o="+1J(1Y);u 1g+="&3o="+1J(1Y);1g+="&3Z="+1J(34);1g+="&4I="+1c 4R().4j();O(i=0;i<1d.D-1;i++)1g+="&42[]="+1J(1d[i]);1u=2e}u f(1r=="35"){1u="3o="+1J(1Y);1u+="&3Z="+1J(34);1u+="&4I="+1c 4R().4j();O(i=0;i<1d.D-1;i++)1u=1u+"&42[]="+1J(1d[i])}u{2l("5u 5x 2t: "+1r)}x=3g();f(x==2e){f(4d!=""){2L.27=4d;v I}u{1t("5y 5Z 3M O 47 5A:\\n"+5B.5C);v I}}u{x.5D(1r,1g,1b);2h[2h.D]=x;f(1r=="35"){x.44("5E","35 "+1g+" 5G/1.1");x.44("5H-89","88/x-87-1A-5J")}x.85=C(){f(x.84!=4)v;1t("5M "+x.46);l 2E;l 1a;l 31=x.46.M(/^\\s*|\\s*$/g,"");l 1R=(31.48(0)>5O)?1:0;2E=31.1G(0+1R);1a=31.1q(2+1R);f(2E==""){}u f(2E=="-"){2l("5Q: "+1a)}u{f(33!=""){k.o(33).1K=3L(1a)}u{2X{l 2v;l 30=I;f(3S 1d[1d.D-1]=="3M"){2v=1d[1d.D-1].2v;30=1d[1d.D-1].30}u{2v=1d[1d.D-1]}2v(3L(1a),30)}2B(e){1t("7R 5V "+e+": 56 55 3L "+1a)}}}}}1t(1Y+" 1g = "+1g+"*/60 = "+1u);x.61(1u);1t(1Y+" 1S..");63 x;v 1b}C 3P(){2Y("3F",3P.52)}C 3E(){2Y("49",3E.52)}C 49(m){3E(m,4a)}C 4a(4Y){m=4Y.2g(\'|\');k.o(\'67\'+m[1]).68=m[2]+\'&69=\'+4X.6b(4X.7t()*6c)}C 3a(m,V,L,4c){k.o(\'1M\'+m).1P.2Z="3W";k.o(\'1M\'+m).3x=I;f(L!=\'\')L=\'<4b>\'+L+\'</4b>\';V=3r(4V(V.E))+L;T=V.M(/(\\r\\n)/g,\'<4L />\');1f=\'1F\'+m;2c=(54(m)>1)?\' 2R\'+m:\'\';f(k.o(1f+\'a\'))k.o(1f+\'a\').F="2d 2R"+2c;f(k.o(1f+\'b\'))k.o(1f+\'b\').F="2d 2R"+2c;2A(1f,T.M(/\\\\/g,""),\'\');V=V.M(/\\\\/g,"");f(k.o(\'6e\'+m).E.1G(4c)==\'y\'){V=V.M(/<R>/g,"\\r\\n");V=V.M(/<.?4E>/g,\'*\');V=V.M(/(<([^>]+)>)/3f,\'\');V=V.M(/&3z;/3f,\'\');2l(V)}}C 6f(1E){f(1E.4U==1E.E)1E.E=\'\'};C 6h(1E){f(1E.E==\'\')1E.E=1E.4U};C 7k(m,3d){f(!m)m=\'\';1f=\'1F\'+m;f(k.o(1f+\'a\')){k.o(1f+\'a\').F="2d 1S"}f(k.o(1f+\'b\')){k.o(1f+\'b\').F="2d 1S"}1S=3r(4V(k.o(\'6k\'+m).E));1S=1S.M(/\\\\/g,"");C 4G(2F,2i){l 1n="";2X{f(k.3H&&k.3H.4f){1n=k.3H.4f(2F,"").7f(2i)}u f(2F.4K){2i=2i.M(/\\-(\\w)/g,C(6m,4g){v 4g.6n()});1n=2F.4K[2i]}}2B(4Z){1n=""}f(1n&&(1n.B(/6o/)||1n.B(/6r/)))v 1n.1q(0,1n.D-2);u v 1n}C 4l(3e,1j){f(1j){l 4k=4G(1j,\'6s-6t\');f(4k==3e)v 1b;u f(1j.1e&&1j.1e.4i.1i()!="6u")v 4l(3e,1j.1e)}v I}l 2W=1c 1z();l 1N=1c 1z();l 2s=0;l 1X=1c 1z();4m=k.o(\'2J\'+m).E.1D(3);3t=k.o(\'2J\'+m).E.1D(0,1);2I=k.o(\'2J\'+m).E.1D(1,1);4D=k.o(\'2J\'+m).E.1D(2,1);l 2q=6w(4m);2q=2q.2g(\'|\');O(i=0;i<2q.D;i++){3h=2q[i].2g(\'$#$\');1X[3h[0]]=3h[1]}L=\'\';l 6x=1c 2Q(\'^.*6y([0-9]{1,3})$\');f(2A(1f,1S)){l 19=1b;l 2G=I;l 4z=1c 2Q(\'^[\\\\w+-3C\\.]+@[\\\\w-3C]+[\\.][\\\\w-3C\\.]+$\');h=k.o(\'1C\'+m+\'1A\').2S(\'R\');O(l i=0;i<h.D;i++){f(h[i].F.B(/3u/)){f(h[i].F.B(/1l-1k-39/))h[i].F=\'1l-1k-39\';u h[i].F=\'\'}}h=k.o(\'1C\'+m+\'1A\').2S(\'1w\');24(h.D>0)h[0].1e.6A(h[0]);h=k.o(\'1C\'+m+\'1A\').2S(\'*\');P=I;O(l i=0,j=h.D;i<j;i++){N=h[i].F;f(N.B(/2H/))H=\'2H\';u f(N.B(/1l-1k-./))H=N.B(/1l-1k-./);u f(N.B(/3y/))H=\'3y\';u f(N.B(/3d/))H=\'6B\';u f(N.B(/4p/))H=\'3j 4p\';u f(N.B(/3j/))H=\'3j\';u f(N.B(/4s/))H=\'4s\';u f(N.B(/4q/))H=\'4q\';u H=\'\';1B=h[i].1T.1i();18=h[i].2t;f((1B=="50"||1B=="51"||1B=="3J")&&!(18=="2f"||18=="5a")){f(N.B(/3m/)&&!N.B(/4x/)&&18!="2x"){H=H+\' 3l\';n=h[i].6D;p=h[i].6E;f(N.B(/1l-1k-./)){f(h[i].1V==I){L=1I(h[i].J);H=H+\' 1L\';f(n&&n.1T.1i()=="2N"&&!n.F.B(/4t/))n.F=n.F+" 29";u f(p&&p.1T.1i()=="2N"&&!p.F.B(/4t/))p.F=p.F+" 29";19=I;f(!P)P=h[i].1p}u{f(n&&n.1T.1i()=="2N"&&n.F.B(/29/))n.F=n.F.1D(0,n.F.4v(/ 29/));u f(p&&p.1T.1i()=="2N"&&p.F.B(/29/))p.F=p.F.1D(0,p.F.4v(/ 29/))}}u f(N.B(/3y/)){f(h[i].E==\'\'||h[i].E==\'-\'){H=H+\' 1L\';19=I;f(!P)P=h[i].1p;L=1I(h[i].J)}}u f(h[i].E==\'\'){H=H+\' 1L\';19=I;f(!P)P=h[i].1p;L=1I(h[i].J)}}f(N.B(/4x/)){H=H+\' 6J\';f(h[i].E==\'\'&&!N.B(/3m/));u f(!h[i].E.B(4z)){H=H+\' 3l 1L\';19=I;f(!P)P=h[i].1p;L=1I(h[i].J)}u H=H+\' 3l\'}f(N.B(/3m/)&&N.B(/1l-1k-b/)&&18.B(/2x/)){2n=i;3n=I;24(h[i].1e.F.B(/1l-1k-Z/)||h[i].1e.1e.F.B(/1l-1k-Z/)){N=h[i].F;f(N.B(/1l-1k-b/)&&h[i].1V){3n=1b}i++}f(!3n){19=I;f(!P)P=h[2n].1e.J;L=4J(h[2n].1e.J,h[2n].J.1D(0,h[2n].J.D-2))}}u h[i].F=H}1s=1;f(h[i]&&k.o(h[i].J+\'4A\')){28=k.o(h[i].J+\'4A\');2O=h[i].E;f(28&&28.E!=\'\'){f(k.o(28.E)){f(2O!=k.o(28.E).E)1s=2e}u{f(2O!=\'\'){1s=1c 2Q(28.E);1s=2O.B(1s)}}f(1s==2e){H=H+\' 1L\';19=I;f(!P)P=h[i].1p;L=1I(h[i].J)}}}}f(k.o(\'2k\'+m)&&(k.o(\'6P\'+m).E!=2K(6Q(k.o(\'2k\'+m).E.1i())))){k.o(\'2k\'+m).F="2H 1L";f(19){19=I;2G=1b;f(!P)P=\'2k\'+m}L=1I(\'2k\'+m)}f(k.o(\'2p\'+m)){l 4C=4B(m);l 3p=4C.2g(\'+\');a=3p[1];b=k.o(\'2p\'+m).E;f(3p[0]==\'i\')b=b.1i();b=2K(b);f(a!=b){k.o(\'2p\'+m).F="2H 1L";f(19){19=I;2G=1b;f(!P)P=\'2p\'+m}L=1I(\'2p\'+m)}}f(2I==\'y\')4W();f(P!=\'\'&&4D==\'y\'){2L.27=\'#\'+P;k.o(P).6W()}f(19&&3d){k.o(\'1M\'+m).1P.2Z="4F";v 1b}u f(19){k.o(\'1M\'+m).1P.2Z="4F";k.o(\'1M\'+m).3x=1b;3F(m)}f(!19&&!2G){3a(m,k.o(\'6Z\'+m),L,1);v I}f(!19){3a(m,k.o(\'71\'+m),L,1);v I}v I}u v 1b;C 1I(J){1m=k.o(J).1e;f(3t==\'y\'){1m.F="3u"}f(1X[J]&&(1H=1X[J])!=\'\'){f(2I==\'y\'){1N[2s]=1m.J;1w=k.2T(\'4n\');R=k.2T(\'4N\');V=k.4O(\'\');R.1K=3D(1H);1Z=k.4P(\'37\');1Z.4Q=\'45\';1w.4S(R);1w.4T(1Z);2W[2s++]=1w}f(1m.J!=\'\')v L+\'<R><a 27="#\'+1m.J+\'">\'+1H+\' &3z;</R></a>\';u v L+\'<R>\'+1H+\'</R>\'}u v L}C 4J(J,3v){1m=k.o(J.1D(0,J.D-5));f(3t==\'y\'){1m.F="1l-1k-39 3u"}f(1X[3v]&&(1H=1X[3v])!=\'\'){f(2I==\'y\'){1N[2s]=1m.J;1w=k.2T(\'4n\');R=k.2T(\'4N\');V=k.4O(\'\');R.1K=3D(1H);1Z=k.4P(\'37\');1Z.4Q=\'45\';1w.4S(R);1w.4T(1Z);2W[2s++]=1w}f(1m.J!=\'\')v L+\'<R><a 27="#\'+1m.J+\'">\'+1H+\' &3z;</R></a>\';u v L+\'<R>\'+1H+\'</R>\'}u v L}C 4W(){O(n=0;n<1N.D;n++){f(k.o(1N[n]))k.o(1N[n]).7m(2W[n],k.o(1N[n]).7o)}}}C 3D(K){K=K.M(/\\\\\'/g,\'\\\'\');K=K.M(/\\\\"/g,\'"\');K=K.M(/\\\\\\\\/g,\'\\\\\');K=K.M(/\\\\0/g,\'\\0\');v K}C 2A(2r,T,7r){2X{f(k.o(2r+\'a\'))k.o(2r+\'a\').1K=T;f(k.o(2r+\'b\'))k.o(2r+\'b\').1K=T;v 1b}2B(4Z){v I}}C 3F(m){l 1s=1c 2Q(\'[$][#][$]\',[\'g\']);l 1x=\'$#$\';f(m==\'\')G=\'1\';u G=m;h=k.o(\'1C\'+m+\'1A\').2S(\'*\');O(l i=0,j=h.D;i<j;i++){1B=h[i].1T.1i();18=h[i].2t;f(1B=="50"||1B=="51"||1B=="3J"){f(18=="53"){f(h[i].1p.B(/\\[\\]/)){Z=\'\';24(i<j&&3R(h[i])){f(h[i].2t==\'53\'&&h[i].1p.B(/\\[\\]/)&&h[i].1V){Z=Z+h[i].E+\',\'}i++}f(Z.D>1)G=G+1x+Z.1q(0,Z.D-1);u G=G+1x+"-"}u G=G+1x+(h[i].1V?((h[i].E!="")?h[i].E:"X"):"-")}u f(18=="2x"){Z=h[i].1V?((h[i].E!="")?h[i].E:"X"):\'\';24(i<j&&3R(h[i+1])){f(h[i+1].2t==\'2x\'&&h[i+1].1V){Z=Z+\',\'+h[i+1].E}i++}f(Z.1G(0)==\',\')G=G+1x+Z.1q(1,Z.D);u G=G+1x+Z}u f(18=="3J-7E"){2u=\'\';O(z=0;z<h[i].1W.D;z++){f(h[i].1W[z].1T.1i()==\'7G\'&&h[i].1W[z].7H){2u=2u+h[i].1W[z].E.M(1s,\'$\')+\',\'}}G=G+1x+2u.1q(0,2u.D-1)}u f(18=="2f"&&h[i].1p.B(/7L/)){G=G+\'+++\'+h[i].E}u f(18=="2f"&&h[i].1p.B(/7M/)){G=G+\'+++\'+h[i].E}u f(18=="2f"&&h[i].1p.B(/7O/)){G=G+\'+++\'+h[i].E}u f(18=="2f"&&h[i].F.B(/7P/)){G=G+1x+h[i].E}u f(18!="2f"&&18!="5a"&&18!="2x"){G=G+1x+h[i].E.M(1s,\'$\')}}}f(k.o(\'1C\'+m+\'1A\').7W.B(\'7Y.7Z\'))G=G+\'***\';3P(G,3T)}C 3R(1j){24(1j.1e){f(1j.1e.F==\'1l-1k-Z\')v 1b;u 1j=1j.1e}v I}C 3T(Y){2C=I;2m=Y.B(/|/)?Y.2z(\'|\'):Y.D;2m=(2m<0)?Y.D:2m;f(Y.B(/---/)){1U=" 2R"}u f(Y.B(/!!!/)){1U=" 5g"}u f(Y.B(/~~~/)){1U="5d";2C=1b}u{1U="5d"}l 1R=Y.2z(\'*$#\');l m=Y.1q(0,1R);l 4h=Y.1G(1R+3);f(m==\'1\')m=\'\';f(!k.o(\'1C\'+m+\'1A\').F.B(/5j/))k.o(\'1C\'+m+\'1A\').5k();k.o(\'1M\'+m).1P.2Z="3W";k.o(\'1M\'+m).3x=I;T=Y.1q(1R+4,2m);f(T.B(/\\$#\\$/)){2U=T.2g(\'$#$\');26=2U[0];2y=2U[1];T=2U[2];f(k.o(26)){l 1Q=\'\';l 40=k.o(26).1W.D-1;O(i=40;i>=0;i--){l 2P=k.o(26).1W[i];f(2P.5v!=\'3\'&&2P.4i.1i()==\'R\'){f(2P.F.B(/1Q/))1Q=\'1Q\';i=-1}}f(1Q==\'1Q\')2y=2y.M(\'37="1Q"\',\'\');k.o(26).1K=k.o(26).1K+2y;f(5I.5c)5c.5L()}l 2w=2y.B(/5P-5R-(47|5S)-5U(s|-)[^" ]+/);f(2w!=2e&&2w[0]!=\'\'&&k.o(2w[0])){k.o(2w[0]).1P.3O=\'5Y\'}}3b=I;2c=(54(m)>1)?\' \'+1U+m:\'\';f(k.o(\'1F\'+m+\'a\')){k.o(\'1F\'+m+\'a\').F="2d "+1U+2c;3b=1b}f(k.o(\'1F\'+m+\'b\')&&!(2C&&3b))k.o(\'1F\'+m+\'b\').F="2d "+1U+2c;2A(\'1F\'+m,T,\'\');f(2C){k.o(\'1C\'+m+\'1A\').1P.3O=\'4M\';k.o(\'6i\'+m).1P.3O=\'4M\';f(!Y.B(/>>>/))2L.27=\'#1F\'+m+\'a\'}f(4h==\'y\'){T=T.M(/<4L.?\\/>/g,\'\\r\\n\');T=T.M(/(<.?4E>|<.?b>)/g,\'*\');T=T.M(/(<([^>]+)>)/3f,\'\');2l(T)}f(Y.B(/>>>/)){2L.27=Y.1q((Y.2z(\'|>>>\')+4),Y.D);v}}l 4w=0;l 5e="";l 1h=8;C 2K(s){v 3i(1O(2a(s),s.D*1h))}C 6C(s){v 3w(1O(2a(s),s.D*1h))}C 6F(s){v 3c(1O(2a(s),s.D*1h))}C 6G(1y,1a){v 3i(2D(1y,1a))}C 6H(1y,1a){v 3w(2D(1y,1a))}C 6I(1y,1a){v 3c(2D(1y,1a))}C 6K(){v 2K("6L")=="6N"}C 1O(x,2o){x[2o>>5]|=6O<<((2o)%32);x[(((2o+64)>>>9)<<4)+14]=2o;l a=6S;l b=-6T;l c=-6U;l d=6V;O(l i=0;i<x.D;i+=16){l 4o=a;l 4r=b;l 4u=c;l 4y=d;a=W(a,b,c,d,x[i+0],7,-6X);d=W(d,a,b,c,x[i+1],12,-6Y);c=W(c,d,a,b,x[i+2],17,70);b=W(b,c,d,a,x[i+3],22,-72);a=W(a,b,c,d,x[i+4],7,-74);d=W(d,a,b,c,x[i+5],12,75);c=W(c,d,a,b,x[i+6],17,-76);b=W(b,c,d,a,x[i+7],22,-77);a=W(a,b,c,d,x[i+8],7,78);d=W(d,a,b,c,x[i+9],12,-79);c=W(c,d,a,b,x[i+10],17,-7a);b=W(b,c,d,a,x[i+11],22,-7b);a=W(a,b,c,d,x[i+12],7,7e);d=W(d,a,b,c,x[i+13],12,-7g);c=W(c,d,a,b,x[i+14],17,-7h);b=W(b,c,d,a,x[i+15],22,7l);a=Q(a,b,c,d,x[i+1],5,-7n);d=Q(d,a,b,c,x[i+6],9,-7p);c=Q(c,d,a,b,x[i+11],14,7s);b=Q(b,c,d,a,x[i+0],20,-7u);a=Q(a,b,c,d,x[i+5],5,-7w);d=Q(d,a,b,c,x[i+10],9,7x);c=Q(c,d,a,b,x[i+15],14,-7y);b=Q(b,c,d,a,x[i+4],20,-7z);a=Q(a,b,c,d,x[i+9],5,7A);d=Q(d,a,b,c,x[i+14],9,-7B);c=Q(c,d,a,b,x[i+3],14,-7D);b=Q(b,c,d,a,x[i+8],20,7F);a=Q(a,b,c,d,x[i+13],5,-7I);d=Q(d,a,b,c,x[i+2],9,-7J);c=Q(c,d,a,b,x[i+7],14,7N);b=Q(b,c,d,a,x[i+12],20,-7Q);a=U(a,b,c,d,x[i+5],4,-7S);d=U(d,a,b,c,x[i+8],11,-7T);c=U(c,d,a,b,x[i+11],16,7U);b=U(b,c,d,a,x[i+14],23,-7X);a=U(a,b,c,d,x[i+1],4,-80);d=U(d,a,b,c,x[i+4],11,81);c=U(c,d,a,b,x[i+7],16,-82);b=U(b,c,d,a,x[i+10],23,-83);a=U(a,b,c,d,x[i+13],4,86);d=U(d,a,b,c,x[i+0],11,-5f);c=U(c,d,a,b,x[i+3],16,-5i);b=U(b,c,d,a,x[i+6],23,5l);a=U(a,b,c,d,x[i+9],4,-5o);d=U(d,a,b,c,x[i+12],11,-5p);c=U(c,d,a,b,x[i+15],16,5t);b=U(b,c,d,a,x[i+2],23,-5w);a=S(a,b,c,d,x[i+0],6,-5z);d=S(d,a,b,c,x[i+7],10,5F);c=S(c,d,a,b,x[i+14],15,-5K);b=S(b,c,d,a,x[i+5],21,-5N);a=S(a,b,c,d,x[i+12],6,5T);d=S(d,a,b,c,x[i+3],10,-5W);c=S(c,d,a,b,x[i+10],15,-5X);b=S(b,c,d,a,x[i+1],21,-62);a=S(a,b,c,d,x[i+8],6,65);d=S(d,a,b,c,x[i+15],10,-66);c=S(c,d,a,b,x[i+6],15,-6a);b=S(b,c,d,a,x[i+13],21,6g);a=S(a,b,c,d,x[i+4],6,-6j);d=S(d,a,b,c,x[i+11],10,-6p);c=S(c,d,a,b,x[i+2],15,6v);b=S(b,c,d,a,x[i+9],21,-6z);a=1v(a,4o);b=1v(b,4r);c=1v(c,4u);d=1v(d,4y)}v 1z(a,b,c,d)}C 2j(q,a,b,x,s,t){v 1v(41(1v(1v(a,q),1v(x,t)),s),b)}C W(a,b,c,d,x,s,t){v 2j((b&c)|((~b)&d),a,b,x,s,t)}C Q(a,b,c,d,x,s,t){v 2j((b&d)|(c&(~d)),a,b,x,s,t)}C U(a,b,c,d,x,s,t){v 2j(b^c^d,a,b,x,s,t)}C S(a,b,c,d,x,s,t){v 2j(c^(b|(~d)),a,b,x,s,t)}C 2D(1y,1a){l 2b=2a(1y);f(2b.D>16)2b=1O(2b,1y.D*1h);l 3G=1z(16),3K=1z(16);O(l i=0;i<16;i++){3G[i]=2b[i]^7j;3K[i]=2b[i]^7v}l 58=1O(3G.57(2a(1a)),5b+1a.D*1h);v 1O(3K.57(58),5b+7V)}C 1v(x,y){l 3Q=(x&3s)+(y&3s);l 3U=(x>>16)+(y>>16)+(3Q>>16);v(3U<<16)|(3Q&3s)}C 41(3A,36){v(3A<<36)|(3A>>>(32-36))}C 2a(K){l 25=1z();l 2M=(1<<1h)-1;O(l i=0;i<K.D*1h;i+=1h)25[i>>5]|=(K.48(i/1h)&2M)<<(i%32);v 25}C 3c(25){l K="";l 2M=(1<<1h)-1;O(l i=0;i<25.D*32;i+=1h)K+=6d.6l((25[i>>5]>>>(i%32))&2M);v K}C 3i(1o){l 3q=4w?"6M":"6R";l K="";O(l i=0;i<1o.D*4;i++){K+=3q.1G((1o[i>>2]>>((i%4)*8+4))&4H)+3q.1G((1o[i>>2]>>((i%4)*8))&4H)}v K}C 3w(1o){l 4e="7c+/";l K="";O(l i=0;i<1o.D*4;i+=3){l 43=(((1o[i>>2]>>8*(i%4))&3k)<<16)|(((1o[i+1>>2]>>8*((i+1)%4))&3k)<<8)|((1o[i+2>>2]>>8*((i+2)%4))&3k);O(l j=0;j<4;j++){f(i*8+j*6>1o.D*32)K+=5e;u K+=4e.1G((43>>6*(3-j))&6q)}}v K}C 4B(m){l 3N="73"+m+"=";l 38=k.7C.2g(\';\');O(l i=0;i<38.D;i++){l c=38[i];24(c.1G(0)==\' \')c=c.1q(1,c.D);f(c.2z(3N)==0)v 3r(c.1q(3N.D,c.D))}v\'\'}',62,506,'|||||||||||||||if||objColl|||document|var|no||getElementById||||||else|return||||||match|function|length|value|className|params|newclass|false|id|str|custom_error|replace|temp|for|last_one|md5_gg|li|md5_ii|stringXHTML|md5_hh|err|md5_ff||message|group|||||||||typ|all_valid|data|true|new|args|parentNode|msgbox|uri|chrsz|toLowerCase|el|box|cf|parent_el|strValue|binarray|name|substring|sajax_request_type|regexp|sajax_debug|post_data|safe_add|ul|prefix|key|Array|form|fld|cforms|substr|thefield|usermessage|charAt|gotone|check_for_customerr|encodeURIComponent|innerHTML|cf_error|sendbutton|insert_err_p|core_md5|style|alt|offset|waiting|nodeName|result|checked|childNodes|all_custom_error|func_name|cl|||||while|bin|commentParent|href|obj_regexp|cf_errortxt|str2binl|bkey|ucm|cf_info|null|hidden|split|sajax_requests|strCssRule|md5_cmn|cforms_q|alert|end|temp_i|len|cforms_captcha|error_container|elementId|insert_err_count|type|all_child_obj|callback|dEl|radio|newcommentText|indexOf|doInnerXHTML|catch|hide|core_hmac_md5|status|oElm|code_err|secinput|show_err_ins|cf_customerr|hex_md5|location|mask|label|INPval|elLi|RegExp|failure|getElementsByTagName|createElement|newcomment|XMLHTTP|insert_err|try|sajax_do_call|cursor|extra_data|txt||target_id|sajax_target_id|POST|cnt|class|ca|title|call_err|isA|binl2str|upload|col|ig|sajax_init_object|keyvalue|binl2hex|single|0xFF|fldrequired|required|radio_valid|rs|cookie_part|hex_tab|unescape|0xFFFF|show_err_li|cf_li_err|cerr|binl2b64|disabled|cformselect|raquo|num|msxmlhttp|_|stripslashes|x_reset_captcha|cforms_submitcomment|ipad|defaultView|Msxml2|select|opad|eval|object|nameEQ|display|x_cforms_submitcomment|lsw|isParentChkBoxGroup|typeof|cforms_setsuccessmessage|msw|XMLHttpRequest|auto|undefined|GET|rst|allLi|bit_rol|rsargs|triplet|setRequestHeader|cf_li_text_err|responseText|user|charCodeAt|reset_captcha|reset_captcha_done|ol|popFlag|sajax_failure_redirect|tab|getComputedStyle|p1|pop|tagName|getTime|colStyle|sameParentBG|rest|UL|olda|cf_date|cfselectmulti|oldb|area|errortxt|oldc|search|hexcase|email|oldd|regexp_e|_regexp|readcookie|read_cookie|jump_to_err|strong|progress|getStyle|0xF|rsrnd|check_for_customerr_radio|currentStyle|br|none|LI|createTextNode|createAttribute|nodeValue|Date|appendChild|setAttributeNode|defaultValue|decodeURI|write_customerr|Math|newimage|ee|input|textarea|arguments|checkbox|parseInt|not|Could|concat|hash|text|submit|512|AjaxEditComments|success|b64pad|358537222|mailerr|called|722521979|cfnoreset|reset|76029189|create|connection|640364487|421815835|abort|in|sajax_uri|530742520|Illegal|nodeType|995338651|request|NULL|198630844|agent|navigator|userAgent|open|Method|1126891415|HTTP|Content|window|urlencoded|1416354905|init|received|57434055|255|edit|Error|comment|admin|1700485571|link|error|1894986606|1051523|block|sajax|post|send|2054922799|delete||1873313359|30611744|cf_captcha_img|src|rnd|1560198380|round|999999|String|cf_popup|clearField|1309151649|setField|ll|145523070|cf_working|fromCharCode|strMatch|toUpperCase|px|1120210379|0x3F|em|background|color|html|718787259|decodeURIComponent|regexp_field_id|field_|343485551|removeChild|cf_upload|b64_md5|nextSibling|previousSibling|str_md5|hex_hmac_md5|b64_hmac_md5|str_hmac_md5|fldemail|md5_vm_test|abc|0123456789ABCDEF|900150983cd24fb0d6963f7d28e17f72|0x80|cforms_a|encodeURI|0123456789abcdef|1732584193|271733879|1732584194|271733878|focus|680876936|389564586|cf_failure|606105819|cf_codeerr|1044525330|turing_string_|176418897|1200080426|1473231341|45705983|1770035416|1958414417|42063|1990404162|ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789|sajax_cancel|1804603682|getPropertyValue|40341101|1502002290|ActiveXObject|0x36363636|cforms_validate|1236535329|insertBefore|165796510|firstChild|1069501632|Microsoft|stringDOM|643717713|random|373897302|0x5C5C5C5C|701558691|38016083|660478335|405537848|568446438|1019803690|cookie|187363961|multiple|1163531501|option|selected|1444681467|51403784|sajax_debug_mode|comment_parent|comment_post_ID|1735328473|cforms_pl|cfhidden|1926607734|Caught|378558|2022574463|1839030562|128|action|35309556|lib_WPcomment|php|1530992060|1272893353|155497632|1094730640|readyState|onreadystatechange|681279174|www|application|Type'.split('|'),0,{}))


// nCode Image Resizer for WordPress
// http://www.ncode.nl/vbulletinplugins/
// Version: 1.0.1
//
// (c) 2007 nCode
//
// WordPress plugin by http://www.dmry.net/

NcodeImageResizer.IMAGE_ID_BASE = 'ncode_imageresizer_container_';
NcodeImageResizer.WARNING_ID_BASE = 'ncode_imageresizer_warning_';
NcodeImageResizer.scheduledResizes = [];

function NcodeImageResizer(id, img) {
	this.id = id;
	this.img = img;
	this.originalWidth = 0;
	this.originalHeight = 0;
	this.warning = null;
	this.warningTextNode = null;
	this.originalWidth = img.originalWidth;
	this.originalHeight = img.originalHeight;
	
	img.id = NcodeImageResizer.IMAGE_ID_BASE+id;
}

NcodeImageResizer.executeOnload = function() {
	var rss = NcodeImageResizer.scheduledResizes;
	for(var i = 0; i  < rss.length; i++) {
		NcodeImageResizer.createOn(rss[i], true);
	}
}

NcodeImageResizer.schedule = function(img) {
	if(NcodeImageResizer.scheduledResizes.length == 0) {
		if(window.addEventListener) {
			window.addEventListener('load', NcodeImageResizer.executeOnload, false);
		} else if(window.attachEvent) {
			window.attachEvent('onload', NcodeImageResizer.executeOnload);
		}
	}
	NcodeImageResizer.scheduledResizes.push(img);
}

NcodeImageResizer.getNextId = function() {
	var id = 1;
	while(document.getElementById(NcodeImageResizer.IMAGE_ID_BASE+id) != null) {
		id++;
	}
	return id;
}

NcodeImageResizer.createOnId = function(id) {
	return NcodeImageResizer.createOn(document.getElementById(id));
}

NcodeImageResizer.createOn = function(img, isSchedule) {
	if(typeof isSchedule == 'undefined') isSchedule = false;
	
	if(!img || !img.tagName || img.tagName.toLowerCase() != 'img') {
		alert(img+' is not an image ('+img.tagName.toLowerCase()+')');
	}
	
	if(img.width == 0 || img.height == 0) {
		if(!isSchedule)
			NcodeImageResizer.schedule(img);
		return;
	}
	
	if(!img.originalWidth) img.originalWidth = img.width;
	if(!img.originalHeight) img.originalHeight = img.height;
	
	if((NcodeImageResizer.MAXWIDTH > 0 && img.originalWidth > NcodeImageResizer.MAXWIDTH) || (NcodeImageResizer.MAXHEIGHT > 0 && img.originalHeight > NcodeImageResizer.MAXHEIGHT)) {
		var isRecovery = false; // if this is a recovery from QuickEdit, which only restores the HTML, not the OO structure
		var newid, resizer;
		if(img.id && img.id.indexOf(NcodeImageResizer.IMAGE_ID_BASE) == 0) {
			newid = img.id.substr(NcodeImageResizer.IMAGE_ID_BASE.length);
			if(document.getElementById(NcodeImageResizer.WARNING_ID_BASE+newid) != null) {
				resizer = new NcodeImageResizer(newid, img);
				isRecovery = true;
				resizer.restoreImage();
			}
		} else {
			newid = NcodeImageResizer.getNextId();
			resizer = new NcodeImageResizer(newid, img);
		}
		
		if(isRecovery) {
			resizer.reclaimWarning(newid);
		} else {
			resizer.createWarning();
		}
		resizer.scale();
	}
}

NcodeImageResizer.prototype.restoreImage = function() {
	newimg = document.createElement('IMG');
	newimg.src = this.img.src;
	this.img.width = newimg.width;
	this.img.height = newimg.height;
}

NcodeImageResizer.prototype.reclaimWarning = function(id) {
	this.warning = document.getElementById(NcodeImageResizer.WARNING_ID_BASE+id);
	this.warningTextNode = this.warning.firstChild.firstChild.childNodes[1].firstChild;
	this.warning.resize = this;
	
	this.scale();
}

NcodeImageResizer.prototype.createWarning = function() {
	/*var mtable = document.createElement('TABLE');
	var mtbody = document.createElement('TBODY');
	var mtr = document.createElement('TR');
	var mtd1 = document.createElement('TD');
	var mtd2 = document.createElement('TD');
	var mimg = document.createElement('IMG');
	var mtext = document.createTextNode('');
	
	//mimg.src = NcodeImageResizer.BBURL+'/images/statusicon/wol_error.gif';
	mimg.src = NcodeImageResizer.BBURL;
	mimg.width = 16;
	mimg.height = 16;
	mimg.alt = '';
	mimg.border = 0;
	
	mtd1.width = 20;
	mtd1.className = 'td1';
	
	mtd2.unselectable = 'on';
	mtd2.className = 'td2';
	
	mtable.className = 'ncode_imageresizer_warning';
	mtable.textNode = mtext;
	mtable.resize = this;
	mtable.id = NcodeImageResizer.WARNING_ID_BASE+this.id;
	
	mtd1.appendChild(mimg);
	mtd2.appendChild(mtext);
	
	mtr.appendChild(mtd1);
	mtr.appendChild(mtd2);
	
	mtbody.appendChild(mtr);
	
	mtable.appendChild(mtbody);
	
	this.img.parentNode.insertBefore(mtable, this.img);
	
	this.warning = mtable;
	this.warningTextNode = mtext;*/
}

NcodeImageResizer.prototype.setText = function(text) {
	var newnode = document.createTextNode(text);
	this.warningTextNode.parentNode.replaceChild(newnode, this.warningTextNode);
	this.warningTextNode = newnode;
}

NcodeImageResizer.prototype.scale = function() {
	this.img.height = this.originalHeight;
	this.img.width = this.originalWidth;
	
	if(NcodeImageResizer.MAXWIDTH > 0 && this.img.width > NcodeImageResizer.MAXWIDTH) {
		this.img.height = (NcodeImageResizer.MAXWIDTH / this.img.width) * this.img.height;
		this.img.width = NcodeImageResizer.MAXWIDTH;
	}
	
	if(NcodeImageResizer.MAXHEIGHT > 0 && this.img.height > NcodeImageResizer.MAXHEIGHT) {
		this.img.width = (NcodeImageResizer.MAXHEIGHT / this.img.height) * this.img.width;
		this.img.height = NcodeImageResizer.MAXHEIGHT;
	}
	
	this.warning.width = this.img.width;
	this.warning.onclick = function() { return this.resize.unScale(); }
	
	if(this.img.width < 450) {
		this.setText(vbphrase['ncode_imageresizer_warning_small']);
	} else if(this.img.fileSize && this.img.fileSize > 0) {
		this.setText(vbphrase['ncode_imageresizer_warning_filesize'].replace('%1$s', this.originalWidth).replace('%2$s', this.originalHeight).replace('%3$s', Math.round(this.img.fileSize/1024)));
	} else {
		this.setText(vbphrase['ncode_imageresizer_warning_no_filesize'].replace('%1$s', this.originalWidth).replace('%2$s', this.originalHeight));
	}
	
	return false;
}

NcodeImageResizer.prototype.unScale = function() {
	switch(NcodeImageResizer.MODE) {
		case 'samewindow':
			window.open(this.img.src, '_self');
			break;
		case 'newwindow':
			window.open(this.img.src, '_blank');
			break;
		case 'tinybox':
			TINY.box.show('<img src="'+this.img.src+'" />',0,0,0,1);
			break;			
		case 'enlarge':
		default:
			this.img.width = this.originalWidth;
			this.img.height = this.originalHeight;
			this.img.className = 'ncode_imageresizer_original';
			if(this.warning != null) {
				this.setText(vbphrase['ncode_imageresizer_warning_fullsize']);
				this.warning.width = this.img.width;
				this.warning.onclick = function() { return this.resize.scale() };
			}
			break;
	}
	
	return false;
}



var TINY={};

function T$(i){return document.getElementById(i)}

TINY.box=function(){
	var p,m,b,fn,ic,iu,iw,ih,ia,f=0;
	return{
		show:function(c,u,w,h,a,t){
			if(!f){
				p=document.createElement('div'); p.id='tinybox';
				m=document.createElement('div'); m.id='tinymask';
				b=document.createElement('div'); b.id='tinycontent';
				document.body.appendChild(m); document.body.appendChild(p); p.appendChild(b);
				m.onclick=TINY.box.hide; window.onresize=TINY.box.resize; f=1
			}
			if(!a&&!u){
				p.style.width=w?w+'px':'auto'; p.style.height=h?h+'px':'auto';
				p.style.backgroundImage='none'; b.innerHTML=c
			}else{
				b.style.display='none'; p.style.width=p.style.height='100px'
			}
			this.mask();
			ic=c; iu=u; iw=w; ih=h; ia=a; this.alpha(m,1,80,3);
			if(t){setTimeout(function(){TINY.box.hide()},1000*t)}
		},
		fill:function(c,u,w,h,a){
			if(u){
				p.style.backgroundImage='';
				var x=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject('Microsoft.XMLHTTP');
				x.onreadystatechange=function(){
					if(x.readyState==4&&x.status==200){TINY.box.psh(x.responseText,w,h,a)}
				};
				x.open('GET',c,1); x.send(null)
			}else{
				this.psh(c,w,h,a)
			}
		},
		psh:function(c,w,h,a){
			if(a){
				if(!w||!h){
					var x=p.style.width, y=p.style.height; b.innerHTML=c;
					p.style.width=w?w+'px':''; p.style.height=h?h+'px':'';
					b.style.display='';
					w=parseInt(b.offsetWidth); h=parseInt(b.offsetHeight);
					b.style.display='none'; p.style.width=x; p.style.height=y;
				}else{
					b.innerHTML=c
				}
				this.size(p,w,h,4)
			}else{
				p.style.backgroundImage='none'
			}
		},
		hide:function(){
			TINY.box.alpha(p,-1,0,3)
		},
		resize:function(){
			TINY.box.pos(); TINY.box.mask()
		},
		mask:function(){
			m.style.height=TINY.page.theight()+'px';
			m.style.width=''; m.style.width=TINY.page.twidth()+'px'
		},
		pos:function(){
			var t=(TINY.page.height()/2)-(p.offsetHeight/2); t=t<10?10:t;
			p.style.top=(t+TINY.page.top())+'px';
			p.style.left=(TINY.page.width()/2)-(p.offsetWidth/2)+'px'
		},
		alpha:function(e,d,a,s){
			clearInterval(e.ai);
			if(d==1){
				e.style.opacity=0; e.style.filter='alpha(opacity=0)';
				e.style.display='block'; this.pos()
			}
			e.ai=setInterval(function(){TINY.box.twalpha(e,a,d,s)},20)
		},
		twalpha:function(e,a,d,s){
			var o=Math.round(e.style.opacity*100);
			if(o==a){
				clearInterval(e.ai);
				if(d==-1){
					e.style.display='none';
					e==p?TINY.box.alpha(m,-1,0,2):b.innerHTML=p.style.backgroundImage=''
				}else{
					e==m?this.alpha(p,1,100,5):TINY.box.fill(ic,iu,iw,ih,ia)
				}
			}else{
				var n=o+Math.ceil(Math.abs(a-o)/s)*d;
				e.style.opacity=n/100; e.style.filter='alpha(opacity='+n+')'
			}
		},
		size:function(e,w,h,s){
			e=typeof e=='object'?e:T$(e); clearInterval(e.si);
			var ow=e.offsetWidth, oh=e.offsetHeight,
			wo=ow-parseInt(e.style.width), ho=oh-parseInt(e.style.height);
			var wd=ow-wo>w?-1:1, hd=(oh-ho>h)?-1:1;
			e.si=setInterval(function(){TINY.box.twsize(e,w,wo,wd,h,ho,hd,s)},20)
		},
		twsize:function(e,w,wo,wd,h,ho,hd,s){
			var ow=e.offsetWidth-wo, oh=e.offsetHeight-ho;
			if(ow==w&&oh==h){
				clearInterval(e.si); p.style.backgroundImage='none'; b.style.display='block'
			}else{
				if(ow!=w){e.style.width=ow+(Math.ceil(Math.abs(w-ow)/s)*wd)+'px'}
				if(oh!=h){e.style.height=oh+(Math.ceil(Math.abs(h-oh)/s)*hd)+'px'}
				this.pos()
			}
		}
	}
}();

TINY.page=function(){
	return{
		top:function(){return document.body.scrollTop||document.documentElement.scrollTop},
		width:function(){return self.innerWidth||document.documentElement.clientWidth},
		height:function(){return self.innerHeight||document.documentElement.clientHeight},
		theight:function(){
			var d=document, b=d.body, e=d.documentElement;
			return Math.max(Math.max(b.scrollHeight,e.scrollHeight),Math.max(b.clientHeight,e.clientHeight))
		},
		twidth:function(){
			var d=document, b=d.body, e=d.documentElement;
			return Math.max(Math.max(b.scrollWidth,e.scrollWidth),Math.max(b.clientWidth,e.clientWidth))
		}
	}
}();

$(document).ready(function() {
	window.__flash__removeCallback = function() {
		return function(instance, name) {
			if (instance) instance[name] = null;
		}; // IE 6 dangling semicolon needed
	}; // force another closure to prevent IE memory leaks
});

$(window).load(function() {
	window.__flash__removeCallback = function() {
		return function(instance, name) {
			if (instance) instance[name] = null;
		}; // IE 6 dangling semicolon needed
	}; // force another closure to prevent IE memory leaks
});

(function($){$.fn.lazyload=function(options){var settings={threshold:0,failurelimit:0,event:"scroll",effect:"show",container:window};if(options){$.extend(settings,options);}
var elements=this;if("scroll"==settings.event){$(settings.container).bind("scroll",function(event){var counter=0;elements.each(function(){if($.abovethetop(this,settings)||$.leftofbegin(this,settings)){}else if(!$.belowthefold(this,settings)&&!$.rightoffold(this,settings)){$(this).trigger("appear");}else{if(counter++>settings.failurelimit){return false;}}});var temp=$.grep(elements,function(element){return!element.loaded;});elements=$(temp);});}
this.each(function(){var self=this;if(undefined==$(self).attr("original")){$(self).attr("original",$(self).attr("src"));}
if("scroll"!=settings.event||undefined==$(self).attr("src")||settings.placeholder==$(self).attr("src")||($.abovethetop(self,settings)||$.leftofbegin(self,settings)||$.belowthefold(self,settings)||$.rightoffold(self,settings))){if(settings.placeholder){$(self).attr("src",settings.placeholder);}else{$(self).removeAttr("src");}
self.loaded=false;}else{self.loaded=true;}
$(self).one("appear",function(){if(!this.loaded){$("<img />").bind("load",function(){$(self).hide().attr("src",$(self).attr("original"))
[settings.effect](settings.effectspeed);self.loaded=true;}).attr("src",$(self).attr("original"));};});if("scroll"!=settings.event){$(self).bind(settings.event,function(event){if(!self.loaded){$(self).trigger("appear");}});}});$(settings.container).trigger(settings.event);return this;};$.belowthefold=function(element,settings){if(settings.container===undefined||settings.container===window){var fold=$(window).height()+$(window).scrollTop();}else{var fold=$(settings.container).offset().top+$(settings.container).height();}
return fold<=$(element).offset().top-settings.threshold;};$.rightoffold=function(element,settings){if(settings.container===undefined||settings.container===window){var fold=$(window).width()+$(window).scrollLeft();}else{var fold=$(settings.container).offset().left+$(settings.container).width();}
return fold<=$(element).offset().left-settings.threshold;};$.abovethetop=function(element,settings){if(settings.container===undefined||settings.container===window){var fold=$(window).scrollTop();}else{var fold=$(settings.container).offset().top;}
return fold>=$(element).offset().top+settings.threshold+$(element).height();};$.leftofbegin=function(element,settings){if(settings.container===undefined||settings.container===window){var fold=$(window).scrollLeft();}else{var fold=$(settings.container).offset().left;}
return fold>=$(element).offset().left+settings.threshold+$(element).width();};$.extend($.expr[':'],{"below-the-fold":"$.belowthefold(a, {threshold : 0, container: window})","above-the-fold":"!$.belowthefold(a, {threshold : 0, container: window})","right-of-fold":"$.rightoffold(a, {threshold : 0, container: window})","left-of-fold":"!$.rightoffold(a, {threshold : 0, container: window})"});})(jQuery);