/** ------------------------------------------------
		BEISPIEL/ DOKUMENTATION
    ------------------------------------------------ */

/**
	url : "http://galerien.vega-direct.com/index.php?id=",		// Basis URL für TYPO3 Instanz

 	5824 : {
 		"pid"	: 498		// AS400 Produktnummer : Typo3 Page ID zur Smoothgallery.
 	},
 	111001058 : {
 		"pid"	: 498		// iSYS Produktnummer : Typo3 Page ID zur Smoothgallery.
 	},
 	5825 : {
 		"pid"	: false		// Wenn es keine Gallery oder kein Video gibt, false hinschreiben.
 	}

*/
 	
/** ------------------------------------------------
		PRODUKTIVE KONFIGURATION
    ------------------------------------------------ */
 
var Smoothgalleries = {
	url : "http://galerien.vega-direct.com/index.php?id=",

/** Luigi Barhocker */
	1110009221 : {
		"pid"	: 583
	},
	1110007783 : {
		"pid"	: 583
	},
	"1447_59425" : {
		"pid"	: 583
	},
/** Luigi Stühle */
	1110012195 : {
		"pid"	: 593
	},
/** Alu-Flecht-Barhocker */
	1110009220 : {
		"pid"	: 579
	},
	1110007777 : {
		"pid"	: 579
	},
/** Tischsäulen */
	1110009293 : {
		"pid"	: 586
	},
	1110009292 : {
		"pid"	: 586
	},
	1110012878 : {
		"pid"	: 586
	},
/** Amigo */
	1815 : {
		"pid"	: 582
	},
/** Alutische */
	1110009223 : {
		"pid"	: 581
	},
	1110009215 : {
		"pid"	: 581
	},
/** Alu-Flecht-Stühle */
	1110009224 : {
		"pid"	: 580
	},
/** Metropolitan */
	4141 : {
		"pid"	: 584
	},
/** Mira */
	4231 : {
		"pid"	: 585
	},
/** Skyline */
	5865 : {
		"pid"	: 578
	},
/** Contrast */
	5824 : {
		"pid"	: 498
	},
/** Absperrungen */

	/** VSE */
	"5297_95782" : {
		"pid"	: 628
	},
        /** WGA */
	"5297_91461" : {
		"pid"	: 628
	},
	"7009_82845" : {
		"pid"	: 628
	},
/** Alicante */
	1110009222 : {
		"pid"	: 627
	},
	1110009217 : {
		"pid"	: 627
	},
/** Avantgarde */
	3367 : {
		"pid"	: 626
	},
/** Bali */
	1120 : {
		"pid"	: 625
	},
/** Base */
	1110010135 : {
		"pid"	: 624
	},
	1110012839 : {
		"pid"	: 624
	},
/** Berlin */
	4702 : {
		"pid"	: 623
	},
/** Controverse */
	2261 : {
		"pid"	: 622
	},
/** Don Vito */
	1110011300 : {
		"pid"	: 621
	},
/** Fingerfood-Spiesse */
	6116 : {
		"pid"	: 620
	},
/** Lisoro */
	5962 : {
		"pid"	: 619
	},
/** Luano */
	5730 : {
		"pid"	: 618
	},
/** Melbourne */
	2453 : {
		"pid"	: 617
	},
/** Minibar */
	4273 : {
		"pid"	: 616
	},
/** Samos */
	5953 : {
		"pid"	: 615
	},
/** Sonnenschirme Holz */
	4131 : {
		"pid"	: 614
	},
/** Sonnenschirme Alu */
	4127 : {
		"pid"	: 613
	},
/** Spring */
	1723 : {
		"pid"	: 612
	},
/** Stehtischhussen */
	1812 : {
		"pid"	: 610
	},
/** Sydney */
	1707 : {
		"pid"	: 609
	},
/** Teller Emotion */
	6098 : {
		"pid"	: 608
	},
/** Tokio */
	5871 : {
		"pid"	: 607
	},
/** Trend */
	2992 : {
		"pid"	: 606
	},
/** Vanessa */
	4132 : {
		"pid"	: 605
	},
/** Wandtattoo */
	6338 : {
		"pid"	: 604
	},
/** Kissen Spring mit Rückenlehne */
	1110007747 : {
		"pid"	: 611
	},
/** Baguette */
	1287 : {
		"pid"	: 635
	},
/** Bügelverschlussgläser */
	5988 : {
		"pid"	: 636
	},
/** Chippendale */
	406 : {
		"pid"	: 637
	},
/** Elsass */
	6221 : {
		"pid"	: 638
	},
/** Fingerfood-Kunststoffschalen */
	6117 : {
		"pid"	: 639
	},
/** Glascloches */
	6216 : {
		"pid"	: 640
	},
/** Kreuzband */
	4703 : {
		"pid"	: 641
	},
/** Liberty */
	5610 : {
		"pid"	: 642
	},
/** Madrid */
	404 : {
		"pid"	: 643
	},
/** Marokko */
	4688 : {
		"pid"	: 644
	},
/** Menuett-Besteck */
	5733 : {
		"pid"	: 645
	},
/** Menuett-Prozellan */
	5600 : {
		"pid"	: 646
	},
/** Minhlong */
	1303 : {
		"pid"	: 647
	},
/** Monaco */
	841 : {
		"pid"	: 648
	},
/** Montecarlo */
	405 : {
		"pid"	: 649
	},
/** Pallis */
	5823 : {
		"pid"	: 650
	},
/** Porto */
	585 : {
		"pid"	: 651
	},
/** Salerno */
	5774 : {
		"pid"	: 652
	},
/** San Remo */
	3157 : {
		"pid"	: 653
	},
/** Sevilla */
	390 : {
		"pid"	: 654
	},
/** Spaten */
	1299 : {
		"pid"	: 655
	},
/** Tunis */
	1300 : {
		"pid"	: 656
	},
/** Valencia */
	388 : {
		"pid"	: 657
	},
/** Vienna */
	387 : {
		"pid"	: 658
	},
/** Zürich */
	3331 : {
		"pid"	: 659
	},
/** Islands */
	6541 : {
		"pid"	: 810
	},






/** bankettmoebel */
	4219 : {
		"pid"	: 764
	},
/** Barhocker_Havanna */
	"3886_14267" : {
		"pid"	: 765
	},
/** delhi */
	4171 : {
		"pid"	: 767
	},
/** flaschenkuehler_49486 */
	"0755_96732" : {
		"pid"	: 768
	},
/** franz */
	1436 : {
		"pid"	: 769
	},
/** Glaeser_Duos */
	"6333_66292" : {
		"pid"	: 770
	},
/** Glaeser_farbig */
	"5852_24244" : {
		"pid"	: 771
	},
/** Glaeser_Tee_Kaffee */
	5956 : {
		"pid"	: 772
	},
/** glaeserspüler */
	3417 : {
		"pid"	: 773
	},
/** glaswindlichter */
	5562 : {
		"pid"	: 774
	},
/** harald */
	1374 : {
		"pid"	: 775
	},
/** heiko */
	1377 : {
		"pid"	: 776
	},
/** hussenstuhl */
	"5669_13401" : {
		"pid"	: 777
	},
/** irish_coffee */
	1069 : {
		"pid"	: 778
	},
/** Kaffeeglaeser */
	5968 : {
		"pid"	: 779
	},
/** Kerzenleuchter_gross */
	4794 : {
		"pid"	: 781
	},
/** larissa */
	3414 : {
		"pid"	: 782
	},
/** Miniglaeschen_39996 */
	"6060_61287" : {
		"pid"	: 783
	},
/** miniglaeschen_Kristall */
	"5952_50124" : {
		"pid"	: 784
	},
/** Prestige */
	2283 : {
		"pid"	: 785
	},
/** selina */
	"3587" : {
		"pid"	: 786
	},
/** Sessel_Rustik */
	3772 : {
		"pid"	: 787
	},
/** Stuhl_Elegance */
	"1687_43654" : {
		"pid"	: 788
	},
/** Stuhlhusse_noblesse */
	3647
 : {
		"pid"	: 789
	},
/** Stuhl_noblesse */
	1778 : {
		"pid"	: 790
	},
/** szene */
	3885 : {
		"pid"	: 791
	},
/** Tischplatte_Kaffeegrafie */
	"5466_75066" : {
		"pid"	: 792
	},
/** Uebertopf_metropolitan */
	6212 : {
		"pid"	: 793
	},
/** Vasen_97457 */
	5699 : {
		"pid"	: 794
	},
/** Vasen_97481 */
	5763 : {
		"pid"	: 795
	},
/** Winston_Sessel */
	"3857_13719" : {
		"pid"	: 798
	},
/** Winston_Sofa */
	"5670_61836" : {
		"pid"	: 799
	},
/** Winston_Stuhl */
	"3857_95831" : {
		"pid"	: 800
	},
/** algier */
	3436 : {
		"pid"	: 801
	},
/** barglaeser_39862 */
	6220 : {
		"pid"	: 802
	},
/** madeira */
	1892 : {
		"pid"	: 803
	},
/** monastir */
	6319 : {
		"pid"	: 805
	},
/** padua */
	5955 : {
		"pid"	: 806
	},
/** rock */
	"0848_84875" : {
		"pid"	: 807
	}
	
	
}; // End Smoothgalleries

//dynamische Anpassung der URLs
var url_path_parts = document.URL.match(/http[s]{0,1}:\/\/([A-Za-z0-9-_]+)\.([A-Za-z0-9-_]+)\.([A-Za-z0-9-_]+)\//gi); //Match three parted domains
var subdomain = RegExp.$1;
var domainname = RegExp.$2 + '.' + RegExp.$3;

switch (subdomain) {
	case "testvse":
		Smoothgalleries.url = 'http://' + 'galerien.vega-direkt.se' + '/index.php?id=';
	break;
	case "testwga":
		Smoothgalleries.url = 'http://' + 'galerien.vega-direct.com' + '/index.php?id=';
	break;
	case "testwge":
		Smoothgalleries.url = 'http://' + 'galerien.vega-direct.at' + '/index.php?id=';
	break;
	case "testwgc":
		Smoothgalleries.url = 'http://' + 'galerien.vega-ch.com' + '/index.php?id=';
	break;
	case "www":
		Smoothgalleries.url = 'http://' + 'galerien.' + domainname + '/index.php?id=';
	break;
	default:
		// Use Url from begin of file
    break;
}

var debug_halt = 0;

