

function openWindow(url)
{
  window.open(url,"testing","width=620,height=400,toolbar=no,scrollbars=yes,resizable=yes");
}


function displayScreenInfo()
{
  alert("Screen Width: "+screen.width+" Screen Height: "+screen.height);
  //alert("AvailHeight: "+screen.availheight+" AvailWidth: "+screen.availwidth);
  //alert("pixdepth: "+screen.pixelDepth+" colordepth: "+screen.colorDepth);
}


function browserWindowWidth()
{
  // The actual screen width is gotten here.
  if (document.all) 
  {
    var screenWidth = document.body.offsetWidth;
  } 
  else if (document.layers) 
  {
    var screenWidth = window.innerWidth;
  }
  //alert ("ScreenWidth: "+screenWidth);
  return(screenWidth);
}



function AdorableDollClothesHeader()
{
  document.write("<br><br>");
  document.write("<div align='center'>");
  document.write("  <center>");
  document.write("  <table border='0' width=javascript:browserWindowWidth(); style='border-collapse: collapse' bordercolor='#111111' cellpadding='0' cellspacing='0'>");
  document.write("    <tr>");
  document.write("      <td width='100%' align='center'>");
  document.write("        <p align='center'><font color='#FF0080' size='7' face='Monotype Corsiva'>");
  document.write("          <b>Adorable Doll Clothes</b></font><br>");
  document.write("          <a href='http://www.adorabledollclothes.com'>");
  document.write("            <img src='http://www.AdorableDollClothes.com/gifs/grapvine.gif' width='507' height='24' border='0'");
  document.write("            alt='Shop AdorableDollClothes.com for Adorable doll clothes to fit most 12-24 inch dolls such as the American Girl®, Baby Alive®, Bitty Baby®, Cabbage Patch®, Corolle®, Gotz®, Lee Middleton®, Little Mommy®, Lizzi®, Madame Alexander®, My Twinn®, Little Huggums®, Little Snookums® and Zapf Chou Chou® dolls.'>");
  document.write("          </a>");
  document.write("        </p>");
  document.write("      </td>");
  document.write("    </tr>");
  document.write("  </table>");
  document.write("  </center>");
  document.write("</div>");
}

function AdorableDollClothesCounter()
{	
  document.write("<!-- Start of StatCounter Code -->");
  document.write("<script type='text/javascript' language='javascript'>");
  document.write("  var sc_project=877016;"); 
  document.write("  var sc_invisible=0;"); 
  document.write("  var sc_partition=7;"); 
  document.write("  var sc_security='61a44df0';"); 
  document.write("</script>");
  document.write("<script type='text/javascript' language='javascript' src='http://www.statcounter.com/counter/counter.js'></script>");
  document.write("  <noscript><a href='http://www.statcounter.com/' target='_blank'>");
  document.write("    <img  src='http://c8.statcounter.com/counter.php?sc_project=877016&amp;java=0&amp;security=61a44df0&amp;invisible=0' alt='counter hit make' border='0'></a>");
  document.write("  </noscript>");
  document.write("<!-- End of StatCounter Code -->");
}

function AdorableDollClothesEmail()
{	
 var name = "info";
 var domain = "adorabledollclothes.com";
 return (name + "@" + domain);
}


function WM_scaleFont(targetSize, initialFontSize, fontUnit) 
{
/*
WM_scaleFont()
Author: Taylor
Author Email: taylor@wired.com
Author URL: http://www.taylor.org/
Package URL: http://www.hotwired.com/webmonkey/

WM_scaleFont() scales the fonts on the page depending on 
the width of the window. It's very useful for creating a 
page that's designed to fit within a window without scrolling. 
For the whole effect to work well, use relative units 
(em, ex, %) for all your CSS positioning and for 
image and DIV sizes.

Usage: Internet Explorer requires the body tag to be loaded 
before you can determine the width, and Netscape needs to call 
the function in the head to write out the style tag. So you 
need to insert two calls: one in a script tag in the head, 
after any style sheets, and the other in a script tag right 
after the body. 
*/

  // This checks for the existence of the document objects and 
  // properties where we store the passed variables.
  if (typeof document.WM == 'undefined'){
    document.WM = new Object;
  }
  if (typeof document.WM.WM_scaleFont == 'undefined') {
    document.WM.WM_scaleFont = new Object;
    document.WM.WM_scaleFont.screenTarget = targetSize;
    document.WM.WM_scaleFont.targetBodyFontSize = initialFontSize;
    document.WM.WM_scaleFont.fontUnit = fontUnit;
  }
  // The actual screen width is gotten here.
  if (document.all) {
    var screenWidth = document.body.offsetWidth;
  } else if (document.layers) {
    var screenWidth = window.innerWidth;
  }
  // This one line is the core of the routine. It takes the 
  // targeted font size and divides it by the actual width 
  // times the targeted width.
  var scaledFont = parseInt(document.WM.WM_scaleFont.targetBodyFontSize) * (screenWidth / document.WM.WM_scaleFont.screenTarget);
  // Now this new font size is applied to the body. 
  // For IE, it changes the body's style declaration and 
  // sets things up such that on resize this function is 
  //called again. For Netscape, it writes out a style tag 
  // in the head, and then depends on WM_netscapeCssFix() 
  // to reload the page if it's been resized. 
  if (document.all) {
    document.body.style.fontSize = scaledFont + document.WM.WM_scaleFont.fontUnit;
    window.onresize = WM_scaleFont;
  } else if(document.layers) {
    var netscapeScaleReturn = '<style type="text/css">\nBODY {font-size: ' + scaledFont + document.WM.WM_scaleFont.fontUnit + '}\n</style>';
    document.writeln(netscapeScaleReturn);
  }
}


