﻿///////////////////////////////////////////////////////////////////////////////
//
//  wcoDataRepository.js
//
// © 2007-2010 Wco iEnterprise Solutions Pty Ltd. ALL RIGHTS RESERVED.
// This file is licensed as part of the DataPortal 3.0 Managed Web Presence Solution, for details look here: http://www.wco.com.au
//
///////////////////////////////////////////////////////////////////////////////
vtProduct = function(id, style, label, origin, colours, sizes) {
  this.id = id;
  this.style = style;
  this.label = label;
  this.origin = origin;
  this.colours = colours;
  this.sizes = sizes;
}

vtProduct.prototype = {

}





vtOutfit = function(id, name, displayImage, thumbnailImage, thumbnailWidth, thumbnailHeight, products) {
  this.id = id;
  this.name = name;
  this.displayImage = displayImage;
  this.thumbnailImage = thumbnailImage;
  this.thumbnailWidth = thumbnailWidth;
  this.thumbnailHeight = thumbnailHeight;

  this.products = products;
}

vtOutfit.prototype = {

}





vtLocation = function(id, name, streetAddress, telephoneNo, emailAddress, hoursMon, hoursTue, hoursWed, hoursThu, hoursFri, hoursSat, hoursSun, googleMapsHtml) {
  this.id = id;
  this.name = name;
  this.streetAddress = streetAddress;
  this.telephoneNo = telephoneNo;
  this.emailAddress = emailAddress;
  this.hoursMon = hoursMon;
  this.hoursTue = hoursTue;
  this.hoursWed = hoursWed;
  this.hoursThu = hoursThu;
  this.hoursFri = hoursFri;
  this.hoursSat = hoursSat;
  this.hoursSun = hoursSun;
  this.googleMapsHtml = googleMapsHtml;
}

vtLocation.prototype = {

}





var data = {};
data.init = function() {

}

