// DDO - JavaScript Document
// URL; http://www.diamonddooronline.com.au/
// Created; 5 December 2008
// Modified; 26 January 2010
// By; Yawp domains - http://www.yawpdomains.com.au/

function PreLoadImages() {
	var doc=document;
	if(doc.images){
	  if(!doc.PLI) doc.PLI=new Array();
    	var i, j=doc.PLI.length, arg=PreLoadImages.arguments;
		for(i=0; i<arg.length; i++) {
    		if (arg[i].indexOf("#")!=0){
				doc.PLI[j]=new Image;
				doc.PLI[j++].src=arg[i];
			}
		}
	}
}

function AddToFavorites(url, title) {

	if (window.sidebar) { // Mozilla Firefox Bookmark
	window.sidebar.addPanel(title, url,"");
	} 
	else if( window.external ) { // IE Favorite
	window.external.AddFavorite( url, title); }
	else if(window.opera && window.print) { // Opera Hotlist
	return true; }
}

//function u_Type() {

if (document.cookie.indexOf("uType=")==-1) {
try {
var udelim = "|";
var uType = udelim;
uType += screen.height + udelim;
uType += screen.width + udelim;
uType += screen.availLeft + udelim;
uType += screen.availTop + udelim;
uType += screen.colorDepth + udelim;
uType += navigator.appCodeName + udelim;
uType += navigator.appName + udelim;
uType += navigator.appVersion + udelim;
uType += navigator.cookieEnabled + udelim;
uType += navigator.cpuClass + udelim;
uType += navigator.javaEnabled() + udelim;
uType += navigator.platform + udelim;
uType += navigator.language + udelim;
uType += navigator.userLanguage + udelim;
uType += navigator.mimeTypes.length + udelim;
if(navigator.mimeTypes.length){
uType += navigator.mimeTypes[navigator.mimeTypes.length-1].type + udelim; }
uType += navigator.plugins.length + udelim;
if(navigator.plugins.length){
uType += navigator.plugins[navigator.plugins.length-1].name + udelim; }

uType = uType.replace(/;/g,"");
uType = uType.replace(/,/g,"");

var today = new Date();
var the_date = new Date(today.getFullYear()+1,today.getMonth(),today.getDate());
the_date = the_date.toGMTString();
var ucook = "uType=" + uType + ";expires=" + the_date + ";path=/";
document.cookie=ucook;
// for accessability features and improved user experiance on the site
} catch(eor) {}
}

//}
