﻿//Master Page
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-9870870-7']);
_gaq.push(['_trackPageview']);

(function () {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

//Default
function Pos(obj) {
            obj.style.position = "relative";
            obj.style.marginTop = "3px";
            obj.style.marginLeft = "7px";
        }
        function UnPos(obj) {
            obj.style.position = "static";
            obj.style.marginTop = "0";
            obj.style.marginLeft = "0";
        }

//Hotel
function OpenDetals(DivId, elm) {
            HDiv = document.getElementById("id" + DivId.toString());
            if (HDiv.style.display == "none") {
                HDiv.style.display = "block";
                elm.style.fontWeight = "bold"
            }
            else {
                HDiv.style.display = "none";
                elm.style.fontWeight = "normal"
            }
        }
        function formSubmit(url) {
            var obj = document.getElementById("formSubmit");
            obj.action = url;
            //obj.elements["BlockID"].value = id;
            //alert(id);
            obj.submit();
        }
        function showRooms(ID) {
            var obj = document.getElementById("DivShowRooms" + ID.toString());
            var img = document.getElementById("ImgStrListHotelsRooms" + ID.toString());
            if (obj.style.display != "none") {
                obj.style.display = "none";
                img.src = "css/img/hotel/strRightList.png";
            }
            else {
                obj.style.display = "block";
                img.src = "css/img/hotel/strBottomList.png";
            }
        }


        function showList(ID) {
            var obj = document.getElementById("DivText" + ID.toString());
            var img = document.getElementById("ImgStrList" + ID.toString());
            if (obj.style.display != "none") {
                obj.style.display = "none";
                img.src = "css/img/hotel/strRightList.png";
            }
            else {
                obj.style.display = "block";
                img.src = "css/img/hotel/strBottomList.png";
            }
        }
        function showNum(ID) {
            var obj = document.getElementById("DivHotelNumText" + ID.toString());
            var img = document.getElementById("ImgStrListHotelsNum" + ID.toString());
            if (obj.style.display != "none") {
                obj.style.display = "none";
                img.src = "css/img/hotel/strRightList.png";
            }
            else {
                obj.style.display = "block";
                img.src = "css/img/hotel/strBottomList.png";
            }

        }