// JavaScript Document
// misc. javascripts used on various pages throughout the consulting site



// this draws a speech bubble around a quote, so it looks like a quote

function drawSpeechBubble (bubbleQuote, bubbleSource, bubbleLink) {
	document.write('<br><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>');
	document.write('<td width="1"><img src="../images/speechBubble_tl.gif"></td>');
	document.write('<td width="1" background="../images/speechBubble_t.gif"></td>');
	document.write('<td background="../images/speechBubble_t.gif"></td>');
	document.write('<td width="1"><img src="../images/speechBubble_tr.gif"></td>');
	document.write('</tr><tr><td width="1" background="../images/speechBubble_l.gif"></td>');
	document.write('<td colspan="2" valign="middle" align="left" bgcolor="#fafafa">');
	document.write(bubbleQuote);
	document.write('</td><td width="1" background="../images/speechBubble_r.gif"></td>');
	document.write('</tr><tr><td width="1" valign="top" align="left" rowspan="2">');
	document.write('<img src="../images/speechBubble_bl.gif"></td><td width="1" valign="top" align="left" rowspan="2">');
	document.write('<img src="../images/speechBubble_tip.gif"></td><td background="../images/speechBubble_b.gif"></td>');
	document.write('<td><img src="../images/speechBubble_br.gif"></td></tr><tr>');
	document.write('<td valign="middle" align="left" width="100%">');
				   
	if (bubbleLink != "null") {		   
		
	document.write('<A href="');
	document.write(bubbleLink);
	document.write('" target="_blank">');
	document.write(bubbleSource);
	document.write('</A>');

	} else {

	document.write(bubbleSource);

	}
				   
	document.write('</td><td></td></tr></table>');

}



// this is the default page footer (without buttons) when a unique one isn't required

function drawFooter (footerText) {
	
	document.write('<HR size="1" color="cccccc" noshade="yes"><P>&nbsp;</P>');
	document.write('<DIV align="center"><H1>WE&nbsp;NEVER&nbsp;FAIL <FONT color="FF6600">');
	document.write('&amp;&nbsp;NEITHER&nbsp;WILL&nbsp;YOU.</FONT></H1><p>');
	
	if (footerText != undefined) {
		
		document.write(footerText);
		
	} else {

		document.write('For more information on how SQL Power can ');
		document.write('help you use your data to reduce cost, improve productivity and ');
		document.write('make better-informed business decisions, contact us today at ');
		document.write('<A href= "mailto:info@sqlpower.ca">info@sqlpower.ca</A> ');
		document.write('or <B>1&#8209;866&#8209;SQL&#8209;POWR.</B>');
		
	}

	document.write('</p><p>&nbsp;</p></DIV>');
	
}


//this is the default page footer (with buttons) when a unique one isn't required

function drawFooterButtons (topic, action) {
	
	if (topic == undefined) {
		topic = "SQL+Power+Consulting";
	}
	
	if (action == undefined) {
		action = "Get Started";
	}
	
	document.write('<HR size="1" color="cccccc" noshade="yes"><P>&nbsp;</P>');
	document.write('<DIV align="center"><H1>WE&nbsp;NEVER&nbsp;FAIL <FONT color="FF6600">');
	document.write('&amp;&nbsp;NEITHER&nbsp;WILL&nbsp;YOU.</FONT></H1><p>');
	document.write('For more information on how SQL Power can ');
	document.write('help you use your data to reduce cost, improve productivity and ');
	document.write('make better-informed business decisions, contact us today at ');
	document.write('<A href= "mailto:info@sqlpower.ca">info@sqlpower.ca</A> ');
	document.write('or <B>1&#8209;866&#8209;SQL&#8209;POWR.</B></p>');
	
	document.write('<table cellpadding="10" cellspacing="0" border="0"><tr><td class="bottomLinks"><A href="info?topic=');
	
	document.write(topic);
	
	document.write('"><IMG src="../images/bb/button-start-off.gif" border="0" id="footerstart" onmouseover="MM_swapImage(');
	document.write('\'footerstart\',\'\',\'../images/bb/button-start-on.gif\',1)" onmouseout="MM_swapImgRestore()" ');
	document.write('alt="Get Started"><br>');
	
	document.write(action);
	
	document.write('</A></td></tr></table>');

	document.write('</DIV>');
	
}




