	var oldColor;
	var CurrentID;
	var MaxTipCount = 1;
	var CurrentNoteID = MaxTipCount;


		function ShowEmailContact(){
		var emailE='support'+'@'+'darteks'+'.'+'com.au';

			document.write('<a class="mail" href="mailto:' + emailE + '" style="color:#8496de">' + emailE + '</a>');
		}

		function ShowEmailQuote(){
		var emailE='photoestimate'+'@'+'darteks'+'.'+'com.au';

			document.write('<a class="mail" href="mailto:' + emailE + '?subject=Please supply an estimate&body=I wish to get an estimate of cost for providing ........ service" style="color:#8496de">' + 'provide an estimate' + '</a>');
		}

		function ShowEmailComment(){
		var emailE='support'+'@'+'darteks'+'.'+'com.au';

			document.write('<a class="mail" href="mailto:' + emailE + '?subject=A comment for your website&body=I wish to make the following comment about your website:" style="color:#8496de">' + 'send a comment' + '</a>');
		}



var xmlDoc
function loadXML(){
//load xml file
// code for IE
if (window.ActiveXObject)
  {
  xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
  xmlDoc.async=false;
  xmlDoc.load("blog.xml");
  getmessage();
  }
// code for Mozilla, etc.
else if (navigator.userAgent.indexOf('Konq')!=-1)
  {
  xmlDoc= document.implementation.createDocument("","",null);
  xmlDoc.load("blog.xml");
  xmlDoc.onload=getmessage;
  }
else if (window.XMLHttpRequest)
  {
  	//alternate XMLHTTP request - Gecko, Safari 1.2+ and Opera 7.6+
	xmlReq = new XMLHttpRequest();
	xmlReq.onreadystatechange = new Function( 'if( xmlReq.readyState == 4 && xmlReq.status < 300 ) { setXML(xmlReq.responseXML); }' );
	xmlReq.open("GET", "blog.xml", true);
	xmlReq.send(null);
	return true;

  }
else
  {
  alert('Your browser cannot handle this script');
  }
  
}

function setXML(obj){
	//alert(obj);
	xmlDoc = obj;
	getmessage();
}

function getmessage(){
	var newTag;
	var tagCount;
	var fullTag;
	var titleList;
	var descriptionList;
	
	
	titleList = xmlDoc.getElementsByTagName("title");
	descriptionList = xmlDoc.getElementsByTagName("description");
	tagCount = titleList.length;
	
	document.getElementById("titlename").innerHTML= 
					xmlDoc.getElementsByTagName("title")[0].firstChild.nodeValue;
	document.getElementById("titledescription").innerHTML= 
					xmlDoc.getElementsByTagName("description")[0].firstChild.nodeValue;
	fullTag='';

	for (i=1; i<tagCount; i++){
		newTag=' <div id="title">' + titleList[i].firstChild.nodeValue + '</div><div id="description">' + 		
				descriptionList[i].firstChild.nodeValue + '</div><br/><br/> ';
		fullTag=fullTag+newTag;
	
	}
	document.getElementById("blogEntries").innerHTML=fullTag;
}

	function showStickyNoteRND(){
			var outHTML='';
			var numberVal;
			numberVal = Math.round((Math.random()*12)+1);
			
			outHTML = '<img id="stickynote" src="images/stickynotehint'+numberVal+'.gif" style="float:right" title="Click note to see other tips" onmouseup="nextStickyNote();"/>';
			
			document.write(outHTML);
			
			}
			
function nextStickyNote(){
			var numberVal;
			numberVal = Math.round((Math.random()*12)+1);
			
			document.getElementById('stickynote').src='images/stickynotehint' + numberVal + '.gif';
			
			
			}
function openWindow(src){
					window.open (src, '', 'scrollbars=yes, menubar=no, toolbar=yes,resizable=yes, height=500, width=600, location=yes');
				
			}			