	/*********************************************************************
* Copyright 2008 Amblique :: www.amblique.com :: All Rights Reserved *
**********************************************************************
* JAVASCRIPT AND OTHER SCRIPTING
*********************************************************************/

/**********************************
* jQuery
**********************************/
/*
jQuery(document).ready(function(){
	// noConflict :: http://docs.jquery.com/Core/jQuery.noConflict
	// jQuery.noConflict();
	
	// IE PNG Fix :: http://www.campbellsdigitalsoup.co.uk/about/png-fix
	//jQuery("img[@src$=png], #id, .class").pngfix();
	
	// PopupWindow :: http://plugins.jquery.com/project/PopupWindow
	var profiles = {
		popupToolsPrint:{height:500,width:600,center:1,scrollbars:1,status:0,resizable:1},
		popupToolsEmail:{height:400,width:500,center:1,scrollbars:1,status:0,resizable:1}
	};
	$(".tool").popupwindow(profiles);
	
	// Preload Images Automatically from CSS :: http://www.filamentgroup.com/lab/update_automatically_preload_images_from_css_with_jquery
	//$.preloadCssImages();
	
	// jQuery Lightbox :: http://leandrovieira.com/projects/jquery/lightbox
	$('a[@rel*=lightbox]').lightbox({
		overlayBgColor: '#FFF',
		overlayOpacity: 0.8,
		containerBorderSize: 10,
		containerResizeSpeed: 400,
		imageLoading: 'images/lightbox/loading.gif',
		imageBtnClose: 'images/lightbox/close.gif',
		imageBtnPrev: 'images/lightbox/prevlabel.gif',
		imageBtnNext: 'images/lightbox/nextlabel.gif'
   });
	
	// Your code goes here
	
});*/

/**********************************
* sIFR
**********************************/
// Examples :: http://wiki.novemberborn.net/sifr3/Examples

/* Select font */
/*var myriadpro = {
	src: 'flash/centurygothic.swf',
	ratios: [7, 1.32, 11, 1.31, 13, 1.24, 14, 1.25, 19, 1.23, 27, 1.2, 34, 1.19, 42, 1.18, 47, 1.17, 48, 1.18, 69, 1.17, 74, 1.16, 75, 1.17, 1.16]
};

/* Activate font */
/*
sIFR.activate(myriadpro);
sIFR.useStyleCheck = true;

/* h2.contentTitle */
/*sIFR.replace(myriadpro, {
	selector: 'h2.contentTitle',
	css: ['.sIFR-root { font-size: 30px; color: #004990;}' ],
	wmode: 'transparent'
});*/


/**********************************
* Custom scripts
**********************************/

/***** Popup windows *****/

/*
function PopUpSend(URL) {
	window.open(URL,"Send","height=400,width=500,scrollbars=yes,menubar=no,statusbar=no,personalbar=no,locationbar=no");
}
function PopUpPrint(URL) {
	window.open(URL,"Print","height=500,width=500,scrollbars=yes,menubar=no,statusbar=no,personalbar=no,locationbar=no"); 
}

/***** Google toolbar yellow fields Fix *****/
/*
if(window.attachEvent)
window.attachEvent("onload",setListeners);

function setListeners(){
inputList = document.getElementsByTagName("INPUT");
for(i=0;i<inputList.length;i++){
	inputList[i].attachEvent("onpropertychange",restoreStyles);
	inputList[i].style.backgroundColor = "";
}
selectList = document.getElementsByTagName("SELECT");
	for(i=0;i<selectList.length;i++){
		selectList[i].attachEvent("onpropertychange",restoreStyles);
		selectList[i].style.backgroundColor = "";
	}
}*/
function restoreStyles(){
	if(event.srcElement.style.backgroundColor != "" && event.srcElement.style.backgroundColor != "#a0d0ff"){
		event.srcElement.style.backgroundColor = "#a0d0ff"; /* color of choice for AutoFill */
		document.all['googleblurb'].style.display = "block";
	}
 }
 
 /***** Clear Input Text *****/
function clearText(thefield, clearType){ 
	if (thefield.defaultValue==thefield.value) {
		thefield.value = ""
	}		
}

