﻿// OPEN PAGES IN NEW WINDOW (SIZED)

$(function(){
    $('a.recipe-window').click(function(){
    
    sheight=screen.height;
    swidth=screen.width;
    qtop=sheight/2-225;
    qleft=swidth/2-300;
    
        window.open(this.href,'newWindow','height=500,width=630,top='+qtop+',left='+qleft+',toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=no');
        return false;
    });
});

$(function(){
    $('a.demo-window').click(function(){
    
    sheight=screen.height;
    swidth=screen.width;
    qtop=sheight/2-225;
    qleft=swidth/2-300;
    
        window.open(this.href,'newWindow','height=530,width=750,top='+qtop+',left='+qleft+',toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=no');
        return false;
    });
});