document.write('<link rel="icon" href="/favicon.ico"/>');
document.write('<link rel="apple-touch-icon" href="/favicon.ico"/>');
document.write('<link rel="shortcut icon" type="image/x-icon" href="favicon.ico"/> ');
document.write('<link rel="alternate" type="application/rss+xml" title="_S_Photography - Blog RSS Feed" href="http://antipodphotography.wordpress.com/feed/" /> ');
document.write('<meta name="verify-v1" content="158Db+mWrD4tI8hbwLqqO40vo7GDFxC4L79CBqsZGbg=" />');
//document.write('<link rel="stylesheet" href="main.css" type="text/css"/>');
//document.write('<link rel="stylesheet" href="gal.css" />');

function popup(url, nom) {
	window.open(url, nom, config='height=400, width=1000, toolbar=no, menubar=no, resizable=no, status=no, directories=no, location=no');
}

function  includefile(sURL) {
	var oRequest = new XMLHttpRequest();
	oRequest.open("GET",sURL,false);
	oRequest.setRequestHeader("User-Agent",navigator.userAgent);
	oRequest.send(null)
	if (oRequest.status==200) document.write(oRequest.responseText);
	else alert("Error executing XMLHttpRequest call!");
}

function  executefile(sURL) {
	var oRequest = new XMLHttpRequest();
	oRequest.open("GET",sURL,false);
	oRequest.setRequestHeader("User-Agent",navigator.userAgent);
	oRequest.send(null)
	if (oRequest.status==200) eval(oRequest.responseText);
	else alert("Error executing XMLHttpRequest call!");
}

function getParamValue(param,url)
{
	var u = url == undefined ? document.location.href : url;
	var reg = new RegExp('(\\?|&|^)'+param+'=(.*?)(&|$)');
	matches = u.match(reg);
	if(matches!=null && matches.length > 2)
		return matches[2] != undefined ? decodeURIComponent(matches[2]).replace(/\+/g,' ') : '';
	else
		return null;
}
