var AC_FL_RunContent = 0;

function newmovie(a) {

	AC_FL_RunContenta(

			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',

			'width', '650',

			'height', '300',

			'src', 'scripts/seo_browser',

			'quality', 'high',

			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',

			'align', 'middle',

			'play', 'true',

			'loop', 'true',

			'scale', 'exactfit',

			'wmode', 'transparent',

			'devicefont', 'false',

			'id', 'scripts/seo_browser',

			'bgcolor', '#ffffff',

			'name', 'scripts/seo_browser',

			'menu', 'true',

			'allowFullScreen', 'false',

			'allowScriptAccess','sameDomain',

			'movie', 'scripts/seo_browser',

			'salign', '',

			'content_id', a

			);

			document.title = "SERCA - Software Engineering & Research Corporation of Australia - Our Portfolio";

}

function scrollTop() {

		body=document.body

	    d=document.documentElement

	    if (body && body.scrollTop) return body.scrollTop

	    if (d && d.scrollTop) return d.scrollTop

	    if (window.pageYOffset) return window.pageYOffset

	    return 0

}

function gy(d) {

	gy1 = d.offsetTop;

	if (d.offsetParent) while (d = d.offsetParent) gy1 += d.offsetTop;

	return gy1;

}

function scrolltomain(el) {

       	 a = document.getElementsByTagName('a');

	     for (i=0;i<a.length;i++) {

	     	if(a[i].name == "topbutton"){

				var d = gy(a[i]);

			}

		}

		i = window.innerHeight || document.documentElement.clientHeight;

		h=document.body.scrollHeight;

		a = scrollTop();

		if(d>a)

			if(h-d>i)

				a+=Math.ceil((d-a))

			else

				a+=Math.ceil((d-a-(h-d)))

		else

			a = a+(d-a);

		window.scrollTo(0,a)

}

function button_on(a) {

	b = document.getElementById('lb'+a);

	b.style.borderTop = "5px solid #CCCCCC";

	b.style.borderLeft = "5px solid #CCCCCC";

	b.style.borderRight = "5px solid #666666";

	b.style.borderBottom = "5px solid #666666";

	b.style.margin = "0px";

}

function button_off(a) {

	b = document.getElementById('lb'+a);

    b.style.border = "1px solid #000000";

    b.style.margin = "4px";

}
	//<![CDATA[

	<!-- Hide the script from non-script-friendly browsers

var message="All Website Content Copyright (c) 2010 - SERCA!";



function clickIE()

 

{if (document.all)

{alert(message);return false;}}



 

function clickNS(e) {

	if (document.layers||(document.getElementById&&!document.all)) {

		if (e.which==2||e.which==3) {

			return false;

		}

	}

}



if (document.layers) {

	document.captureEvents(Event.MOUSEDOWN);document. onmousedown=clickNS;

} else {

	document.onmouseup=clickNS;document.oncontextmenu  =clickIE;

}

 

document.oncontextmenu=new Function("alert(message);return false")



var a = 0;



function hidedelay() {

	a = setTimeout("hidedd()", 300);

}

function canceldelay() {

	clearTimeout(a);

}

function hidedd() {

	document.getElementById("dd1").style.display = "none";

}

	// stop hiding the script -->

	//]]>