// these are elements of the methodology section that get repeated on every page

function drawMethodologyFooter () {
	
	document.write('<HR size="1" color="cccccc" noshade="yes"><P>&nbsp;</P>');
	document.write('<DIV align="center"><H1>WE NEVER FAIL <FONT color="FF6600">&amp; ');
	document.write('NEITHER WILL YOU.</FONT></H1>');
	document.write('<p>For more information on SQL Power Data Warehouse Methodology, ');
	document.write('contact us today at <A href="mailto:info@sqlpower.ca?subject=Methodology">info@sqlpower.ca</A> '); 
	document.write('or<B>1&#8209;866&#8209;SQL&#8209;POWR.</B></p>');
	document.write('<table cellpadding="10" cellspacing="0" border="0"><tr><td class="bottomLinks">');
	document.write('<A href="info?topic=Data+Warehouse+Methodology"><IMG src="../images/bb/button-start-off.gif" ');
	document.write('border="0" id="start" onmouseover="MM_swapImage(\'start\',\'\',\'../images/bb/button-start-on.gif\',1)" '); 
	document.write('onmouseout="MM_swapImgRestore()" alt="Get Started"><br>Get Started</A></td>');
	document.write('<td class="bottomLinks"><A href="mailto:info@sqlpower.ca?subject=Data Warehouse Methodology">');
	document.write('<IMG src="../images/bb/button-email-off.gif" border="0" id="email" ');
	document.write('onmouseover="MM_swapImage(\'email\',\'\',\'../images/bb/button-email-on.gif\',1)" '); 
	document.write('onmouseout="MM_swapImgRestore()" alt="Email Us"><br>Email Us</A></td></tr></table></DIV>');
	
}

function drawMethodologyMenu () {
	
	document.write('<div class="leftMenuBubble">');
	document.write('<div id="leftmenuTitle">Methodology</div><A href="data-warehouse-methodology">0. Summary</A><br>');
	document.write('<A href="data-warehouse-methodology-vision">1. BI Vision</A><br><a href="data-warehouse-methodology-scope">2. Scope</a><br>');
	document.write('<a href="data-warehouse-methodology-architect">3. Architect</a><br><a href="data-warehouse-methodology-build">4. Build</a><br>');
	document.write('<a href="data-warehouse-methodology-test">5. Test</a><br><a href="data-warehouse-methodology-deploy">6. Deploy</a><br>');
	document.write('<a href="data-warehouse-methodology-support">7. Support</a><br><a href="data-warehouse-methodology-project-management">8. Project Mgmt</a></div>');
	document.write('<p><A href="info?topic=DW+Methodology"><IMG src="../images/bb/button-start-off.gif" border="0" ');
	document.write('id="pad" onmouseover="MM_swapImage(\'pad\',\'\',\'../images/bb/button-start-on.gif\',1)" '); 
	document.write('onmouseout="MM_swapImgRestore()" alt="Learn More"><br>Learn More</A></p>');
	document.write('<p><A href="../documents/methodology_summary2011.pdf"><IMG src="../images/bb/button-doc-off.gif" ');
	document.write('border="0" id="pad2" onmouseover="MM_swapImage(\'pad2\',\'\',\'../images/bb/button-doc-on.gif\',1)" '); 
	document.write('onmouseout="MM_swapImgRestore()" alt="Data Warehouse Methodology Summary PDF"><br>');
	document.write('Methodology Summary [PDF]</A></p><P>&nbsp;</P>');
	document.write('<P><i>This is only an Introduction to the SQL&nbsp;Power Data Warehouse Methodology. ');
	document.write('The full version is available to all SQL Power clients.</i></P></div><P>&nbsp;</P>');

}











