jQuery.fn.catfish = function(options) {
	this.settings = {
		closeLink: 'none',
		animation: 'slide',
		height: '50'
	}
	if(options)
		jQuery.extend(this.settings, options);
	
	if ( this.settings.animation != 'slide' && this.settings.animation != 'none' && this.settings.animation != 'fade' ) {
		alert('animation can only be set to \'slide\', \'none\' or \'fade\'');
	}
	var id = this.attr('id');
	settings = this.settings;
	jQuery(this).css('padding', '0').css('height', this.settings.height + 'px').css('margin', '0').css('width', '100%');
	jQuery('html').css('padding', '0 0 ' + ( this.settings.height * 1 + 50 ) + 'px 0');
	if ( typeof document.body.style.maxHeight != "undefined" ) {
		jQuery(this).css('position', 'fixed').css('bottom', '0').css('left', '0');
	}
	if ( this.settings.animation == 'slide' ) {
		jQuery(this).slideDown('slow');
	}
	else if ( this.settings.animation == 'fade' ) {
		jQuery(this).fadeIn('slow');
	}
	else {
		jQuery(this).show();
	}
	if ( this.settings.closeLink != 'none' ) {
		jQuery(this.settings.closeLink).click(function(){
			jQuery.closeCatfish(id);
			return false;
		});
	}
	return this;
};
jQuery.closeCatfish = function(id) {
	this.catfish = jQuery('#' + id);
	jQuery(this.catfish).hide();
	jQuery('html').css('padding', '0');
	jQuery('body').css('overflow', 'visible'); // Change IE6 hack back
};


var user_agent = navigator.userAgent;
if ( user_agent.search(/msie 6/i) != -1 && user_agent.search(/msie 7/i) == -1 ) {

	try {
  		document.execCommand("BackgroundImageCache", false, true);
	} catch(err) {}

}


Image1= new Image(325,90);
Image1.src = "";


Image2= new Image(1,90);
Image2.src = "";




var script_path = '';



load_image1();

function load_image1() {
Image1.onLoad = load_image2();
}

function load_image2() {
Image2.onLoad = load_iframe();
}



function load_iframe() {
setTimeout("allow_ad()", 1000);
}


function allow_ad() {
jQuery(document.getElementById('catfish')).catfish({animation: 'slide',closeLink: '#catfish_close',height: 242});
}
