urlRoot = "http://www.stgeorgespark.co.uk/"

function changeStyle(tag,att,val){
var el = document.getElementsByTagName(tag);
for(var i=0;i<el.length;i++){
el[i].style[att] = val;
}
}

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_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

var timerID = "global";
function hidemenus() { MM_showHideLayers('Layer1','','hide') }
function startTimer() { stopTimer(); timerID = setTimeout("hidemenus()", 2000); }
function startTimer2() { stopTimer(); timerID = setTimeout("hidemenus()", 1); }
function stopTimer() { clearTimeout(timerID); }

function MM_callJS(jsStr) { return eval(jsStr) }

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_jumpMenuGo(selName,targ,restore){ //v3.0
  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}

// Terms JS window
function terms1(fontSize) {
window.open(urlRoot + "terms.asp", 'TERMS', "height=580, width=700, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no");
}

// Privacy Policy JS window
function privacy1(fontSize) {
window.open(urlRoot + "privacy-policy.asp", 'PRIVACY', "height=280, width=700, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no");
}

// Map window
function mapMain(fontSize) {
window.open(urlRoot + "map/site-plan.html", 'MAP', "height=580, width=700, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no");
}

// Location Window
function location1(fontSize) {
window.open(urlRoot + "map/location.html", 'LOC', "height=530, width=590, scrollbars=no, status=no, toolbar=no, menubar=no, location=no");
}

// Email window
function emailPopUp(fontSize) {
window.open(urlRoot + "email-popup.asp?fontSize="+fontSize, 'EMAIL', "height=300, width=500, scrollbars=no, status=no, toolbar=no, menubar=no, location=no");
}

// Gallery Pics
function gallery1(fontSize) {
window.open("gallery/fishing.html", 'GL1', "height=345, width=450, scrollbars=no, status=no, toolbar=no, menubar=no, location=no");
}

function gallery2(fontSize) {
window.open("gallery/checkers.html", 'GL2', "height=345, width=450, scrollbars=no, status=no, toolbar=no, menubar=no, location=no");
}

function gallery3(fontSize) {
window.open("gallery/woodland-walk.html", 'GL3', "height=345, width=450, scrollbars=no, status=no, toolbar=no, menubar=no, location=no");
}

function gallery4(fontSize) {
window.open("gallery/tennis.html", 'GL4', "height=345, width=450, scrollbars=no, status=no, toolbar=no, menubar=no, location=no");
}

function gallery5(fontSize) {
window.open("gallery/idylic-setting.html", 'GL5', "height=345, width=450, scrollbars=no, status=no, toolbar=no, menubar=no, location=no");
}

function gallery6(fontSize) {
window.open("gallery/close-nature.html", 'GL6', "height=345, width=450, scrollbars=no, status=no, toolbar=no, menubar=no, location=no");
}

function gallery7(fontSize) {
window.open("gallery/church.html", 'GL7', "height=345, width=450, scrollbars=no, status=no, toolbar=no, menubar=no, location=no");
}

function gallery8(fontSize) {
window.open("gallery/railway-station.html", 'GL8', "height=345, width=450, scrollbars=no, status=no, toolbar=no, menubar=no, location=no");
}

function gallery9(fontSize) {
window.open("gallery/st-georges-avenue.html", 'GL9', "height=345, width=450, scrollbars=no, status=no, toolbar=no, menubar=no, location=no");
}

function gallery10(fontSize) {
window.open("gallery/cow.html", 'GL10', "height=345, width=450, scrollbars=no, status=no, toolbar=no, menubar=no, location=no");
}

function gallery11(fontSize) {
window.open("gallery/bluebells-woods.html", 'GL11', "height=345, width=450, scrollbars=no, status=no, toolbar=no, menubar=no, location=no");
}

function gallery12(fontSize) {
window.open("gallery/george-farmer.html", 'GL12', "height=345, width=450, scrollbars=no, status=no, toolbar=no, menubar=no, location=no");
}

function gallery13(fontSize) {
window.open("gallery/chapel.html", 'GL12', "height=345, width=450, scrollbars=no, status=no, toolbar=no, menubar=no, location=no");
}

function gallery14(fontSize) {
window.open("gallery/established-surroundings.html", 'GL15', "height=345, width=450, scrollbars=no, status=no, toolbar=no, menubar=no, location=no");
}

