<!--
// original variable changed from 'copyright' because datetime2.js uses var 'Stamp'
Stamp=new Date();
update=Stamp.getFullYear();

function myVoid() { ; } // create a void function

function goBack(){
history.go(-1);
// window.location=(storedURL);
}

with (document)
{
	write("<STYLE TYPE='text/css'>");
	write(".hiddentext {display:none;}  .outline {cursor: hand; text-decoration:underline; font-family: Arial; font-size: 13px;}");
	write("</STYLE>");
}
function expandIt(whichEl)
{
	whichEl.style.display = (whichEl.style.display == "block" ) ? "none" : "block";
}

function exit(){
input_box=confirm("Click OK to close browser window or Cancel");
if (input_box==true){

// Output when OK is clicked
if (navigator.appName == "Microsoft Internet Explorer"){ // better be ie6 at least
parent.window.close();
NewWindow('../exit.html','mywin','530','375','no','center');
}
else{
parent.window.close();
}
}
}

function goForward(){
history.go(+1)
}

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){
LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;
TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){
LeftPosition=(screen.width)?(screen.width-w-32):100;
TopPosition="29";}

settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';

win=window.open(mypage,myname,settings);
}

function Set(Cell){
Cell.style.cursor = 'default';
}

function Hilite(name,over){
if(window.document.images){
if (over)
window.document.images[name].src = "img/" + name + "_ov.gif";
else
window.document.images[name].src = "img/" + name + ".gif";
}}

// make page break out of frameset
//if (top!= self){
//top.location = self.location.href;
//}

/*Example message arrays for the two demo scrollers*/

var pausecontent=new Array()
pausecontent[0]='<table border="0"><tr><td><img border="0" src="http://aapress.com.au/img/online1small.gif"></td><td>&nbsp;</td><td><b><font face="Arial" style="font-size: 13px" color="#FF0000"><a href="http://aapress.com.au/ielts101" target="_blank">STUDY<br>IELTS<br>ONLINE</a></font></b></td></tr></table>'
pausecontent[1]='<br><a href="http://aapress.com.au/ielts101">ONLINE IELTS COURSE</a><br><br>Comprehensive IELTS<br>practice for only <b><font face="Arial" style="font-size: 15px" color="#FF0000">$60.00</font></b> AUD'
pausecontent[2]='<br>Written by top IELTS teachers and examiners.<br><br><br>&nbsp;&nbsp;Click here to <a href="http://tinyurl.com/2nhgke" target="_blank">ENROL NOW</a>'
pausecontent[3]='<br>&nbsp;One week, two weeks...<br><br>&nbsp;...as long as you like up<br>&nbsp;&nbsp;&nbsp;&nbsp;to&nbsp;THREE MONTHS!'
pausecontent[4]='<img src="http://aapress.com.au/img/cd3.gif">...with DVD or 5 CDs of<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;multimedia material.'
pausecontent[5]='<br>RECENT COMMENTS<br><br>...from students<br>&nbsp;&nbsp;&nbsp;studying online:'
pausecontent[6]='<br>&nbsp;&quot;Very nice course. I am<br>&nbsp;&nbsp;&nbsp;satisfied.&quot;<br><br><br>&nbsp;&nbsp;Click here to <a href="http://tinyurl.com/2nhgke" target="_blank">ENROL NOW</a>'
pausecontent[7]='<br>&nbsp;&quot;great course, highly<br>&nbsp;&nbsp;&nbsp;recommended&quot;<br><br><br>&nbsp;&nbsp;Click here to <a href="http://tinyurl.com/2nhgke" target="_blank">ENROL NOW</a>'
pausecontent[8]='<br>&nbsp;&quot;Speedy delivery, instant<br>&nbsp;&nbsp;and excellent support!<br>&nbsp;&nbsp;Many thanks...&quot;<br><br>&nbsp;&nbsp;Click here to <a href="http://tinyurl.com/2nhgke" target="_blank">ENROL NOW</a>'
pausecontent[9]='<br>Best value ONLINE IELTS practice for only <b><font face="Arial" style="font-size: 15px" color="#FF0000">$60.00</font></b> AUD<br><br><br>&nbsp;&nbsp;Click here to <a href="http://tinyurl.com/2nhgke" target="_blank">ENROL NOW</a>'
pausecontent[10]='<br>&nbsp;&quot;great product&quot;<br><br><br><br>&nbsp;&nbsp;Click here to <a href="http://tinyurl.com/2nhgke" target="_blank">ENROL NOW</a>'
pausecontent[11]='<br>&nbsp;&quot;Highly recommend this<br>&nbsp;&nbsp;IELTS package...&quot;<br><br><br>&nbsp;&nbsp;Click here to <a href="http://tinyurl.com/2nhgke" target="_blank">ENROL NOW</a>'
pausecontent[12]='<br>&nbsp;&quot;Excellent product & very<br>&nbsp;&nbsp;fast service...&quot;<br><br><br>&nbsp;&nbsp;Click here to <a href="http://tinyurl.com/2nhgke" target="_blank">ENROL NOW</a>'