data.getLocations = function(callback) {
  data.executeCallback = callback;

  var locations = new Array();
  locations[0] = new vtLocation(0,
                                'Canberra',
                                'Shop DF16, Canberra Centre, Canberra ACT 2600',
                                '(02) 6257 2368',
                                '',
                                '9:00 - 17:30',
                                '9:00 - 17:30',
                                '9:00 - 17:30',
                                '9:00 - 17:30',
                                '9:00 - 20:00',
                                '9:00 - 17:00',
                                '10:00 - 16:00',
                                '<iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com.au/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=Bunda+Street,+Canberra+City,+Canberra+ACT+2600&amp;sll=-35.300977,149.15554&amp;sspn=0.088402,0.179729&amp;ie=UTF8&amp;ll=-35.28066,149.135971&amp;spn=0.02102,0.025749&amp;z=14&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com.au/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=Bunda+Street,+Canberra+City,+Canberra+ACT+2600&amp;sll=-35.300977,149.15554&amp;sspn=0.088402,0.179729&amp;ie=UTF8&amp;ll=-35.28066,149.135971&amp;spn=0.02102,0.025749&amp;z=14" style="color:#0000FF;text-align:left">View Larger Map</a></small>');
  locations[1] = new vtLocation(0,
                                'Paddington',
                                '294 Oxford Street, Paddington NSW 2021',
                                '(02) 9360 7522',
                                '',
                                '10:00 - 17:30',
                                '10:00 - 17:30',
                                '10:00 - 17:30',
                                '10:00 - 18:00',
                                '10:00 - 17:30',
                                '10:00 - 17:00',
                                '12:00 - 17:00',
                                '<iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com.au/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=294+Oxford+Street,+Paddington+NSW+2021&amp;sll=-25.335448,135.745076&amp;sspn=50.74322,92.021484&amp;ie=UTF8&amp;ll=-33.882102,151.22818&amp;spn=0.021377,0.025749&amp;z=14&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com.au/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=294+Oxford+Street,+Paddington+NSW+2021&amp;sll=-25.335448,135.745076&amp;sspn=50.74322,92.021484&amp;ie=UTF8&amp;ll=-33.882102,151.22818&amp;spn=0.021377,0.025749&amp;z=14" style="color:#0000FF;text-align:left">View Larger Map</a></small>');
  locations[2] = new vtLocation(0,
                                'Mosman',
                                '631 Military Road, Mosman NSW 2088',
                                '(02) 9968 1514',
                                '',
                                '10:00 - 17:30',
                                '10:00 - 17:30',
                                '10:00 - 17:30',
                                '10:00 - 18:00',
                                '10:00 - 17:30',
                                '10:00 - 17:00',
                                '11:00 - 16:00',
                                '<iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com.au/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=-33.825578,151.242911&amp;sll=-25.335448,135.745076&amp;sspn=50.74322,92.021484&amp;ie=UTF8&amp;ll=-33.825703,151.2429&amp;spn=0.005348,0.006437&amp;z=16&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com.au/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=-33.825578,151.242911&amp;sll=-25.335448,135.745076&amp;sspn=50.74322,92.021484&amp;ie=UTF8&amp;ll=-33.825703,151.2429&amp;spn=0.005348,0.006437&amp;z=16" style="color:#0000FF;text-align:left">View Larger Map</a></small>');
  locations[3] = new vtLocation(0,
                                'MLC Centre',
                                'Shop 7.21, 19-29 Martin Place, Sydney NSW 2000',
                                '(02) 9235 0011',
                                '',
                                '10:00 - 17:30',
                                '10:00 - 17:30',
                                '10:00 - 17:30',
                                '10:00 - 19:00',
                                '10:00 - 17:30',
                                '10:00 - 17:00',
                                'Closed',
                                '<iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com.au/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=19-29+Martin+Place,+Sydney+NSW+2000&amp;sll=-25.335448,135.745076&amp;sspn=50.74322,92.021484&amp;ie=UTF8&amp;ll=-33.867422,151.209898&amp;spn=0.01069,0.012875&amp;z=15&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com.au/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=19-29+Martin+Place,+Sydney+NSW+2000&amp;sll=-25.335448,135.745076&amp;sspn=50.74322,92.021484&amp;ie=UTF8&amp;ll=-33.867422,151.209898&amp;spn=0.01069,0.012875&amp;z=15" style="color:#0000FF;text-align:left">View Larger Map</a></small>');
  locations[4] = new vtLocation(0,
                                'Queen Victoria Building',
                                'Shop 38, Level 1 QVB, 455 George Street, Sydney NSW 2000',
                                '(02) 9269 0015',
                                '',
                                '10:00 - 18:00',
                                '10:00 - 18:00',
                                '10:00 - 18:00',
                                '10:00 - 20:00',
                                '10:00 - 18:00',
                                '10:00 - 17:00',
                                '11:00 - 16:00',
                                '<iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com.au/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=455+George+Street,+Sydney+NSW+2000&amp;sll=-25.335448,135.745076&amp;sspn=50.74322,92.021484&amp;ie=UTF8&amp;ll=-33.871627,151.207924&amp;spn=0.01069,0.012875&amp;z=15&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com.au/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=455+George+Street,+Sydney+NSW+2000&amp;sll=-25.335448,135.745076&amp;sspn=50.74322,92.021484&amp;ie=UTF8&amp;ll=-33.871627,151.207924&amp;spn=0.01069,0.012875&amp;z=15" style="color:#0000FF;text-align:left">View Larger Map</a></small>');
  locations[5] = new vtLocation(0,
                                'Head Office',
                                '',
                                '(02) 9700 9007',
                                'design@vontroska.com.au',
                                '',
                                '',
                                '',
                                '',
                                '',
                                '',
                                '',
                                '');

  data.executeCallback(locations);
}