function gallery15(fontSize) {
window.open("gallery/maes-lights.html", 'GL16', "height=345, width=450, scrollbars=no, status=no, toolbar=no, menubar=no, location=no");
}

function gallery18(fontSize) {
window.open("gallery/fountain.html", 'GL17', "height=345, width=450, scrollbars=no, status=no, toolbar=no, menubar=no, location=no");
}

function plan1(fontSize) {
window.open("gallery/plan-st-georges-park.html", 'PL1', "height=600, width=800, scrollbars=no, status=no, toolbar=no, menubar=no, location=no");
}

function plan2(fontSize) {
window.open("gallery/phases-st-georges-park.html", 'PL2', "height=600, width=800, scrollbars=no, status=no, toolbar=no, menubar=no, location=no");
}

function plan3(pic) {
window.open("gallery/phase-4a-st-georges-park.asp?pic="+pic, 'PL3', "height=600, width=800, scrollbars=no, status=no, toolbar=no, menubar=no, location=no");
}

// Newspaper Articles
function news1(fontSize) {
window.open(urlRoot + "st-georges-park/es-homes-prop-31aug05.html", 'NW1', "height=600, width=800, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no");
}

// Newspaper Articles
function news2(fontSize) {
window.open(urlRoot + "st-georges-park/dm-property-mail-21apr06.html", 'NW2', "height=560, width=820, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no");
}

// Newspaper Articles
function news3(fontSize) {
window.open(urlRoot + "the-argus-12jun06.html", 'NW3', "height=460, width=820, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no");
}

// Newspaper Articles
function news4(fontSize) {
window.open(urlRoot + "st-georges-park/telegraph-28sept06.html", 'NW4', "height=670, width=780, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no");
}

// Newspaper Articles
function news5(fontSize) {
window.open(urlRoot + "st-georges-park/daily-mail-25feb07.html", 'NW5', "height=670, width=780, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no");
}

// Newspaper Articles
function news6(fontSize) {
window.open(urlRoot + "st-georges-park/daily-mail-15jun07.html", 'NW6', "height=670, width=795, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no");
}

// Newspaper Articles
function news7(fontSize) {
window.open(urlRoot + "st-georges-park/newsletter-may07.html", 'NW7', "height=670, width=780, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no");
}

// Newspaper Articles
function news8(fontSize) {
window.open(urlRoot + "st-georges-park/newsletter-nov07.html", 'NW8', "height=670, width=780, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no");
}

// Newspaper Articles
function news9(fontSize) {
window.open(urlRoot + "st-georges-park/daily-mail-18apr08.html", 'NW9', "height=600, width=750, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no");
}

// Newspaper Articles
function news10(fontSize) {
window.open(urlRoot + "st-georges-park/sunday-times-15jun08.html", 'NW10', "height=600, width=750, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no");
}

// Newspaper Articles
function news11(fontSize) {
window.open(urlRoot + "st-georges-park/st-georges-park-may08.html", 'NW11', "height=600, width=795, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no");
}

// Newspaper Articles
function news12(fontSize) {
window.open(urlRoot + "st-georges-park/st-georges-park-may08-2.html", 'NW12', "height=600, width=795, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no");
}

// Newspaper Articles
function news13(fontSize) {
window.open(urlRoot + "st-georges-park/pinders-award.html", 'NW13', "height=600, width=795, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no");
}

// Floor plan
function floor16(fontSize) {
window.open(urlRoot + "floor-plans/floorplan.asp?floorplan=16-Birch-Walk", 'FP16', "height=650, width=620, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no");
}

// Floor plan
function floor20(fontSize) {
window.open(urlRoot + "floor-plans/floorplan.asp?floorplan=20-Birch-Walk", 'FP20', "height=650, width=600, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no");
}

// Floor plan
function floor31(fontSize) {
window.open(urlRoot + "floor-plans/floorplan.asp?floorplan=31-Birch-Walk", 'FP31', "height=650, width=600, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no");
}

// Floor plan
function floor35(fontSize) {
window.open(urlRoot + "floor-plans/floorplan.asp?floorplan=35-Birch-Walk", 'FP35', "height=650, width=600, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no");
}
