<!-- 
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_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 checkPostcode()
{
if(document.getElementById('storelocator_search').value=="" || document.getElementById('storelocator_search').value=="Enter your postcode")
alert("Please select a postcode")
else
document.location.href='store-locator.aspx?pageid=137&postcode='+document.getElementById('storelocator_search').value
}
function checkRegion()
{
if(document.getElementById('storeregion_search').value=="")
alert("Please select a region")
else
document.location.href='store-locator.aspx?pageid=137&Region='+document.getElementById('storeregion_search').value
}
function getBanner(ZoneId1)
{
var browName = navigator.appName;
var browDateTime = (new Date()).getTime();
if (browName=='Netscape')
{
if(ZoneId1!='')
document.write('<s'+'cript lang' + 'uage="jav' + 'ascript" src="http://cashgen.photolinkbanners.co.uk/a.aspx?ZoneID='+ZoneId1+'&amp;Task=Get&amp;IFR=False&amp;Browser=NETSCAPE4&amp;PageID=87606&amp;SiteID=1&amp;Random=' + browDateTime + '">'); document.write('</'+'scr'+'ipt>');
}
if (browName!='Netscape')
{
if(ZoneId1!='')
document.write('<s'+'cript lang' + 'uage="jav' + 'ascript" src="http://cashgen.photolinkbanners.co.uk/a.aspx?ZoneID='+ZoneId1+'&amp;Task=Get&amp;IFR=False&amp;PageID=87606&amp;SiteID=1&amp;Random=' + browDateTime + '">'); document.write('</'+'scr'+'ipt>');
}
}
var x=-1;
function showCareer(i,show)
{
if(x!=-1)
{
	document.getElementById('liSelected'+x).style.display='none';
	document.getElementById('li'+x).style.display='';
}
if(show)
{
document.getElementById('liSelected'+i).style.display='';
document.getElementById('li'+i).style.display='none';
x=i
}
}
function showLic(id)
{
document.getElementById(id).style.display='';
document.getElementById('aDrvLic').style.display='none';
}
function showPass()
{
document.getElementById('dvPassport').style.display='';
document.getElementById('aPass').style.display='none';
}
function showPrevAddress(bTrue,Ids1,txtPrevAddress)
{
	var ids1=Ids1.split(",")
	if (bTrue)
		document.getElementById('fsPreviousAddress').style.display='';
	else
		document.getElementById('fsPreviousAddress').style.display='none';
	for(i=0;i<ids1.length;i++)
	{
		//alert(ids1[i])
		document.getElementById(ids1[i]).enabled=bTrue;	
	}
	document.getElementById(txtPrevAddress).value=bTrue
}
function SetDate(txtDOB)
{
	document.getElementById(txtDOB).value=document.getElementById('ddDay').value+'/'+document.getElementById('ddMonth').value+'/'+document.getElementById('ddYear').value;
}
function SearchClick (e,t)
{
	if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13))
	{
		window.location='search.aspx?pageid=112&q='+document.getElementById('searchbox').value;
		return false;
	}
}
function SearchPostcode (e, target)
{
	if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13))
	{
		window.location='store-locator.aspx?pageid=137&postcode='+document.getElementById('storelocator_search').value;
		return true;
	}
}

function checkItNoPaste(evt){ 
   evt = (evt) ? evt : window.event; 
   input= evt.target || evt.srcElement; 
   input.setAttribute('maxlength', input.value.length + 1);  
} 

jQuery(document).ready(function(){
    jQuery("a[href^='http']").not("[href*='photolinkstaging.co.uk|cashgenerator.co.uk']").click(function(){
       _gaq.push(['_trackPageview', '/out/' + jQuery(this).attr("href")]);
    });
});