// Line about clicking thumbnails

if (top.location != self.location){
	top.location = self.location;
}

var mppTitle = document.title;
var mppTitleEnc = encodeURIComponent(document.title);
var mppUrl = location.href;
var mppUrlEnc = encodeURIComponent(location.href);
var mppDesc = '';
var mppDescEnc = encodeURIComponent(mppDesc);

function displayAudio(url, title, desc, audioUrl){ /* Display links & description of audio grabs plus audio player, mainly on Media/Radio pages */
	// url = URL of title link; could be an MP3 file or another web page entirely
	// title = title of the audio grab; usually the date, plus file size (if "url" is an mp3 file)
	// desc = Description of audio
	// audioUrl = direct link to MP3 file for the mp3 player to play. If this argument is missing, then mp3 player will not display
	document.write("<div class=\"transboxContainer\"><div class=\"transboxContent\"><b><a href=\""+url+"\">"+title+"</a></b><br />"+desc+"<br />");
	if(audioUrl!=undefined){
		document.write("<table style=\"padding: 5px 0 0 0;\"><tr><td valign=\"bottom\"><span class=\"mp3playerOnly\"><object type=\"application/x-shockwave-flash\" data=\""+pathRoot+"/lib/mp3player/player_mp3_maxi.swf\" width=\"200\" height=\"20\" style=\"z-index:0;\"><param name=\"movie\" value=\""+pathRoot+"/lib/mp3player/player_mp3_maxi.swf\" /><param name=\"bgcolor\" value=\"#222222\" /><param name=\"FlashVars\" value=\"mp3="+audioUrl+"&amp;showstop=1&amp;showvolume=1&amp;volumeheight=9&amp;volume=150&amp;loadingcolor=c0b0f0&amp;slidercolor1=cccccc&amp;slidercolor2=888888&amp;sliderovercolor=ffffff&amp;buttoncolor=cccccc&amp;buttonovercolor=ffffff\" /></object></span></td><td valign=\"bottom\"><a id=\"mp3Download\" style=\"vertical-align:middle;\" href=\""+audioUrl+"\" title=\"Right-click and choose Save Link As...\"><span>Download</span></a></td></tr></table>");
	}
	document.write("</div><div class=\"transboxBackground1\"></div></div>");
}

function audioPlayer(audioUrl){ /* Display audio player only */
	// audioUrl = direct link to MP3 file for the mp3 player to play. If this argument is missing, then mp3 player will not display
	document.write("<table style=\"padding: 5px 0;\"><tr><td valign=\"bottom\"><span class=\"mp3playerOnly\"><object type=\"application/x-shockwave-flash\" data=\""+pathRoot+"/lib/mp3player/player_mp3_maxi.swf\" width=\"200\" height=\"20\"><param name=\"movie\" value=\""+pathRoot+"/lib/mp3player/player_mp3_maxi.swf\" /><param name=\"bgcolor\" value=\"#222222\" /><param name=\"FlashVars\" value=\"mp3="+audioUrl+"&amp;showstop=1&amp;showvolume=1&amp;volumeheight=9&amp;volume=150&amp;loadingcolor=c0b0f0&amp;slidercolor1=cccccc&amp;slidercolor2=888888&amp;sliderovercolor=ffffff&amp;buttoncolor=cccccc&amp;buttonovercolor=ffffff\" /></object></span></td><td valign=\"bottom\"><a id=\"mp3Download\" style=\"vertical-align:middle;\" href=\""+audioUrl+"\" title=\"Right-click and choose Save Link As...\"><span>Download</span></a></td></tr></table>");
}