function InternationalDelivery()
{
  document.write("	<div class='deliveryBox'>");
  document.write("		<a href='http://www.adorabledollclothes.com/international.htm'>For Orders Shipped OUTSIDE the United States Click here </a>");
  document.write("	</div>");
  document.write("	<br/>");
}


function PageFooter()
{
  document.write("	<blockquote>");      
  document.write("		<p align='center' class='bigPinkFont'>");
  document.write("			ORDERS SHIPPED DAILY VIA USPS Priority Mail<br>");
  document.write("		ALLOW 2 - 5 DAYS DELIVERY</p>");
  document.write("	</blockquote>"); 

  document.write("	<blockquote>");
  document.write("		<table align='center' width='385' border='0' cellspacing='0' cellpadding='0'>");
  document.write("			<tr valign='baseline'>");
  document.write("				<td width='118' align='left' class='bigPinkFont'>Shipping</td>");
  document.write("				<td width='267' align='left' class='blueFont'>$6.95 all orders up to $99.99</td>");
  document.write("			</tr>");
  document.write("			<tr valign='top'>");
  document.write("				<td align='left' class='bigPinkFont'> Charges</td>");
  document.write("				<td align='left' class='blueFont'>$12.95 all orders $100.00 to $199.99</td>");
  document.write("			</tr>");
  document.write("		</table>");
  document.write("	</blockquote>");
  document.write("	<br/>");

  //document.write("	<div class='deliveryBox'>");
  //document.write("		<a href='http://www.adorabledollclothes.com/expressmail.htm'>Click here for Express Delivery</a>");					
  //document.write("	</div>");
 // document.write("	<br/>");

  document.write("	<table width='730'>");
  document.write("		<tr>");
  document.write("			<td class='bigPinkRoman' colspan='5' align='center'>");
  document.write("				<a name='ordering'>Use our secure PayPal Shopping Cart to place your order!</a><br><br>");
  document.write("				<a href='https://www.paypal.com/cgi-bin/webscr?cmd=_registration-run' target='_blank'><img src='gifs/logo1.gif' BORDER='0' ALT='Make payments with PayPal - it's fast, free and secure!' width='468' height='60'></A>");
  document.write("				<p>");
  document.write("				<!-- Begin Official PayPal Seal -->");
  document.write("				<a href='https://www.paypal.com/' target='_blank'>");
  document.write("				<img src='gifs/verification_seal.gif' border='0' alt='Official PayPal Seal'></a>");
  document.write("				<!-- End Official PayPal Seal -->");
  document.write("				<a href='http://www.paypal.com/cgi-bin/webscr?cmd=_security-center-outside'>");
  document.write("				<img border='0' src='gifs/security.gif' width='240' height='112' alt='Secure transactions hosted by PayPal'></a>");
  document.write("				</p>");
  document.write("			</td>");
  document.write("		</tr>");
  document.write("		<tr>");
  document.write("			<td colspan='5' align='center' class='pinkAriel3'>");
  document.write("				<p>");
  document.write("					<br>");
  document.write("					Please allow 2 to 5 days for delivery of your Adorable Doll Clothes and doll accessories.");
  document.write("					<br>");
  document.write("                  <span class='pinkFont'>Adorable Doll Clothes are handmade in the U.S.A.</span>");
  document.write("					<br>");
  document.write("					<span class='blueFont'>100% Satisfaction guaranteed.</span>");
  document.write("					<br>");
  document.write("					<span class='blueFont'>This is an online doll clothes store, catalogs are not available.</span>");
  document.write("				</p>");
  document.write("			</td>");
  document.write("		</tr>");
  document.write("	</table>");				 
  document.write("	<br />");
  
  document.write("	<br />");
  document.write("	<table>");
  document.write("		<tr>");
  document.write("			<td>");
  document.write("			  <blockquote>");
  document.write("			    <p class='pinkAriel2'>Products from this website may contain small parts which may not be suitable for children ages 3 years and younger.</p>"); 
  document.write("			  </blockquote>");
  document.write("			</td>");
  document.write("		</tr>");
  document.write("	</table>");
  document.write("	<br />");  
  
  document.write("	<table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' width='730'>");
  document.write("		<tr>");
  document.write("			<td class='redFont'>");
  document.write("				<ul>");
  document.write("					<lh><span class='bigPinkFont'><a name='contact'>Contact Information:</a></span></lh>");
  document.write("					<li>Adorable Doll Clothes</li>");
  document.write("					<li>1140 Hickory Level Road</li>");
  document.write("					<li>Villa Rica, GA 30180</li>");
				                      var myEmail = AdorableDollClothesEmail();
  document.write("                  <li>Email:&nbsp;&nbsp;<a href='mailto:" + myEmail + "'>" + myEmail + "</a></li>");
  document.write("				</ul>");
  document.write("			</td>");
  document.write("		</tr>");
  document.write("	</table>");
	
  document.write("	<br/><br/><br/>");

  document.write("	<table width='730' align='center'>");
  document.write("		<tr>");
  document.write("			<td class=actionlink align='center'>");
  document.write("				<a title='Click here to return to AdorableDollClothes.Com' href='http://www.adorabledollclothes.com'>Home</a>");
  document.write("				<span class='divider'><img src='gifs/heart.gif' align='absmiddle'></span>");
  document.write("				<a title='Click here to view your shopping cart.' href=javascript:PayPalViewCartPopUp();>View Cart</a>");
  document.write("				<span class='divider'><img src='gifs/heart.gif' align='absmiddle'></span>");
  document.write("				<a title='Click here to checkout.' href=javascript:PayPalViewCartPopUp();>Checkout</a>");    
  document.write("			</td>");
  document.write("		</tr>");
  document.write("	</table>");
  document.write("	<br /><br />");    
}




