﻿///<reference path="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" />
var outter = $('#outter');
var animi = $('.holder');
var move1 = $('#move1');
var move2 = $('#move2');
$(function () {
    move2.click(function () {
        Closewin();
        if (move1.width() == 95) {
            animeleft();
        }
        else {
            move1.width(95);
            animeright();
        }

    });
    move1.click(function () {
        Closewin();
        if (move1.width() == 95) {
            animeleft();
        }
        else {
            move1.width(95);
            animeright();
        }
    });
    move1.hover(function () { move2.css('opacity', '1') }, function () { move2.css('opacity', '0.6') });
    move2.hover(function () { move2.css('opacity', '1') }, function () { move2.css('opacity', '0.6') });
});
function animeleft() {
    move2.css('opacity', '1');
    animi.animate({ width: 0 }, 1000, function () {
        animi.css('display', 'none');
        move1.width(724);
        move2.removeClass('slide_img');
        move2.addClass('slide_img_hover');
    });
}
function animeright() {
    move2.css('opacity', '1');
    animi.animate({ width: 629 }, 1000, function () {
        animi.css('display', 'block');
        move2.removeClass('slide_img_hover');
        move2.addClass('slide_img');
    });
}


//- Local Time ---------

//alert(timeobj);
timeobj = new Date()
try {
    if (localmin != undefined)
        timeobj.setMinutes(timeobj.getMinutes() + localmin);
}
catch (e) {
    //alert(e);
}

function clockon() {
    timeobj.setSeconds(timeobj.getSeconds() + 1)
    //alert(timeobj.setSeconds(timeobj.getSeconds()+1));
    var hours = timeobj.getHours()
    var minutes = timeobj.getMinutes()
    var seconds = timeobj.getSeconds()
    if (eval(hours) < 10) { hours = "0" + hours }
    if (eval(minutes) < 10) { minutes = "0" + minutes }
    if (seconds < 10) { seconds = "0" + seconds }
    var thistime1 = "<span>Local Time : " + hours + ":" + minutes + ":" + seconds + "</span>";
    if (document.getElementById('clockdiv') != null)
        document.getElementById('clockdiv').innerHTML = thistime1
    var timer = setTimeout("clockon()", 1000)
}

//- Local Time ----------

