 Complete the following phrase:  The hamlet of Gradišče on the southwest slope of the hill has the remts of prehistoric structures, attesting to early settlement of Šmarjetna Gora. During the Middle Ages, Šmarjetna Gora was a property of the Bishopric of Freising, which planted vineyards here. The vineyards were maintained until the 16th century, when they were converted into fields. In the 12th century, the Counts of Ortenburg built Wartenburg Castle on a cliff below the hill. This represented a threat to the Dominion of Škofja Loka, and so Bishop Oton purchased it in 1282 and had it razed. The Ortenburgs later restored the castle and carried out raids against Okroglo and Stražišče, which belonged to the Bishopric of Freising. Wartenburg Castle is now a ruin. Near the castle there was an auxiliary building resembling a manor; it had a turret and bore the year 1653, but was destroyed in the 