function DynoPageFooter(useDynamicLink)
{
  document.write("	<blockquote>");      
  document.write("		<p align='center' class='bigPinkFont'>");
  document.write("			ORDERS SHIPPED DAILY VIA USPS Priority Mail<br>");
  document.write("		ALLOW 2 - 5 DAYS DELIVERY</p>");
  document.write("	</blockquote>"); 

  document.write("	<blockquote>");
  document.write("		<table align='center' width='385' border='0' cellspacing='0' cellpadding='0'>");
  document.write("			<tr valign='baseline'>");
  document.write("				<td width='118' align='left' class='bigPinkFont'>Shipping</td>");
  document.write("				<td width='267' align='left' class='blueFont'>$6.95 all orders up to $99.99</td>");
  document.write("			</tr>");
  document.write("			<tr valign='top'>");
  document.write("				<td align='left' class='bigPinkFont'> Charges</td>");
  document.write("				<td align='left' class='blueFont'>$12.95 all orders $100.00 to $199.99</td>");
  document.write("			</tr>");
  document.write("		</table>");
  document.write("	</blockquote>");
  document.write("	<br/>");

  document.write("	<table width='730'>");
  document.write("		<tr>");
  document.write("			<td class='bigPinkRoman' colspan='5' align='center'>");
  document.write("				<a name='ordering'>Use our secure PayPal Shopping Cart to place your order!</a><br><br>");
  document.write("				<a href='https://www.paypal.com/cgi-bin/webscr?cmd=_registration-run' target='_blank'><img src='gifs/logo1.gif' BORDER='0' ALT='Make payments with PayPal - it's fast, free and secure!' width='468' height='60'></A>");
  document.write("				<p>");
  document.write("				<!-- Begin Official PayPal Seal -->");
  document.write("				<a href='https://www.paypal.com/' target='_blank'>");
  document.write("				<img src='gifs/verification_seal.gif' border='0' alt='Official PayPal Seal'></a>");
  document.write("				<!-- End Official PayPal Seal -->");
  document.write("				<a href='http://www.paypal.com/cgi-bin/webscr?cmd=_security-center-outside'>");
  document.write("				<img border='0' src='gifs/security.gif' width='240' height='112' alt='Secure transactions hosted by PayPal'></a>");
  document.write("				</p>");
  document.write("			</td>");
  document.write("		</tr>");
  document.write("		<tr>");
  document.write("			<td colspan='5' align='center' class='pinkAriel3'>");
  document.write("				<p>");
  document.write("					<br>");
  document.write("					Please allow 2 to 5 days for delivery of your Adorable Doll Clothes and doll accessories.");
  document.write("					<br>");
  document.write("                  <span class='pinkFont'>Adorable Doll Clothes are handmade in the U.S.A.</span>");
  document.write("					<br>");
  document.write("					<span class='blueFont'>100% Satisfaction guaranteed.</span>");
  document.write("					<br>");
  document.write("					<span class='blueFont'>This is an online doll clothes store, catalogs are not available.</span>");
  document.write("				</p>");
  document.write("			</td>");
  document.write("		</tr>");
  document.write("	</table>");				 
  document.write("	<br />");
  
  document.write("	<br />");
  document.write("	<table>");
  document.write("		<tr>");
  document.write("			<td>");
  document.write("			  <blockquote>");
  document.write("			    <p class='pinkAriel2'>Products from this website may contain small parts which may not be suitable for children ages 3 years and younger.</p>"); 
  document.write("			  </blockquote>");
  document.write("			</td>");
  document.write("		</tr>");
  document.write("	</table>");
  document.write("	<br />");  
  
  document.write("	<table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' width='730'>");
  document.write("		<tr>");
  document.write("			<td class='redFont'>");
  document.write("				<ul>");
  document.write("					<lh><span class='bigPinkFont'><a name='contact'>Contact Information:</a></span></lh>");
  document.write("					<li>Adorable Doll Clothes</li>");
  document.write("					<li>1140 Hickory Level Road</li>");
  document.write("					<li>Villa Rica, GA 30180</li>");
				                      var myEmail = AdorableDollClothesEmail();
  document.write("                  <li>Email:&nbsp;&nbsp;<a href='mailto:" + myEmail + "'>" + myEmail + "</a></li>");
  document.write("				</ul>");
  document.write("			</td>");
  document.write("		</tr>");
  document.write("	</table>");
	
  document.write("	<br/><br/><br/>");

  document.write("	<table width='730' align='center'>");
  document.write("		<tr>");
  document.write("			<td class=actionlink align='center'>");
  document.write("				<a title='Click here to return to AdorableDollClothes.Com' href='http://www.adorabledollclothes.com'>Home</a>");
  document.write("				<span class='divider'><img src='gifs/heart.gif' align='absmiddle'></span>");
  
  if (useDynamicLink)
  {
    document.write("<a title='Click here to view your shopping cart.'");
    document.write("href='#' onClick='myPayPalViewCartPopUp();'");                
    document.write(">View Cart</a>");
  }
  else
  {  
     document.write("<a title='Click here to view your shopping cart.' href=javascript:PayPalViewCartPopUp();>View Cart</a>");
  }
    
  document.write("				<span class='divider'><img src='gifs/heart.gif' align='absmiddle'></span>");
  
  if (useDynamicLink)
  {
    document.write("<a title='Click here to checkout.'");
    document.write("href='#' onClick='myPayPalViewCartPopUp();'");                
    document.write(">Checkout</a>");  
  }
  else
  {
     document.write("<a title='Click here to checkout.' href=javascript:PayPalViewCartPopUp();>Checkout</a>");  
  }
       
  document.write("			</td>");
  document.write("		</tr>");
  document.write("	</table>");
  document.write("	<br /><br />");    
}


function CompanyInfo()
{
  document.write("	<br /><br />");    
  document.write("	<table align='center'>");
  document.write("		<tr>");
  document.write("			<td class='pinkAriel4' align='center'>");
  document.write("	          ADORABLE DOLL CLOTHES&nbsp; &middot; 1140 HICKORY LEVEL ROAD&nbsp; &middot; VILLA RICA, GA 30180");
  document.write("			</td>");
  document.write("		</tr>");
  document.write("		<tr>");
  document.write("			<td class='txtFooter' align='center'>");
  document.write("			  Copyright &copy; 1999 - 2010&nbsp; Adorable Doll Clothes,&nbsp; All rights reserved");
  document.write("			</td>");
  document.write("		</tr>");
  document.write("	</table>");
}
