// Javascript file for dakota web pages 

// variables for add_this
addthis_pub='dakotaboo'; 
addthis_logo='http://www.dakotaboo.com/images/favicon.ico';
addthis_logo_background='FFFFDD';
addthis_logo_color='0000FF';
addthis_brand='www.dakotaboo.com';
addthis_options='favorites, email, digg, delicious, myspace, facebook, google, live, twitter, more';

function is1 (image,orient,title)
// set window size for opening up thumbnail postcards dependent on orientation of card (portrait or landscape) and add title

{
 if (orient=="p")
 {
  w=380;
  h=540;
 }
 else
 {
  w=540;
  h=400;
 }
 
// open new window, adding image, title and close button
 pcardWin = window.open(image,'','top=200,left=180,width='+w+',height='+h+'');
 pcardWin.document.write('<html><head><title>'+title+'</title></head>');  
 pcardWin.document.write('<body><img src="'+image+'" alt="'+title+'" />');
 pcardWin.document.write('<form action="../"><input type="button" value="Close window" onclick="window.close()";return false />');
 pcardWin.document.write('</form></body></html>');
 pcardWin.document.write('</html>');
 pcardWin.document.close();
 
 return false;
}


