
// frameJammer_hp v2.52
if (self != top)     // frame buster
	top.location.replace(self.location);

function frameJammer_hp(){
	var framedPage = location.search;  //location.search refers to the query string
	/*
	Bug Investigation 0.1 - 08/03/2005 SY
	Page errors when ever an affiliate querystring was sent through, eg;
	http://www.wineware.co.uk/default.asp?bannerID=5&trackingID=16
	Source of problem lies here, where this function is confused, 
	expecting to see a frame jammer querystring in the format of;
	http://www.old-football-programmes.co.uk/index.asp?<page>~<frameName>
	*/
	if (framedPage.length > 1){
			// 0.1 - Added conditional block to not run this code if we believe this is an affiliate querystring
			//alert('~ found at ' + framedPage.indexOf('~'));
			
			if (framedPage.indexOf('~') != -1)
			{
				framedPage = framedPage.substring(1);
				var theSplit = framedPage.lastIndexOf('~');
				var thePage = framedPage.substring(0,theSplit);
				var theFrame = framedPage.substring(theSplit+1);
				eval("top."+theFrame+".location.replace('"+ thePage+"')");
			}
		}
	}

// frameJammer_hp End