/***********************************************
* Pausing up-down scroller- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

function pausescroller(content, divId, divClass, delay){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}

// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------

pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}

// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------

pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
setTimeout(function(){scrollerinstance.animateup()}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}

// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------

pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}

// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}

/****************************************************
     Author: Eric King
     Url: http://redrival.com/eak/index.shtml
     This script is free to use as long as this info is left in
     Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
****************************************************/

// for popuptip1.html

var win=null;
function NewWindow2(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=0}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}

var win=null;
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0 
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); 
if (restore) selObj.selectedIndex=0; 
} 
function MM_findObj(n, d) { //v3.0 
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { 
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} 
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; 
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x; 
} 
function MM_jumpMenuGo(selName,targ,restore){ //v3.0 
var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore); 
}

function addBookmark(title,url) {
if ( window.sidebar ) {
window.sidebar.addPanel(title, url,"");
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
}
}

function printit() {
window.focus();
window.print();
}

// Browser Detection

    var agt=navigator.userAgent.toLowerCase();

    var is_major = parseInt(navigator.appVersion);
    var is_minor = parseFloat(navigator.appVersion);

    var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
                && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
    var is_nav2 = (is_nav && (is_major == 2));
    var is_nav3 = (is_nav && (is_major == 3));
    var is_nav4 = (is_nav && (is_major == 4));
    var is_nav4up = (is_nav && (is_major >= 4));
    var is_navonly      = (is_nav && ((agt.indexOf(";nav") != -1) ||
                          (agt.indexOf("; nav") != -1)) );
    var is_nav6 = (is_nav && (is_major == 5));
    var is_nav6up = (is_nav && (is_major >= 5));
    var is_gecko = (agt.indexOf('gecko') != -1);


    var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
    var is_ie3    = (is_ie && (is_major < 4));
    var is_ie4    = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) );
    var is_ie4up  = (is_ie && (is_major >= 4));
    var is_ie5    = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
    var is_ie5_5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1));
    var is_ie5up  = (is_ie && !is_ie3 && !is_ie4);
    var is_ie5_5up =(is_ie && !is_ie3 && !is_ie4 && !is_ie5);
    var is_ie6    = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) );
    var is_ie6up  = (is_ie && !is_ie3 && !is_ie4 && !is_ie5 && !is_ie5_5);

    var is_aol   = (agt.indexOf("aol") != -1);
    var is_aol3  = (is_aol && is_ie3);
    var is_aol4  = (is_aol && is_ie4);
    var is_aol5  = (agt.indexOf("aol 5") != -1);
    var is_aol6  = (agt.indexOf("aol 6") != -1);

    var is_opera = (agt.indexOf("opera") != -1);
    var is_opera2 = (agt.indexOf("opera 2") != -1 || agt.indexOf("opera/2") != -1);
    var is_opera3 = (agt.indexOf("opera 3") != -1 || agt.indexOf("opera/3") != -1);
    var is_opera4 = (agt.indexOf("opera 4") != -1 || agt.indexOf("opera/4") != -1);
    var is_opera5 = (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1);
    var is_opera5up = (is_opera && !is_opera2 && !is_opera3 && !is_opera4);

    var is_webtv = (agt.indexOf("webtv") != -1); 

    var is_TVNavigator = ((agt.indexOf("navio") != -1) || (agt.indexOf("navio_aoltv") != -1)); 
    var is_AOLTV = is_TVNavigator;

    var is_hotjava = (agt.indexOf("hotjava") != -1);
    var is_hotjava3 = (is_hotjava && (is_major == 3));
    var is_hotjava3up = (is_hotjava && (is_major >= 3));

// end Browser Detection

function find_DOM(object_id,incl_style) {
    /***************************
    IE 5+ || Netscape 6+
    ***************************/
    if (document.getElementById) {
        found_object = document.getElementById(object_id);
    }
    /***************************
    IE 4+
    ***************************/
    else if (document.all) {
        found_object = document.all[object_id];
    }
    /***************************
    Netscape 4
    ***************************/
    else {
        browser_version = parseInt(navigator.appVersion);
        if ((navigator.appName.indexOf('Netscape') != 1 && browser_version == 4)) {
            found_object = document.layers[object_id];
            var nav4 = true;
        }
    }

    /***************************
    Return object
    ***************************/
    if (incl_style == 1 && !nav4) {
        return found_object.style;
    } else {
        return found_object;
    }
}

