// JavaScript Document

$(document).ready(function(){
	var isIE6 = (navigator.appVersion.indexOf("MSIE 6") != -1) ? true : false;
	$(".homepageNews_I .homepageNewsArticles").each(function(){
			$(".newsText0").after('<div class="VL0"> </div>');
			$(".news2").after('<div class="VL1"> </div>');
			$(".news3").after('<div class="HL1"> </div>');
			
		if(isIE6){
			var n = $(".homepageNews_I .homepageNewsArticles").height();
			$(".homepageNews_I .homepageNewsArticles").attr("style","height:"+n+"px;");
		$(".homepageNews_I a.more").each(function(){
			$(this).attr("style","zoom:1");
		});
		}
	});
	
// float the SIDEBAR
//$('.template3 .sideBar').floatsidebar({anchor:'#adminWrapper .banner_O',scroll:false});

// float the TOOLBAR at the footer
/*var disable_float = false;
if($('body').is('.edit')) disable_float = true;
$(".template3 .toolbar_fullscreen_container").floattoolbar({selector:'#adminWrapper',disable:disable_float});*/

	/*
	 * This is to make the height for the cover, because the text which should be covers is dynamic, so the height can be dynamic, 
	 * also the cover div can not the open at the begining of the text and closed at the end of the content, because of its opacity which affect the text colour inside
	 */
	$("[id='cover']").each(function(){
		$(this).css({height:$(this).parent().height(),width:$(this).parent().width()});
	});

	// remove the first vertical bar in the 'topnavigation' bar
	var firstVerticalBar = $(".vertLineLarge:first","#inPageTools_I");
	if (firstVerticalBar.size() > 0)
		firstVerticalBar.hide();
		
	if (window.desableWysiwygAddMedia)
		desableWysiwygAddMedia();

	if (window.notImplemented)
		notImplemented();

});