
<!--
function MM_preloadimages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadimages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function mainnav (section) {
	if (section == "what") {state_what = "TopMenu_select_11.gif";}else{state_what = "TopMenu_11.gif";} 
	if (section == "shop") {state_shop = "TopMenu_select_12.gif";}else{state_shop = "TopMenu_12.gif";} 
	if (section == "samples") {state_samples = "TopMenu_select_13.gif";}else{state_samples = "TopMenu_13.gif";} 
	if (section == "events") {state_events = "TopMenu_select_14.gif";}else{state_events = "TopMenu_14.gif";}
	if (section == "stories") {state_stories = "TopMenu_select_15.gif";}else{state_stories = "TopMenu_15.gif";}  
	if (section == "wg") {state_wg = "TopMenu_select_16.gif";}else{state_wg = "TopMenu_16.gif";}
	if (section == "contact") {state_contact = "TopMenu_select_17.gif";}else{state_contact = "TopMenu_17.gif";} 
	if (section == "cart") {state_cart = "TopMenu_select_18.gif";}else{state_cart = "TopMenu_18.gif";} 
	
	
	document.write("<table width='647' border='0' cellpadding='0' cellspacing='0'><tr>");
	

document.write("<td valign='top'> <div align='left'><a href='whats_graffiti.php' onMouseOut='MM_swapImgRestore()' onMouseOver=\"MM_swapImage('what','','images/TopMenu_over_11.gif',1)\"><img src='images/"+state_what+"' alt='What is Graffiti?' name='what' border='0'></a></div></td>");
	
document.write("<td valign='top'> <div align='left'><a href='store_wedding_landing.php' onMouseOut='MM_swapImgRestore()' onMouseOver=\"MM_swapImage('shop','','images/TopMenu_over_12.gif',1)\"><img src='images/"+state_shop+"' alt='Shop' name='shop' border='0'></a></div></td>");
	
document.write("<td valign='top'> <div align='left'><a href='what_sample.php' onMouseOut='MM_swapImgRestore()' onMouseOver=\"MM_swapImage('samples','','images/TopMenu_over_13.gif',1)\"><img src='images/"+state_samples+"' alt='samples' name='samples' border='0'></a></div></td>");
	
document.write("<td valign='top'> <div align='left'><a href='wgw_events.php' onMouseOut='MM_swapImgRestore()' onMouseOver=\"MM_swapImage('events','','images/TopMenu_over_14.gif',1)\"><img src='images/"+state_events+"' alt='Events' name='events' border='0'></a></div></td>");

document.write("<td valign='top'> <div align='left'><a href='wgw_stories.php' onMouseOut='MM_swapImgRestore()' onMouseOver=\"MM_swapImage('stories','','images/TopMenu_over_15.gif',1)\"><img src='images/"+state_stories+"' alt='Stories' name='stories' border='0'></a></div></td>");
	
document.write("<td valign='top'> <div align='left'><a href='http://www.wonderfulgraffiti.com/' target=\"new\" onMouseOut='MM_swapImgRestore()' onMouseOver=\"MM_swapImage('wg','','images/TopMenu_over_16.gif',1)\"><img src='images/"+state_wg+"' alt=Wonderful Graffiti' name='wg' border='0'></a></div></td>");

document.write("<td valign='top'> <div align='left'><a href='wgw_contact.php' onMouseOut='MM_swapImgRestore()' onMouseOver=\"MM_swapImage('contact','','images/TopMenu_over_17.gif',1)\"><img src='images/"+state_contact+"' alt='Contact Us' name='contact' border='0'></a></div></td>");
	
document.write("<td valign='top'> <div align='left'><a href='public_store.php?where=invoice' onMouseOut='MM_swapImgRestore()' onMouseOver=\"MM_swapImage('cart','','images/TopMenu_over_18.gif',1)\"><img src='images/"+state_cart+"' alt='My Cart' name='cart' border='0'></a></div></td>");
	

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

function subnav (section, page) {
	if (section == "what") {
		if (page == "demo") {state_demo = "boldtxton";} else {state_demo = "boldtxt";}
		if (page == "faqs") {state_faqs = "boldtxton";} else {state_faqs = "boldtxt";}
		if (page == "pricing") {state_pricing = "boldtxton";} else {state_pricing = "boldtxt";}
		if (page == "sample") {state_sample = "boldtxton";} else {state_sample = "boldtxt";}
		if (page == "info") {state_info = "boldtxton";} else {state_info = "boldtxt";}
		
		document.write("<a href='what_info.html' class='"+state_info+"'>Product Info</a><br>");
		document.write("<a href='what_demo.html' class='"+state_demo+"'>Demo</a><br>");
		document.write("<a href='what_faqs.html' class='"+state_faqs+"'>FAQs</a><br>");
		document.write("<a href='what_pricing.html' class='"+state_pricing+"'>Pricing</a><br>");
		document.write("<a href='what_sample.php' class='"+state_sample+"'>Request a Sample</a><br>");
		
	} else if (section == "about") {
		if (page == "newsletter") {state_newsletter = "boldtxton";} else {state_newsletter = "boldtxt";}
		if (page == "press") {state_press = "boldtxton";} else {state_press = "boldtxt";}
		if (page == "guarantee") {state_guarantee = "boldtxton";} else {state_guarantee = "boldtxt";}
		if (page == "contact") {state_contact = "boldtxton";} else {state_contact = "boldtxt";}
		if (page == "media") {state_media = "boldtxton";} else {state_media = "boldtxt";}
		
		//document.write("<a href='aboutus_newsletter.html' class='"+state_newsletter+"'>Letter from Mary (updated 12/21/04)</a><br>");
		document.write("<a href='http://homepage.mac.com/mmcphail/blogwavestudio/' target='new' class='"+state_newsletter+"'>Mary's Blog</a><br>");
		document.write("<a href='aboutus_press.html' class='"+state_press+"'>Press Room</a><br>");
		document.write("<a href='aboutus_guarantee.html' class='"+state_guarantee+"'>Our Guarantee</a><br>");
		document.write("<a href='aboutus_contact.html' class='"+state_contact+"'>Contact Us</a><br>");
		document.write("<a href='aboutus_media.html' class='"+state_media+"'>Media Kit</a><br>");
	}
}

function show() {
stra = window.location.search.substr(1).split("&"); 
where = stra[0].split("=");
return where[1];
}


function changeIt()
{
	// Ref: http://www.quirksmode.org/dom/changess.html
	if (!document.styleSheets) return;
	var theRules = new Array();
	if (document.styleSheets[1].cssRules)
		theRules = document.styleSheets[1].cssRules
	else if (document.styleSheets[1].rules)
		theRules = document.styleSheets[1].rules
	else return;
	theRules[theRules.length-1].style.backgroundColor = 'transparent';
	//document.styleSheets[0].previewTable.style.setProperty('background','#00cc00',null);
}





function get_preview(font_size) {

	newText = document.createfrm.gtext.value; 
	var re = new RegExp ('\n', 'gi') ;
	var newText = newText.replace(re, 'chr(13)') ;
	//$text=wordwrap($text,$wrappos,"\n\r",0);
	
	newCredit = document.createfrm.qcredit.value;
	
	newBgColor = document.createfrm.bgColor.value; 
	newBgColor = newBgColor.substring(1, newBgColor.length); 

	newTextColor = document.createfrm.textColor.value; 
	newTextColor = newTextColor.substring(1, newTextColor.length); 
	
	newgwidth = document.createfrm.gwidth.value; 
	newgheight = document.createfrm.gheight.value; 
	
	newImg = 'phpimage.php?text='+newText+'   &font_file=' + document.createfrm.font.options[document.createfrm.font.selectedIndex].value + '&font_size='+ font_size +'&font_color='+ newTextColor +'&background_color=' + newBgColor; 
	document.preview.src = newImg;
	
}

//-->