function preload_images() {
    if (document.images) {
        var args = preload_images.arguments;
        document.imageArray = new Array(args.length);

        for(var i=0; i<args.length; i++) {
            document.imageArray[i] = new Image;
            document.imageArray[i].src = args[i];
        }
    }
}

function rollover(current,roll_image) {
	if (document.images) {
    	current.src = roll_image;
	}
}

/******************************************
Start stylesheet changer
******************************************/
function change_style(ssTitle) {

	var ss = document.getElementsByTagName("link");
	var spans = document.getElementsByTagName("span");
	var thisCookie = document.cookie.split("; ");
	var ssCookie = "";
	var expireDate = new Date();
	expireDate.setMonth(expireDate.getMonth()+120);
	var span_id = "";
	var span_found = 0;

	//CHECK TO SEE IF ONE OF THE SPANS IS FOUND
	for (i = 0; i < spans.length; i++) {
		span_id = spans[i].id;
		if (span_id == "smalltext_icon" || span_id == "smalltext_icon_c" || span_id == "mediumtext_icon" || 

span_id == "mediumtext_icon_c" || span_id == "largetext_icon"  || span_id == "largetext_icon_c") {
			span_found = 1;
		}
	}

	//IF NO TITLE IS FOUND, TRY TO EXTRACT FROM THE COOKIE
	if (ssTitle == "") {
		for (i = 0; i < thisCookie.length; i++) {
			if (thisCookie[i].split("=")[0] == "defaultCSS") {
				ssCookie = thisCookie[i].split("=")[1];
			}
		}
	}

	//IF A COOKIE WAS FOUND, SET IT TO THE TITLE
	if (ssCookie != "") {
		ssTitle = ssCookie;
	}

	//IF A TITLE IS FOUND, RUN THE PROCESS TO FIND THE TEXT SIZE
	//OTHERWISE SIMPLY CHOOSE THE DEFAULT SS
	if (ssTitle != "") {
		for (i = 0; i < ss.length; i++) {
			if (ss[i].rel == "stylesheet" && ss[i].id == "ssText") {
				if (ss[i].title == ssTitle) {
					ss[i].disabled = false;
					document.cookie = "defaultCSS=" + ssTitle + "; expires=" + 

expireDate.toGMTString() + "; path=/";
				} else {
					ss[i].disabled = true;
				}
			}
		}
	} else {
		for (i = 0; i < ss.length; i++) {
			if (ss[i].rel == "stylesheet" && ss[i].id == "ssText") {
				if (ss[i].title == "smalltext") {
					ss[i].disabled = false;
					document.cookie = "defaultCSS=smalltext; expires=" + 

expireDate.toGMTString() + "; path=/";
				} else {
					ss[i].disabled = true;
				}
			}
		}
	}

	//ONLY RENDER THIS SECTION AT LEAST ONE OF THE SPANS IS FOUND
	if (span_found == 1) {

		var icon_small = "smalltext_icon";
		var icon_small_c = "smalltext_icon_c";
		var icon_medium = "mediumtext_icon";
		var icon_medium_c = "mediumtext_icon_c";
		var icon_large = "largetext_icon";
		var icon_large_c = "largetext_icon_c";

		var small_norm = find_DOM(icon_small,1);
		var small_chose = find_DOM(icon_small_c,1);
		var medium_norm = find_DOM(icon_medium,1);
		var medium_chose = find_DOM(icon_medium_c,1);
		var large_norm = find_DOM(icon_large,1);
		var large_chose = find_DOM(icon_large_c,1);

		if (ssTitle == "mediumtext") {
			small_norm.display = "inline";
			small_chose.display = "none";
			medium_norm.display = "none";
			medium_chose.display = "inline";
			large_norm.display = "inline";
			large_chose.display = "none";
		}
		else if (ssTitle == "largetext") {
			small_norm.display = "inline";
			small_chose.display = "none";
			medium_norm.display = "inline";
			medium_chose.display = "none";
			large_norm.display = "none";
			large_chose.display = "inline";
		}
		else {
			small_norm.display = "none";
			small_chose.display = "inline";
			medium_norm.display = "inline";
			medium_chose.display = "none";
			large_norm.display = "inline";
			large_chose.display = "none";
		}
	}
}
//  End -->

