// JavaScript Document for anyLiv.com WordPress Template by 0812-2009...

jQuery(function($){
/* ======================================================================== */

// for some ui change ...
$('div.iframe-wrapper > iframe').width('99%');
$('.msgs .body p a').attr('target','_blank');
$('.post .body p a').attr('target','_blank');
$('.tips .foot').click(function(){ $('.tips').slideUp('slow'); });

while( $('.toys').size() > 0 && $('div.side').height() > $('div.main').height() ){
	$('.toys:last').remove();
} // for change side height ...

if( jQuery.browser.msie && jQuery.browser.version < 8 ){
	$('html').attr('id','IE6S');
} // for IE browser ver ...

$('#keyMsg').click(function(){
	$('html,body').animate({scrollTop:$('#divMsg').offset().top}, 1000);
	return false;
});

/*
$('.post .body a:has(img)').lightBox({
	imageLoading:  tPaz + '/images/lightbox/lightbox-ico-loading.gif',
	imageBtnClose: tPaz + '/images/lightbox/lightbox-btn-close.gif',
	imageBtnPrev:  tPaz + '/images/lightbox/lightbox-btn-prev.gif',
	imageBtnNext:  tPaz + '/images/lightbox/lightbox-btn-next.gif',
	imageBlank:    tPaz + '/images/lightbox/lightbox-blank.gif'
});
*/

// for img pops ....
/*
var objPops = $('.post .body a:has(img)');
if( objPops.size() > 0 ){
	objPops.overlay({
		target: '#divPop',
		close:  '.shut',
		onBeforeLoad: function(){
        	var wrap = this.getContent().find(".body");
            wrap.load(this.getTrigger().attr("href"));
        } 
	});
}
*/
/*
var boxPop = $('#divPop');

$('a[href$=".jpg"]').click(function(){
	//alert('ok');
	$('#divPop > div').html('<img src="' + $(this).attr('href') + '"/>');
	$('#divPop').overlay({
		api:true, close:'.shut',
		onBeforeLoad:function(){
			boxPop.load();
		},
		onLoad:function(){
			$('#divPop').animate({
				left: $(window).width()/2 - $('#divPop').width()/2
			}, 'slow');
		}
	}).load();
	return false;
});
*/
/*
var objPops = $('.post .body a:has(img)');
if( objPops.size() > 0 ){
	objPops.overlay({
		target:'#divPop',
		expose:'#000', effect:'apple'
	}).gallery({
		speed:800, progress:'.load',
		template:''
	});
}
*/

// for flash swf include and tagCloud ...
$('#divTim').flashembed({
	src:   tPaz + '/images/swfTimClock.swf',
	menu:  'false',
	wmode: 'transparent'
});


//



/* ======================================================================== */
});
