// reset.js

// applying png-fix in ie6 only
$(document).ready(function() {
	if($.browser.msie && parseInt($.browser.version) < 7) {
		$('.pngfix, #logo').ifixpng('/fileadmin/web/images/common/transparent.gif');
	}
	
	try {
		document.execCommand("BackgroundImageCache", false, true);
	} catch(err) {};
});

// removing silly typo3 default style attributes
$(document).ready(function() {
	$('dl.csc-textpic-image').removeAttr('style');
});

// remove shadow in ie6
$(document).ready(function() {
	if($.browser.msie && parseInt($.browser.version) < 7) {
		$('.stage_shadow, .stage_shadow_bottom, .stage_shadow_top').css('background-image', 'none');
	}
});

// auto site iframes
$(document).ready(function() {
	var times = 0;
	
	$('iframe').load(function() {
		times++;
		
		if(times > 1) {
			$.scrollTo($(this), 250);
		}
	});
});