/**
 * Created by JetBrains RubyMine.
 * User: marcin
 * Date: 11-09-12
 * Time: 14:54
 * To change this template use File | Settings | File Templates.
 */

function randomXToY(minVal,maxVal,floatVal){
	var randVal = minVal+(Math.random()*(maxVal-minVal));
    return typeof floatVal=='undefined'?Math.round(randVal):randVal.toFixed(floatVal);}

$(document).ready(
               function(){
                    $('ul#portfolio_1').innerfade({
                        animationtype: 'fade',
						speed: 1500,
                        timeout: randomXToY(5000,10000),
						type: 'random_start',
						containerheight: '220px'
			   		});

                    $('ul#portfolio_2').innerfade({
                        animationtype: 'fade',
						speed: 1000,
                        timeout: randomXToY(5000,10000),
						type: 'random_start',
						containerheight: '220px'
			   		});


			   		$('ul#portfolio_3').innerfade({
                        animationtype: 'fade',
						speed: 2000,
                        timeout: randomXToY(5000,10000),
						type: 'random_start',
						containerheight: '472px'
			   		});


/* 			   alert(viewportwidth = window.innerWidth); */
			});
