﻿var i = 100;
$(document).ready(function(){
    $("#demo-link").click(function(){
        var root = "/home/Demo?Url=http://imgbag.com/1/";
        window.open(root + "emiliana.jpg");
        window.open(root + "fish.png");
        window.open(root + "flower.gif");
        window.open(root + "red.jpg");
        window.open(root + "london.jpeg");
        return false;
    });
    $(".url a").click(function(){
        window.open($(this).attr("href"));
        return false;
    });
    $("#superSpin").click(function(){
		var j = i - 25;
		for(i = j; i < j + 25; i+=5)
		{
			window.open($(this).attr("href") + "Spin{" + i + "}&nocache=true");
		}
		i-=25;
		return false;
    });
    $("a[href^=#property-]").hover(
    function(){
		$($(this).attr("href")).css("background-color", "#B2DAFA");
    },
    function(){
		//$($(this).attr("href")).css("background-color", "#FFF");
		$($(this).attr("href")).animate(
		{
			backgroundColor: "#FFFFFF"
		}, 500);
    }
    );
    
    $(".plugin .examples .example").click(function() {
		window.open(jQuery("img", this).attr("src"));		
		return false;
    });
});