var IsFontTextLarge = false;

function resetTextSize() {
	
	if (IsFontTextLarge) {		
		decreaseFontSize();
	}
	else 
	{		
		increaseFontSize();
	}
}

function increaseFontSize() {
	document.getElementById('dnn_imgTextSize').src = DNN_skinPath + 'images/reducetext.jpg';
	//alert('DNN_skinPath:'+document.getElementById('dnn_imgTextSize').src);
	//document.all.dnn_imgTextSize.src = DNN_skinPath + 'images/largertext.jpg';
	var p = document.getElementsByTagName('p');	
	var unorder = document.getElementsByTagName('ul');	
	var order = document.getElementsByTagName('ol');
	for(i=0;i<p.length;i++) {
		  p[i].style.fontSize = 16+'px';
		}
	for(i=0;i<unorder.length;i++) {
		  unorder[i].style.fontSize = 16+'px';
		}
		for(i=0;i<order.length;i++) {
		  order[i].style.fontSize = 16+'px';
		}
	IsFontTextLarge = true;
}
function decreaseFontSize() {
	document.getElementById('dnn_imgTextSize').src = DNN_skinPath + 'images/largertext.jpg';
	//document.all.dnn_imgTextSize.src = DNN_skinPath + 'images/largertext.jpg';	
	var p = document.getElementsByTagName('p');	
		var unorder = document.getElementsByTagName('ul');	
	var order = document.getElementsByTagName('ol');
	for(i=0;i<p.length;i++) {
		  p[i].style.fontSize = 12+'px';
		}
	for(i=0;i<unorder.length;i++) {
		  unorder[i].style.fontSize = 12+'px';
		}
		for(i=0;i<order.length;i++) {
		  order[i].style.fontSize = 12+'px';
		}
	IsFontTextLarge = false;
}	

//sIFR implementation
var tradegothic = {  src: DNN_skinPath + 'tradegothic.swf' };
sIFR.activate(tradegothic);
sIFR.replace(tradegothic, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'edwardianscript.swf', 
  css: [ '.sIFR-root {color:#473505;font-size:50px;}'  ]
});

/*Menu implementation*/
jQuery(document).ready(function(){

	jQuery("#MainManu > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:800,
		animation:{height:"show"},
		speed:"normal",
		oldJquery:false,
		disableHI:false,
		onInit:function () {},
		onBeforeShow:function () {},
		onShow:function () {},
		onHide:function () {}
	}).find(">li:has(ul)").mouseover(function () {
		jQuery("ul", this).bgIframe({opacity:true});
	}).find("a").focus(function () {
		jQuery("ul", jQuery("#MainManu > ul >li:has(ul)")).bgIframe({opacity:true});
	});

	/* Activate all media */
	jQuery(".media").media();

	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});

});


