    function unique_requestid() {
        var timestamp = Number(new Date()).toString();
        var random = Math.random() * (Math.random() * 100000 * Math.random() );
        var unique = new String();
        unique = timestamp + random;
        return unique;
    }
$(document).ready(function() {
		$("#patek").tooltip({ effect: 'slide', tip: '#patek_text'});
		$("#bouda").tooltip({ effect: 'slide', tip: '#bouda_text'});
		$("#svobodova").tooltip({ effect: 'slide', tip: '#svobodova_text'});
		$("#kheil").tooltip({ effect: 'slide', tip: '#kheil_text'});
                $(".garance_mobility").colorbox({
                        iframe:true,
                        innerWidth:645,
                        innerHeight:454,
                        href:
                                function(){
                                    var odkaz = '/zobraz_clanek.php?op=garance_mobility&t=' + unique_requestid()+ '';
                                    return odkaz;
                                }

                });
                $(".rozsirena_zaruka_kosik").colorbox({
                        iframe:true,
                        innerWidth:645,
                        innerHeight:454,
                        href:
                                function(){
                                    var odkaz = '/zobraz_clanek.php?op=garance_mobility&t=' + unique_requestid()+ '';
                                    return odkaz;
                                }

                });
				$(".lightbox").colorbox();
				$("a[rel^=lightbox]").colorbox();
});

