﻿function showFlash(objID, objSource, objWidth, objHeight, objQuality, objWmode, objBgcolor) {
	var pageUrl = self.window.location.href;
	if(pageUrl.substring(0,5) == 'https') {
		swfUrl = "https";
	} else {
		swfUrl = "http";
	}
	if (objID == "") objID = 'ShockwaveFlash1';
	if (objWidth == "") objWidth = '0';
	if (objHeight == "") objHeight = '0';
	if (objQuality == "") objQuality = 'best';
	if (objWmode == "") {
		objWmode = 'transparent';
	} else {
		objWmode = '';
	}
	document.write('<object id="' + objID + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" type="application/x-shockwave-flash" data="' + objSource + '" codebase="' + swfUrl +'://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="' + objWidth + '" height="' + objHeight + '">');
	document.write('<param name=menu value=false>');
	document.write('<param name=allowScriptAccess value=always>');
	document.write('<param name=wmode value="'+ objWmode +'">');
	document.write('<param name=movie VALUE="'+ objSource +'">');
	document.write('<param name=quality VALUE="'+ objQuality +'">');
	document.write('<param name=bgcolor VALUE="'+ objBgcolor +'">');
	document.write('<embed allowScriptAccess="always" swLiveConnect="true" src="' + objSource + '" menu="false" quality="' + objQuality + '" wmode="' + objWmode + '" bgcolor="' + objBgcolor + '" width="' + objWidth + '" height="' + objHeight + '" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer">');
	document.write('</object>');
}

function openWindow(theURL,winName,width,height,scrollbars) {
	var screenW = (screen.width - width) / 2
	var screenH = (screen.height - height) / 3
	features = 'width=' + width + ',height=' + height + ',left=' + screenW + ',top=' + screenH + ',scrollbars=' + scrollbars + ',resizable=yes',
	window.open(theURL,winName,features);
}

function CloseAboriginesAnimation(){
	document.getElementById('divAboriginesAnimation').style.display = "none";
	document.getElementById('divAboriginesAnimation').innerHTML=""
}

function ChangeImage(obj) {
	var imgUrl = obj.src.toLowerCase();
	if ( imgUrl.indexOf("over.") > 0 ) {
		obj.src = imgUrl.replace("over.","out.");
	} else {
		obj.src = imgUrl.replace("out.","over.");
	}
}

function ChangeFont_Small(){
	var objTitle	= document.getElementById("Title");
	if (objTitle!=null){
		objTitle.className = "ContentTitle";
	}
		var objContent	= document.getElementById("Content")
	if (objContent!=null){
		objContent.className = "ContentText";
	}
}

function ChangeFont_Medium(){
	var objTitle	= document.getElementById("Title");
	if (objTitle!=null){
		objTitle.className = "ContentTitle_M";
	}
		var objContent	= document.getElementById("Content")
	if (objContent!=null){
		objContent.className = "ContentText_M";
	}
}

function ChangeFont_Big(){
var objTitle	= document.getElementById("Title");
	if (objTitle!=null){
		objTitle.className = "ContentTitle_B";
	}
		var objContent	= document.getElementById("Content")
	if (objContent!=null){
		objContent.className = "ContentText_B";
	}
}