data.getOutfits = function(callback) {
  data.executeCallback = callback;

  var outfits = new Array();

  var products = new Array();
  products[0] = new vtProduct(0, 'Revesby Jacket', 'Kathleen Berney', 'Sydney', 'Multi', 'S - XL');
  products[1] = new vtProduct(0, 'Chloe Skirt', 'Kathleen Berney', 'Sydney', 'Tar, Eggplant', '');
  var outfit = new vtOutfit(0,
                            'Kathleen Berney',
                            'KathleenBerneyDisplayA.jpg',
                            'KathleenBerneyThumbnail.jpg',
                            404,
                            570,
                            products);
  outfits[0] = outfit;

  var products = new Array();
  products[0] = new vtProduct(0, 'Obra de Dress', 'Didier Parakian', 'France', 'Multi', 'S - XL');
  var outfit = new vtOutfit(0,
                            'Didier Parakian',
                            'DidierParakianDisplayA.jpg',
                            'DidierParakianThumbnail.jpg',
                            401,
                            570,
                            products);
  outfits[1] = outfit;

  var products = new Array();
  products[0] = new vtProduct(0, 'Millie Tunic', 'Zaket & Plover', 'Melbourne', 'Black/Magenta, Black/Almond', 'S - XL');
  var outfit = new vtOutfit(0,
                            'Zaket & Plover',
                            'ZaketPloverDisplayA.jpg',
                            'ZaketPloverThumbnail.jpg',
                            383,
                            570,
                            products);
  outfits[2] = outfit;

  var products = new Array();
  products[0] = new vtProduct(0, 'Glitz Dress', 'Victor Alexandre', 'Melbourne', 'Black/Grey, Black/Black', 'S/M, M/L, L/XL');
  var outfit = new vtOutfit(0,
                            'Victor Alexandre',
                            'VictorAlexandreDisplayA.jpg',
                            'VictorAlexandreThumbnail.jpg',
                            400,
                            570,
                            products);
  outfits[3] = outfit;

  var products = new Array();
  products[0] = new vtProduct(0, 'Miro Coat', 'Didier Parakian', 'France', 'Multi', 'S - XL');
  var outfit = new vtOutfit(0,
                            'Didier Parakian',
                            'DidierParakian2DisplayA.jpg',
                            'DidierParakian2Thumbnail.jpg',
                            377,
                            570,
                            products);
  outfits[4] = outfit;

  var products = new Array();
  products[0] = new vtProduct(0, 'Brigitte Top', 'Marc Cain', 'Germany', 'Black', 'S - L');
  products[1] = new vtProduct(0, 'Bardot Skirt', 'Marc Cain', 'Germany', 'Black/White', 'S - L');
  var outfit = new vtOutfit(0,
                            'Marc Cain',
                            'MarcCainDisplayA.jpg',
                            'MarcCainThumbnail.jpg',
                            404,
                            570,
                            products);
  outfits[5] = outfit;

  var products = new Array();
  products[0] = new vtProduct(0, 'Mini Trench Jacket', 'Nom*D', 'New Zealand', 'Khaki', '10 - 14');
  products[1] = new vtProduct(0, 'Veox Scarf', 'Idea Plus', 'France', 'Choc, Ink, Berry, Magenta', '');
  var outfit = new vtOutfit(0,
                            'Nom*D + Idea Plus',
                            'NomDIPDisplayA.jpg',
                            'NomDIPThumbnail.jpg',
                            409,
                            570,
                            products);
  outfits[6] = outfit;

  var products = new Array();
  products[0] = new vtProduct(0, 'Norah Jacket', 'Zaket & Plover', 'Melbourne', 'Aubergine Combo, Red Combo, Blueberry Combo, Grey Combo', 'S - XL');
  products[1] = new vtProduct(0, 'Nelly Skirt', 'Von Troska', 'Sydney', 'Galaxy, Black, Grey', 'XS - XL');
  var outfit = new vtOutfit(0,
                            'Zaket & Plover + Von Troska',
                            'ZPVTDisplayA.jpg',
                            'ZPVTThumbnail.jpg',
                            400,
                            570,
                            products);
  outfits[7] = outfit;

  var products = new Array();
  products[0] = new vtProduct(0, 'Y-Pin Silk and Beaded Top', 'Blank', 'United Kingdom', 'Black, Lilac, Teal, Silver, Leaf', 'S - XL');
  var outfit = new vtOutfit(0,
                            'Blank',
                            'BlankDisplayA.jpg',
                            'BlankThumbnail.jpg',
                            405,
                            570,
                            products);
  outfits[8] = outfit;

  var products = new Array();
  products[0] = new vtProduct(0, 'Marianna Tweed/Jacquard Jacket', 'Von Troska', 'Sydney', 'Black', '10 - 16');
  var outfit = new vtOutfit(0,
                            'Von Troska',
                            'VTDisplayA.jpg',
                            'VTThumbnail.jpg',
                            409,
                            570,
                            products);
  outfits[9] = outfit;

  var products = new Array();
  products[0] = new vtProduct(0, 'Athena Silk Shirt', 'Von Troska', 'Sydney', 'Hot Pink, Opal, Apple, Winter White, Brick Red', '10 - 16');
  products[1] = new vtProduct(0, 'Dianna Skirt', 'Von Troska', 'Sydney', 'Black, Overcast, Bilberry, Concrete', 'S - XL');
  var outfit = new vtOutfit(0,
                            'Von Troska',
                            'VT2DisplayA.jpg',
                            'VT2Thumbnail.jpg',
                            397,
                            570,
                            products);
  outfits[10] = outfit;

  var products = new Array();
  products[0] = new vtProduct(0, 'Element Dress', 'Rosie & Dixie', 'Melbourne', 'Gunmetal, Black', 'S - XL');
  products[1] = new vtProduct(0, 'Sim Wool Scarf', 'Idea Plus', 'France', 'Ink, Purple, Raspberry', '');
  products[2] = new vtProduct(0, 'Taora Wool Scarf', 'Idea Plus', 'France', 'Chatreuse, Raisin, Choc, Ink, Purple', '');
  var outfit = new vtOutfit(0,
                            'Rosie & Dixie + Idea Plus',
                            'RDIPDisplayA.jpg',
                            'RDIPThumbnail.jpg',
                            398,
                            570,
                            products);
  outfits[11] = outfit;

  data.executeCallback(outfits);
}