// Google+ button code
(function() {
	var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
	po.src = 'https://apis.google.com/js/plusone.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();


function displayShareAndSubscribe(highlight){ /* Displays SHARE icons like facebook and twitter AND Join Storm List button */
	// highlight = do NOT add highlight if 'highlight' has a value
	document.write("<table");
	if(highlight==undefined){
		document.write(" class=\"shareHighlight\" style=\"margin:10px 0;\"");
	}
	document.write("><tr><td align=\"left\" style=\"padding:0;\"><iframe src=\"http://www.facebook.com/plugins/like.php?app_id=173992336010782&amp;href="+mppUrl+"&amp;send=false&amp;layout=button_count&amp;width=80&amp;show_faces=false&amp;action=like&amp;colorscheme=dark&amp;font=tahoma&amp;height=21\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:80px; height:21px;\" allowTransparency=\"true\"></iframe></td><td style=\"padding:0 0 0 15px;\"><a href=\"https://twitter.com/share\" class=\"twitter-share-button\" data-count=\"horizontal\" data-via=\"MartyPouwelse\">Tweet</a><script type=\"text/javascript\" src=\"//platform.twitter.com/widgets.js\"></script></td><td style=\"padding:0 0 0 15px;\"><div class=\"g-plusone\" data-size=\"medium\"></div></td><td style=\"padding:0 0 0 5px;\"><script src=\"http://platform.linkedin.com/in.js\" type=\"text/javascript\"></script><script type=\"IN/Share\" data-counter=\"right\"></script></td><td style=\"padding:1px 0 0 20px;\"><a class=\"bStormList\" href='"+pathRoot+"notify/index.html'><span>Join Storm List</span></a></td></tr></table>");
}

function displayShare(highlight){ /* Displays social SHARE icons only - not JoinStormList */
	// highlight = do NOT add highlight if 'highlight' has a value
	document.write("<table");
	if(highlight==undefined){
		document.write(" class=\"shareHighlight2\" style=\"margin:10px 0;\"");
	}
	document.write("><tr><td align=\"left\"><div style=\"padding:0;\"><iframe src=\"http://www.facebook.com/plugins/like.php?app_id=173992336010782&amp;href="+mppUrl+"&amp;send=false&amp;layout=button_count&amp;width=70&amp;show_faces=false&amp;action=like&amp;colorscheme=dark&amp;font=tahoma&amp;height=21\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:70px; height:21px;\" allowTransparency=\"true\"></iframe></div></td><td style=\"padding:1px 0 0 20px; top:-1px;\"><a href=\"https://twitter.com/share\" class=\"twitter-share-button\" data-count=\"horizontal\" data-via=\"MartyPouwelse\">Tweet</a><script type=\"text/javascript\" src=\"//platform.twitter.com/widgets.js\"></script></td><td style=\"padding:1px 0 0 15px; top:-1px;\"><div class=\"g-plusone\" data-size=\"medium\"></div></td><td style=\"padding:0 0 0 5px;\"><script src=\"http://platform.linkedin.com/in.js\" type=\"text/javascript\"></script><script type=\"IN/Share\" data-counter=\"right\"></script></td></tr></table>");
}

function joinEmailList(){ /* Display Join Storm List button only */
	document.write("<a class=\"bStormList\" style=\"position:relative; top:4px;\" href='"+pathRoot+"/notify/index.html'><span>Join Storm List</span></a>");
}

function shareSmall(){ /* Just the four small old buttons for sharing: facebook, twitter, linked in & google - replaced mainly by respective widgets */
	document.write("<table><tr><td align=\"right\" width=\"130\"><small>Share: </small><span style=\"position:relative;top:-2px;\"><a rel=\"nofollow\" style=\"text-decoration:none;\" href=\"http://www.twitter.com\" onClick=\"window.open('http://www.twitter.com/home?status='+mppDesc+':+'+mppUrl); return false;\"><img src=\""+pathRoot+"/images/l-twitter.png\" title=\"Tweet this page\" alt=\"Tweet this page\" border=\"0\" align=\"absbottom\"></a>&nbsp;<a rel=\"nofollow\" style=\"text-decoration:none;\" href=\"http://www.facebook.com\" onClick=\"window.open('http://www.facebook.com/sharer.php?u='+mppUrlEnc+'&t='+mppTitleEnc,'sharer','toolbar=0,status=0,width=626,height=436');return false;\"><img src=\""+pathRoot+"/images/l-facebook.png\" title=\"Share this page on Facebook\" alt=\"Share this page on Facebook\" border=\"0\" align=\"absbottom\"></a>&nbsp;<a rel=\"nofollow\" style=\"text-decoration:none;\" href=\"http://www.linkedin.com\" onClick=\"window.open('http://www.linkedin.com/shareArticle?mini=true&amp;url='+mppUrlEnc+'&title='+mppTitleEnc+'&summary='+mppDescEnc);return false;\"><img src=\""+pathRoot+"/images/l-linkedin.png\" title=\"Share this page on LinkedIn\" alt=\"Share this page on LinkedIn\" border=\"0\" align=\"absbottom\"></a>&nbsp;<a href=\"http://www.google.com/coop/trust/add?user=004534642916609023737&amp;sig=__97Qe5V9SMB7qdue2CN_SZmOdeM0=\" target=\"_blank\"><img src=\""+pathRoot+"/images/l-google.png\" title=\"Add me to your Google searches\" alt=\"Add me to your Google searches\" border=\"0\" align=\"absbottom\"></a></span></td></tr></table>");
}



function adTopRight() { /* Generates Google code for ad which appears top-right - Google label: "Storm Chase 1" */
	document.write("<div class=\"roundEdges\" style=\"float:right;\"><script type=\"text/javascript\">google_ad_client = \"ca-pub-8017723549453615\"; google_ad_slot = \"6791328297\"; google_ad_width = 250; google_ad_height = 250;</script><script type=\"text/javascript\" src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\"></script></div>");
}





function boxBottomInsideStorm1(){ /* Stuff for bottom of page but inside StormReport div */
	document.write("<div class=\"highlight roundEdgesMore\" style=\"padding:20px; margin:10px 0; width:728px; text-align:center; margin-left:auto; margin-right:auto;\"><script type=\"text/javascript\">facebookComments1();</script><div style=\"padding:20px 0 0 0;\"><script type=\"text/javascript\">adBottom1();</script></div></div>");
}

function facebookComments1(){ /* For storm pages - javascript code required for this because of mppUrl variable is used */
	document.write("<div class=\"roundEdges\" style=\"width:727px; overflow:hidden; text-align:center; border:1px solid #444;\"><div id=\"fb-root\"></div><script>(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0]; if(d.getElementById(id)){return;} js=d.createElement(s); js.id=id; js.src=\"//connect.facebook.net/en_US/all.js#xfbml=1\"; fjs.parentNode.insertBefore(js,fjs);}(document,'script','facebook-jssdk'));</script><div class=\"fb-comments\" data-href=\""+mppUrl+"\" data-num-posts=\"20\" data-width=\"729\" data-colorscheme=\"dark\" style=\"margin:-1px 0 0 0;\"></div></div>");
}

function adBottom1(){ /* Generates Google code for ad which appears at bottom of page - Google label: "Riverfire 3" */
	document.write("<div><script type=\"text/javascript\">google_ad_client = \"ca-pub-8017723549453615\"; google_ad_slot = \"7460647314\"; google_ad_width = 728; google_ad_height = 90;</script><script type=\"text/javascript\" src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\"></script></div>");
}



function boxBottom1(){ /* Spare function that is called at the bottom of new storm pages OUTSIDE of the StormReport2 div */
}




function termsWindow(){
	document.write("hi there!");
}

function pathSymbol(){ /* Symbol used for path branches (breadcrumbs) */
	document.write(" &#187; ");
}

function displayE(){
	var eOne = "info";
	var eTwo = "martyphotography.com.au";
	var eSub = "Photography enquiry";

	document.write("<a href=\"mailto");
	document.write(":"+eOne+"@");
	document.write(eTwo+"?subject="+eSub+"\">"+eOne+"@"+eTwo+"<\/a>");
}

function thumbLine(){
	document.write("<span class=\"thumbTip\">Thumbnail images are clickable. Tip: when viewing large, use mouse wheel to scroll through, then click anywhere outside the image to exit.</span>");
}

function thumbLineShort(){
	document.write("Thumbnail images are clickable.");
}

function purchase1(){
	document.write("<span class='thumbTip'>For enquiries, call me on ");
	phoneNo();
	document.write(", email ");
	displayE();
	document.write(" or use <a href='"+pathRoot+"contact/index.html#contactform1'>this</a> form.<br />Images are available to <a href='"+pathRoot+"rates/index.html'>purchase</a>.</span>");
}

function phoneNo(){
	document.write("<b>0437 230 862</b>");
}

function homeBottom(){
	document.write("<small><p align='right'><a href='"+pathRoot+"index.html'>Home</a></p></small>");
}

function copyright(){
	document.write("<span class='copyright'><p align='center'>Web site &amp; all images contained herein © Marty Pouwelse<br />abn 22 165 489 701 | <a href='"+pathRoot+"terms.html' class='iframe'>Terms & conditions</a> | Optimised for <a href=\"http://www.mozilla.org/\" target=\"_blank\">Firefox</a></p><br /></span>");
}

function copyrightOld(){
	document.write("<span class='copyright'>Web site & all images contained herein<br />&copy; Marty Pouwelse.<br /><br /></span>");
}

function navBarTop(pathRoot){
	if (!pathRoot){
		pathRoot = '';
	}
	document.write("<div id='navBarTopContainer'><div id='navBarTop'><ul><li><a href='"+pathRoot+"index.html'>Home</a><ul class='subnav'><li><a href='"+pathRoot+"index-shoots.html'>Commissioned Shoots</a></li><li><a href='"+pathRoot+"index-stock.html'>Stock Photography</a></li></ul></li></ul><ul><li><a href='#' class='top_parent'>Services</a><ul class='subnav'><li><a href='"+pathRoot+"weddings/index.html'>Weddings</a><ul><li><a href='"+pathRoot+"weddings/blog.php'>Blog</a></li></ul></li><li><a href='"+pathRoot+"portraits/index.html'>Portraits</a></li><li><a href='"+pathRoot+"events/index.html'>Events</a></li><li><a href='"+pathRoot+"corporate/index.html'>Corporate</a></li><li><a href='"+pathRoot+"stock/index.html'>Stock Images</a></li><li><a href='"+pathRoot+"prints/index.html'>Photographic Prints</a></li></ul></li></ul><ul><li><a href='#' class='top_parent'>Galleries</a><ul><li><a href='"+pathRoot+"weddings/index.html'>Weddings</a></li><li><a href='"+pathRoot+"portraits/index.html'>Portraits</a></li><li><a href='"+pathRoot+"events/index.html'>Events</a></li><li><a href='"+pathRoot+"corporate/index.html'>Corporate</a></li><li><a href='"+pathRoot+"cityscapes/index.html'>Cityscapes</a></li><li><a href='"+pathRoot+"landscapes/index.html'>Landscapes</a></li><li><a href='"+pathRoot+"severeweather/gallery01.html'>Severe Weather</a><ul><li><a href='"+pathRoot+"severeweather/gallery01.html'>Gallery</a></li><li><a href='"+pathRoot+"severeweather/index.html'>Chase Reports</a><ul><li><a href='"+pathRoot+"severeweather/index2011-2012.html'>2011 / 2012</a><ul><li><a href='"+pathRoot+"severeweather/index2011-us.html'>USA May 2011</a></li></ul></li><li><a href='"+pathRoot+"severeweather/index2010-2011.html'>2010 / 2011</a></li><li><a href='"+pathRoot+"severeweather/index2009-2010.html'>2009 / 2010</a></li><li><a href='"+pathRoot+"severeweather/index2008-2009.html'>2008 / 2009</a></li><li><a href='"+pathRoot+"severeweather/index2007-2008.html'>2007 / 2008</a></li><li><a href='"+pathRoot+"severeweather/index2006-2007.html'>2006 / 2007</a></li><li><a href='"+pathRoot+"severeweather/index2005-2006.html'>2005 / 2006</a><ul><li><a href='"+pathRoot+"severeweather/darwin-dec2005.html'>Darwin Dec 2005</a></li></ul></li><li><a href='"+pathRoot+"severeweather/index2004-2005.html'>2004 / 2005</a></li><li><a href='"+pathRoot+"severeweather/index2003-2004.html'>2003 / 2004</a></li><li><a href='"+pathRoot+"severeweather/index2002-2003.html'>2002 / 2003</a></li><li><a href='"+pathRoot+"severeweather/index1999-2002.html'>1999 / 2002</a><ul><li><a href='"+pathRoot+"severeweather/darwin-dec2001.html'>Darwin Dec 2001</a></li></ul></li></ul></li></ul></li><li><a href='"+pathRoot+"riverfire/index.html'>Riverfire</a><ul><li><a href='"+pathRoot+"riverfire2011/index.html'>2011</a></li><li><a href='"+pathRoot+"riverfire2010/index.html'>2010</a></li><li><a href='"+pathRoot+"riverfire2009/index.html'>2009</a></li><li><a href='"+pathRoot+"riverfire2008/index.html'>2008</a></li><li><a href='"+pathRoot+"riverfire2007/index.html'>2007</a></li><li><a href='"+pathRoot+"riverfire2006/index.html'>2006</a></li><li><a href='"+pathRoot+"riverfire2005/index.html'>2005</a></li></ul></li><li><a href='"+pathRoot+"video/index.html'>Video</a></li><li><a href='"+pathRoot+"personal/index.html'>Personal</a><ul><li><a href='"+pathRoot+"images/2011-11-22/index.php'>You Gotta Come Back With Me!</a></li><li><a href='"+pathRoot+"images/2011-01-13/index.html'>Brisbane Floods 2011</a></li><li><a href='"+pathRoot+"images/2010-12-21/index.html'>Lunar Eclipse 21 Dec 2010</a></li><li><a href='"+pathRoot+"images/2010-04-03/index.html'>NSW Road Trip 2010</a></li><li><a href='"+pathRoot+"images/2009-09-23/index.html'>Brisbane Dust Storm 2009</a></li><li><a href='"+pathRoot+"images/2009-08-20/index.html'>Carnarvon Gorge 2009</a></li><li><a href='"+pathRoot+"images/2008-02-09/index.html'>Marty quits... 2008</a></li><li><a href='"+pathRoot+"images/2007-08-28/index.html'>Lunar Eclipse 28 Aug 2007</a></li><li><a href='"+pathRoot+"images/2006-10-25/index.html'>Holden Airship</a></li><li><a href='"+pathRoot+"tricyclingafrica/index.html'>Tri Cycling Africa</a></li><li><a href='"+pathRoot+"images/2005-07-15/index.html'>A Ride With the Roulettes</a></li></ul></li></ul></li></ul><ul><li><a href='"+pathRoot+"media/index.html'>Media</a><ul><li><a href='"+pathRoot+"media/print/index.html'>Print</a><ul><li><a href='"+pathRoot+"media/print/outbackcity/index.html'>The Amazing Chase</a></li></ul></li><li><a href='"+pathRoot+"media/tv/index.html'>TV</a></li><li><a href='"+pathRoot+"media/radio/index.html'>Radio</a></li></ul></li></ul><ul><li><a href='#' class='top_parent'>Social</a><ul><li><a href='http://www.flickr.com/photos/ozlandscapes/' target='_blank'>Flickr</a></li><li><a href='http://www.facebook.com/MartyPhotography' target='_blank'>Facebook</a></li><li><a href='http://twitter.com/MartyPouwelse' target='_blank'>Twitter</a></li></ul></li></ul><ul><li><a href='"+pathRoot+"rates/index.html'>Rates</a></li></ul><ul><li><a href='"+pathRoot+"blog/index.php' class='top_parent'>Blog</a><ul><li><a href='"+pathRoot+"weddings/blog.php'>Weddings</a></li><li><a href='"+pathRoot+"severeweather/index.html'>Storm Chases</a></li><li><a href='"+pathRoot+"media/print/outbackcity/index.html'>The Amazing Chase</a></li></ul></li></ul><ul><li><a href='"+pathRoot+"contact/index.html' class='top_parent'>Contact</a><ul><li><a href='"+pathRoot+"notify/index.html'>Be Notified</a></li><li><a href='"+pathRoot+"contact/index.html'>Contact</a></li><li><a href='"+pathRoot+"about/index.html'>About Me</a></li></ul></li></ul></div></div>");
}

