

/**--- 

SWF related --------------------------------------------------------------
	
	this file is included in the <head> of page templates
	
---**/

//** SWFObject related
var requiredFlashVersion = "8,0,0";
var embedSwfAltText = '<!-- this text is over-written if so.useExpressInstall() is used -->'+
		'This site is best viewed with Flash Player '+requiredFlashVersion+' (+).'+
		'<br/><a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="flashInstallWindow">Click here to install</a>'+
		'<br/><br/>Once you have installed Flash, simply click <a href="javascript:window.location.reload(false);">here</a> to refresh this page.';
		
function embedFlashDetect(pDivId){
		document.getElementById(pDivId).innerHTML = embedSwfAltText;
		var so = new SWFObject("pluginDetect.swf", "pluginDetect", "0", "0", requiredFlashVersion, "#000", false);
		//so.useExpressInstall('expressinstall.swf');
		so.write(pDivId);
	};
function embedSSP(pDivId,pSwf,pXml,pW,pH){ // embed slideshowpro photo gallery
		var embedId = pDivId+"Embed";
		var w = (pW==undefined || pW==null)?"550" : pW;
		var h = (pH==undefined || pH==null)?"400" : pH;
		pSwf += (pSwf.indexOf(".swf")!=-1)?"":".swf";

		if (pXml.indexOf("images.php?album=")!=-1) { 
			pXml = pXml;
		}else if (pXml.indexOf(".xml")!=-1){
			pXml = pXml;
		}else{
			pXml += ".xml";
		}
		
		if (browser.nameCode=="ie"){
			var so = new SWFObject(pSwf+"?xmlfile="+pXml, embedId, w, h, requiredFlashVersion, "#fff", false);
		}else{
			var so = new SWFObject(pSwf, embedId, w, h, requiredFlashVersion, "#fff", false);
			so.addVariable("xmlfile", pXml);
		}
		so.addParam("allowScriptAccess", "sameDomain");
		so.addParam("wmode", "opaque");
		so.addParam("menu", "false");
		so.write(pDivId);
	};






/**--- 

MailChimp related --------------------------------------------------------------
	
	this file is included in the <head> of page templates
	
---**/
function doMailChimpSignUp(){
document.MailChimpForm.MERGE0.value = window.opener.document.MailChimpForm.MERGE0.value;
//alert("opener:"+window.opener.document.MailChimpForm.MERGE0.value);
//alert("popup:"+document.MailChimpForm.MERGE0.value);
window.opener.document.MailChimpForm.MERGE0.value="";
document.MailChimpForm.submit();
};
		
function submitMailChimpSignUp(_form){
//alert("opener self:"+document.MailChimpForm.MERGE0.value);
popWnd("mailchimp.html","MailChimpWin",660,540,true,false);
return false;
};
		
			
/**--- 

Misc --------------------------------------------------------------
	
	this file is included in the <head> of page templates
	
---**/
		




function popWnd(pUrl,pWndName,pW,pH,pScrolling,pResizing){
var scrolling = (pScrolling==false) ? "no" : "yes";

var resizing = (pResizing==false) ? "no" : "yes";
   
var popup=window.open(pUrl,pWndName,'width='+pW+',height='+pH+',scrollbars='+scrolling+',resizable='+resizing);
   popup.focus();
};		
			

