

/*** jquery.defaultvalue.js ***/

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(3(7){7.z.A({5:3(h){p i.y(3(){c $2=$(i),5=h||$2.6(\'u\');a($2.6(\'t\')==\'v\'){j()}m{k()}3 j(){c $f=s();$f.B($2);$2.e();$2.l(3(){a($2.4().b<=0){$f.o();$2.e()}})}3 k(){8();$2.J(3(){a($2.4().b>0){8()}}).l(8).g(3(){$2.4()==5&&$2.4(\'\')});$2.D("E").F(3(){$2.4()==5&&$2.4(\'\')})}3 8(){4=7.G($2.4());a(4.b<=0||4==5){$2.4(5).C(\'d\')}m{$2.H(\'d\')}}3 s(){c $9=7("<2 />").6({\'t\':\'I\',\'x\':5,\'q\':$2.6(\'q\')+\' d\',\'r\':$2.6(\'r\'),\'n\':$2.6(\'n\')});$9.g(3(){$9.e();$2.o();w(3(){$2.g()},1)});p $9}})}})})(7);',46,46,'||input|function|val|defaultValue|attr|jQuery|setState|el|if|length|var|empty|hide|clone|focus|str|this|handlePasswordInput|handleTextInputs|blur|else|tabindex|show|return|class|style|createClone|type|rel|password|setTimeout|value|each|fn|extend|insertAfter|addClass|closest|form|submit|trim|removeClass|text|keypress'.split('|'),0,{}))

/*** jquery.pngFix.pack.js ***/

/**
 * --------------------------------------------------------------------
 * jQuery-Plugin "pngFix"
 * Version: 1.1, 11.09.2007
 * by Andreas Eberhard, andreas.eberhard@gmail.com
 *                      http://jquery.andreaseberhard.de/
 *
 * Copyright (c) 2007 Andreas Eberhard
 * Licensed under GPL (http://www.opensource.org/licenses/gpl-license.php)
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'([237-9n-zA-Z]|1\\w)'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(s(m){3.fn.pngFix=s(c){c=3.extend({P:\'blank.gif\'},c);8 e=(o.Q=="t R S"&&T(o.u)==4&&o.u.A("U 5.5")!=-1);8 f=(o.Q=="t R S"&&T(o.u)==4&&o.u.A("U 6.0")!=-1);p(3.browser.msie&&(e||f)){3(2).B("img[n$=.C]").D(s(){3(2).7(\'q\',3(2).q());3(2).7(\'r\',3(2).r());8 a=\'\';8 b=\'\';8 g=(3(2).7(\'E\'))?\'E="\'+3(2).7(\'E\')+\'" \':\'\';8 h=(3(2).7(\'F\'))?\'F="\'+3(2).7(\'F\')+\'" \':\'\';8 i=(3(2).7(\'G\'))?\'G="\'+3(2).7(\'G\')+\'" \':\'\';8 j=(3(2).7(\'H\'))?\'H="\'+3(2).7(\'H\')+\'" \':\'\';8 k=(3(2).7(\'V\'))?\'float:\'+3(2).7(\'V\')+\';\':\'\';8 d=(3(2).parent().7(\'href\'))?\'cursor:hand;\':\'\';p(2.9.v){a+=\'v:\'+2.9.v+\';\';2.9.v=\'\'}p(2.9.w){a+=\'w:\'+2.9.w+\';\';2.9.w=\'\'}p(2.9.x){a+=\'x:\'+2.9.x+\';\';2.9.x=\'\'}8 l=(2.9.cssText);b+=\'<y \'+g+h+i+j;b+=\'9="W:X;white-space:pre-line;Y:Z-10;I:transparent;\'+k+d;b+=\'q:\'+3(2).q()+\'z;r:\'+3(2).r()+\'z;\';b+=\'J:K:L.t.M(n=\\\'\'+3(2).7(\'n\')+\'\\\', N=\\\'O\\\');\';b+=l+\'"></y>\';p(a!=\'\'){b=\'<y 9="W:X;Y:Z-10;\'+a+d+\'q:\'+3(2).q()+\'z;r:\'+3(2).r()+\'z;">\'+b+\'</y>\'}3(2).hide();3(2).after(b)});3(2).B("*").D(s(){8 a=3(2).11(\'I-12\');p(a.A(".C")!=-1){8 b=a.13(\'url("\')[1].13(\'")\')[0];3(2).11(\'I-12\',\'none\');3(2).14(0).15.J="K:L.t.M(n=\'"+b+"\',N=\'O\')"}});3(2).B("input[n$=.C]").D(s(){8 a=3(2).7(\'n\');3(2).14(0).15.J=\'K:L.t.M(n=\\\'\'+a+\'\\\', N=\\\'O\\\');\';3(2).7(\'n\',c.P)})}return 3}})(3);',[],68,'||this|jQuery||||attr|var|style||||||||||||||src|navigator|if|width|height|function|Microsoft|appVersion|border|padding|margin|span|px|indexOf|find|png|each|id|class|title|alt|background|filter|progid|DXImageTransform|AlphaImageLoader|sizingMethod|scale|blankgif|appName|Internet|Explorer|parseInt|MSIE|align|position|relative|display|inline|block|css|image|split|get|runtimeStyle'.split('|'),0,{}))

/*** z_custum.js ***/


function image_next() {
    clearInterval(stop_interval);
    $("#image").stop();
    var $active = $('.gallery_images a.active');
    if ($active.length == 0) $active = $('.gallery_images a:last');
    var $next = $active.next().length ? $active.next()
			: $('.gallery_images a:first');
    $active.addClass('last-active');
    $next.addClass('active');
    $active.removeClass('active last-active');
    var image = $next.attr("href");
    var title = $next.attr("title");
    var image1 = $('<img />').attr('src', image);
    $("#image").addClass('active').animate({ opacity: "0.0" }, 1000, function () {

        $("#image").html('<img src="' + image + '" style="height:350px; width:460px;" /><p>' + title + '</p>');
        $active.removeClass('active last-active');
    });
    $("#image").animate({ opacity: "1.0" }, 1000);
    return false;
}

function image_prev() {
    clearInterval(stop_interval);
    $("#image").stop();
    var $active = $('.gallery_images a.active');
    if ($active.length == 0) $active = $('.gallery_images a:first');
    var $next = $active.prev().length ? $active.prev()
			: $('.gallery_images a:last');
    $active.addClass('last-active');
    $next.addClass('active');
    $active.removeClass('active last-active');
    var image = $next.attr("href");
    var title = $next.attr("title");
    var image1 = $('<img />').attr('src', image);
    $("#image").addClass('active').animate({ opacity: "0.0" }, 1000, function () {
        $("#image").html('<img src="' + image + '" style="height:350px; width:460px;" /><p>' + title + '</p>');
        $active.removeClass('active last-active');
    });
    $("#image").animate({ opacity: "1.0" }, 1000);
    return false;
}

function slideSwitch() {
    var $active = $('.gallery_images a.active');
    if ($active.length == 0) $active = $('.gallery_images a:last');
    var $next = $active.next().length ? $active.next()
        : $('.gallery_images a:first');
    $active.addClass('last-active');
    $next.addClass('active');
    $active.removeClass('active last-active');
    var image = $next.attr("href");
    var title = $next.attr("title");
    var image1 = $('<img />').attr('src', image);
    $("#image").addClass('active').animate({ opacity: "0.0" }, 1000, function () {
        $("#image").html('<img src="' + image + '" style="height:350px; width:460px;" /><p>' + title + '</p>');
        $active.removeClass('active last-active');
    });
    $("#image").animate({ opacity: "1.0" }, 1000);
}

$(function () {
    //preload images
    $(".gallery_images a").each(
		function (intIndex) {
		    jQuery("<img>").attr("src", $(this).attr("rel"));
		}
	);
    var $first = $('.gallery_images a:first');
    $first.addClass('active');
    slideSwitch();
    stop_interval = setInterval("slideSwitch()", 4000);


});

$(function () {
    var video = $("a.video_image:first").attr("rel");
    var title = $("a.video_image:first").attr("title");
    $("#video").html('<embed id="MidPlayer" width="320" height="240" autostart="1" showcontrols="1" showstatusbar="1" type="application/x-mplayer2"  src=' + video + ' pluginspage="http://www.microsoft.com/windows/windowsmedia/download/" /><p>' + title + '</p>');

    $("a.video_image").click(function () {
        var video = $(this).attr("rel");
        var title = $(this).attr("title");
        $("#video").html('<embed id="MidPlayer" width="320" height="240" autostart="1" showcontrols="1" showstatusbar="1" type="application/x-mplayer2"  src=' + video + ' pluginspage="http://www.microsoft.com/windows/windowsmedia/download/" /><p>' + title + '</p>');
        return false;

    });
});

$(document).ready(function () {
    $(document).pngFix();
    $("a.popup").fancybox({});
});

